ubuntu重新启动后共享文件夹消失的解决方案

很感谢原博主,这里转载记录下,方便自己以后查找:(10条消息) ununtu重新启动后共享文件夹消失的解决方案_m0_53752528的博客-CSDN博客

运行

 sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000

需要自己查看uid的值,更目录下输入id

ubuntu:~$ id
uid=1000(yq) gid=1000(yq) 组=1000(yq),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare)

我这里为1000
然后如果出现

fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount optio

这个错误,可以将nonempty的指令加入上述命令,即

 sudo /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other -o uid=1000 -o gid=1000 -o umask=022

 

posted @ 2021-08-30 16:08  怎因一双媚眼惹尘埃  阅读(782)  评论(0编辑  收藏  举报