虚拟机重启后共享文件夹失效
vim /etc/rc.local,加入如下两行
#!/bin/sh -e
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other
或者加如下这句话
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
确保该文件具有执行权限,sudo chmod a+x /etc/rc.local
vim /etc/rc.local,加入如下两行
#!/bin/sh -e
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other
或者加如下这句话
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
确保该文件具有执行权限,sudo chmod a+x /etc/rc.local