天天看点

windows ,ubuntu共享文件夹无法挂载(转)

转自:http://www.144d.com/post-566.html

vmware里共享主机文件夹给虚拟机使用,系统是ubuntu18的

参考:

https://bbs.csdn.net/topics/350258010

这篇文章里的,对于ubuntu18来说不行。

然后又参考文章:

https://blog.csdn.net/kulala082/article/details/67635198

这篇文章中命令可以了,主要使用以下命令,首先是安装工具包,不再是open-vm-dkms

我是使用的:

1

apt-

get

install open-vm-*

挂载命令:

1

正确的是:

2

使用命令: 

sudo

mount

-t fuse.vmhgfs-fuse .host:/VM_Shared  /mnt/hgfs -o allow_other(如果卸载,就把

mount

-t换成

umount

-a)

3

sudo

vmhgfs-fuse .host:/VM_Shared /mnt/hgfs

4

(其中.host:/Documents是共享名,只需把Documents换成使用vmware-hgfsclient 命令得到的目录,/mnt/hgfs是挂载点。)

5   注意: -o allow_other 命令可以使普通用户可以访问hgsf文件夹,一般加上    参考:

https://www.cnblogs.com/youguanxinqing/p/9496989.html

6

如果每次重启之后想让系统自动挂载 

#vi /etc/fstab:

7

在最后添加一行:

8

.host:/VM_Shared /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0

---

继续阅读