在openSUSE11.1中安装vmware-tools后,发现在/mnt下没有hgfs,无法查看与windows共享的文件。解决的方法是需要手动加载hgfs,方法如下。
1. SuSE:~ # vmware-hgfsclient 命令查看当前有哪些共享的目录
2. 看到了自己要共享的目录之后,就可以使用
SuSE:~ # mount -t vmhgfs .host:/Documents /mnt/hgfs #使用mount方式挂载,其中.host:/Documents是共享名,/mnt/hgfs是挂载点
SuSE:~ # mount.vmhgfs .host:/Documents /mnt/hgfs #另一种挂载方式
讲hgfs系统挂载到/mnt/hgfs下了
3. 将其写入/etc/fstab, 以便开机时自动挂载
SuSE:~ #
cat /etc/fstab #查看已挂载的项
编辑/etc/fstab,添加下面一行
.host:/Documents /mnt/hgfs vmhgfs defaults 0 0