虚拟机vmware实现共享文件夹hgfs

VMware中的centos共享目录/mnt/hgfs 

 

首先,在vmware上手动配置

 

 

2. 执行命令

sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other

 

 

3. 如果碰到hgfs没有写的权限

解决

1. 先取消挂载

sudo umount /mnt/hgfs

2. 重新挂载即可

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

或者

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

posted @ 2020-11-11 14:30  侠岚之弋痕夕  阅读(1656)  评论(0编辑  收藏  举报
Where is the starting point, we don't have a choice, but the destination where we can pursue!