Ubuntu 解决mnt中有hgfs文件夹,但是无共享文件问题

一、遇到问题

  • 最开始设置共享文件夹的时候是可以用的,但是隔天再开Ubuntu虚拟机的时候,就出现问题了。
  • mnt中有hgfs文件夹,但是没有共享文件问题。

在这里插入图片描述

二、尝试方法

  • 也去谷歌百度了解决方案,试了很多方法。
  • 但是都不奏效。
weijian@ubuntu:/mnt/hgfs$ sudo apt-get install open-vm-tools
[sudo] password for weijian: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
open-vm-tools is already the newest version (2:10.2.0-3~ubuntu0.16.04.1).
The following packages were automatically installed and are no longer required:
  fonts-dejavu-extra java-common libgif7 libice-dev libsm-dev libxt-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
weijian@ubuntu:/mnt/hgfs$ ls
weijian@ubuntu:/mnt/hgfs$ vmhgfs-fuse .host:/ /mnt/hgfs
fusermount: user has no write access to mountpoint /mnt/hgfs
weijian@ubuntu:/mnt/hgfs$ sudo vmhgfs-fuse .host:/ /mnt/hgfs
weijian@ubuntu:/mnt/hgfs$ ls
weijian@ubuntu:/mnt/hgfs$ ls
weijian@ubuntu:/mnt/hgfs$ sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other
weijian@ubuntu:/mnt/hgfs$ 
weijian@ubuntu:/mnt/hgfs$ ls
weijian@ubuntu:/mnt/hgfs$ ls

三、解决方法

  • 最后使用了很土的方法
  • 共享文件夹设置,先禁用,再启用
  • 成功了

在这里插入图片描述
在这里插入图片描述

觉得好,就一键三连呗(点赞+收藏+关注)

猜你喜欢

转载自blog.csdn.net/kangweijian/article/details/128047464