linux # 我的硬盘去哪了?

2018-08-10  本文已影响1人  FlyingPenguin

在vmware中建立centos linux的虚拟机,为其分配了512G的硬盘,结果发现根目录的默认是50G,其它的硬盘跑哪去了?
其它很大部分分给了/home目录

可以在samba中将/home共享出来,这样windows也就能访问了。

以下假设samba服务已开启。本机环境为centos。

samba共享的教程: https://www.jianshu.com/p/f98bc0396f1a

/etc/samba/smb.conf中尾部添加上:

[home]
        comment = home dir
        path = /home/
        public = yes
        writable = yes
        browseable = yes
        available = yes

然后重启samba服务即可。

    systemctl restart smb 
    systemctl reload smb
    systemctl status smb
可以将home映射到windows本地

References:

http://www.dataguru.cn/thread-591396-1-1.html
https://www.jianshu.com/p/f98bc0396f1a

上一篇 下一篇

猜你喜欢

热点阅读