美文网首页
VM Fusion 手动挂载(/hgfs下没有共享文件夹)

VM Fusion 手动挂载(/hgfs下没有共享文件夹)

作者: 夙小叶 | 来源:发表于2020-06-12 09:39 被阅读0次
截屏2020-06-12 09.24.45.png
vmware-hgfsclient

查看是否存在共享文件

sudo vmhgfs-fuse .host:/VM /mnt/hgfs -o allow_other -o nonempty
  • -o allow_other:所有人可以访问
  • -o nonempty:允许挂载到非空目录

使用 root 权限挂载,否则报错:

fusermount: user has no write access to mountpoint /mnt/hgfs

sudo umount /mnt/hgfs

手动卸载目录


sudo vmhgfs-fuse .host:/VM /mnt/hgfs

如果直接 root 权限挂载,普通用户将无访问读写权限

ls: cannot access '/mnt/hgfs/': 权限不够

相关文章

网友评论

      本文标题:VM Fusion 手动挂载(/hgfs下没有共享文件夹)

      本文链接:https://www.haomeiwen.com/subject/ngzwtktx.html