文章转自:vmware ubuntu /mnt/hgfs 没有权限查看 找不到共享文件夹无法显示 open-vm-tools
vmware安装ubuntu,与windows共享文件夹
只需在后面加一个option参数,-o allow_other 即可
如果提示提示挂载过了,fuse: mountpoint is not empty
再加一个 -o nonempty,执行命令如下
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other
再进入/mnt/hgfs即可看到共享的文件
可能下次开机又要重复操作,如果每次重启之后想让系统自动挂载,就编辑/etc/fstab
su root
vim /etc/fstab
打开/etc/fstab可以看到,对应6个的字段,系统启动时会自动将字段中的文件挂载到指定位置
<file system> <mount point> <type> <options> <dump> <pass>
在/etc/fstab最后添加一行,对应6个字段:
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
这样重启时就会自动挂载好了。