天天看点

解决centos7最小安装版安装完VMtools后mnt文件夹下没有hgfs文件夹 hgfs下面也没有共享文件夹

/mnt目录下没有hgfs文件夹;

yum install -y open-vm-tools-devel

/hgfs文件夹下面没有共享文件夹

使用命令: sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other 如果每次重启之后想让系统自动挂载 #vi /etc/fstab: 在最后添加一行: .host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0

补充:

如果显示

Error: cannot mount filesystem: No such device

先执行yum install open-vm-dkms

ubuntu也是一样

1、sudo  apt-get install open-vm-tools 

2、sudo apt-get install open-vm

3、reboot后挂载:vmhgfs-fuse .host:/共享文件名 /mnt/hgfs

virtualbox:

mount -t vboxsf share_folder_name /path_where_you_want

继续阅读