有/mnt/hgfs但没有共享文件的解决方法:

mount -t vmhgfs .host:/  /mnt/hgfs
Error: cannot mount filesystem: No such device

这时不能用mount工具挂载,而是得用vmhgfs-fuse,需要安装工具包

yum install open-vm-tools-devel -y

敲黑板,划重点下面这句话:

有的源的名字并不一定为open-vm-tools-devel(centos) ,而是open-vm-dkms(unbuntu)
执行:vmhgfs-fuse .host:/ /mnt/hgfs

此时进入/mnt/hgfs就能看到你设置的共享文件夹了。

其它请移步内容至➡>⬇
在CentOS 7 中使用Vmware提供的共享文件夹⬅