一、一次性方案:
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
下次重启还会出现同样的问题。
二、解决重启后共享文件夹失效
sudo vim /etc/fstab
- 在最后添加一行:
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
- 以后重启都会自动挂载。
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
下次重启还会出现同样的问题。
sudo vim /etc/fstab
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0