2、重新使用以下命令挂载
sudo /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=0 -o gid=0 -o umask=022
uid 和 gid 在home目录输入id 命令查询,如果报错 use the ‘nonempty’ mount option则使用下面命令
sudo /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other -o uid=0 -o gid=0 -o umask=022
二、永久设置
以上设置仅暂时有效,重启之后又找不到共享文件夹了。固使用以下方法设置
先使用下面命令提升权限,否则无法保存
chmod 777 /etc/fstab
进入/etc
目录打开fstab
文件编辑末尾添加
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,uid=0,gid=0,umask=022 0 0
保存成功后重启虚拟机即可,共享文件夹永久不丢失。
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过&#x