VMware中的centos共享目錄/mnt/hgfs
首先,在vmware上手動配置
2. 執行命令
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other
3. 如果碰到hgfs沒有寫的權限
解決
1. 先取消掛載
sudo umount /mnt/hgfs
2. 重新掛載即可
sudo /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=1000 -o gid=1000 -o umask=022
或者
sudo /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other -o uid=1000 -o gid=1000 -o umask=022