Ubuntu虚拟机中设置共享文件夹
操作步骤:
至此,在/mnt/hgfs/下应该就能看到刚才在虚拟机中设置的windows下的共享文件夹share了:
如果到上面一步时/mnt/hgfs/下没有共享文件夹——不要着急,再加一条命令即可:
使用命令: sudo mount -t fuse.vmhgfs-fuse .host:/VM_Shared /mnt/hgfs -o allow_other(如果卸载,就把mount -t换成umount -a)或sudo vmhgfs-fuse .host:/VM_Shared /mnt/hgfs
sudo vmhgfs-fuse .host:/VM_Shared /mnt/hgfs
(其中.host:/Documents是共享名,只需把Documents换成使用vmware-hgfsclient 命令得到的目录,/mnt/hgfs是挂载点。)
如果每次重启之后想让系统自动挂载
sudo vi /etc/fstab
在最后添加一行:
.host:/VM_Shared /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
参考链接:
解决问题:fusermount: user has no write access to mountpoint /mnt/hgfs与问题:无法定位软件包