Ubuntu18.10与windows7文件夹共享

321 阅读1分钟
##安装 open-vm-tools
sudo apt-get install open-vm-tools

##挂载 只限制root才能使用
sudo mount -t vmhgfs .host:/ /mnt/hgfs

##卸载
sudo umount /mnt/hgfs

##普通账户读写共享目录#1
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other,nonempty
##或者#2
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=1001 -o gid=1001

#可以看到挂载成功
sudo ls /mnt/hgfs/