Files missing in /mnt/hgfs on Ubuntu VM?

36,104

Solution 1

I have a similar problem and I solved it with the procedure suggested here, as indicated in Jorge's comment:

$ git clone https://github.com/rasa/vmware-tools-patches.git
$ cd vmware-tools-patches
$ ./patched-open-vm-tools.sh

I hope this can help you.

Good luck!

Solution 2

There is a known incompatibility between the VMware tools and the kernel in 14.10 and later. It is yet unpatched by VMware.

We have to use an alternative to VMware Tools, the open source variant, open-vm-tools. This should be patched for the issue and shared folders should then work again. First, remove the VMware tools. Then, reboot the guest, and run sudo apt-get install open-vm-tools. Reboot again. It should then have hgfs support again.

Share:
36,104

Related videos on Youtube

Ramu Vennavelly
Author by

Ramu Vennavelly

Updated on September 18, 2022

Comments

  • Ramu Vennavelly
    Ramu Vennavelly over 1 year

    I am running Ubuntu 64-bit on VMWare workstation 10. I want to access the files on my windows 8 PC (both on same PC). I have checked "always enabled" for folder sharing on VMWare and gave path to my drives (E,F,G and a folder on my PC). Installed VM tools, they're upto date. The first two worked fine for me. But for the third one - "Error: cannot mount filesystem: No such device" is being displayed. I am not able to find the shared files in /mnt/hgfs.

    sudo apt-get install open-vm-tools
    sudo mkdir /mnt/hgfs
    sudo mount -t vmhgfs .host:/ /mnt/hgfs
    

    Should I enable any permission access for my drives. For the sharing properties of the drives on W8, I enabled "Share this folder" option. Even then I cannot see shared folders in my hgfs (ubuntu). I am a new bee to linux OS, so please help.

    Thanks, Ramu.

  • Ramu Vennavelly
    Ramu Vennavelly about 9 years
    Did as suggested, but I am not able to see the shared folders. The command "vmware-hgfsclient" shows the shared folders ramu6390@ubuntu:~$ vmware-hgfsclient E F Q Hard Drive Mp3s
  • Thomas Ward
    Thomas Ward about 9 years
    You still have to run the mount command from the documentation (pubs.vmware.com/workstation-9/…) mount -t vmhgfs .host:/ /mnt/hgfs will work, but create the shares directory first, and run it. It should work then.
  • Ramu Vennavelly
    Ramu Vennavelly about 9 years
    mount -t vmhgfs .host:/ /home/ramu6390/shares Error: cannot mount filesystem: No such device...This error is being displayed. I created shares folder as said. I tried "mount -t vmhgfs .host:/ /mnt/hgfs" , however the error result is the same. Thanks,
  • Thomas Ward
    Thomas Ward about 9 years
    Did you restart the virtual machine afterwards, and make sure that Shared Folders are enabled in the VM's settings?
  • Ramu Vennavelly
    Ramu Vennavelly about 9 years
    Yes, everything was done as said. The same error throws up for the mount commands.
  • Ramu Vennavelly
    Ramu Vennavelly about 9 years
    I still cannot figure out what the problem is..!! Could anyone please help?! Thanks-
  • Ramu Vennavelly
    Ramu Vennavelly about 8 years
    Hi PieCot, Thanks a lot for the help. I have, however tried steps from here theholmesoffice.com/… , and yea the shared folders are working fine.
  • soulmachine
    soulmachine about 8 years
    I'm using open-vm-tools and this way works for me, thank you!
  • THESorcerer
    THESorcerer almost 8 years
    THANK YOU sorry for saying "thank you" I may not suppose to do that, but I just lost about 1h digging this and all answers was pure BULLSHlT be cause seems like there is no more vmware-config-tools.pl (apt-file find results nothing) and vmhgfs support (grep -i vm /proc/filesystems results nothing), but (even '16 answers) was keeping up with those, like they are there and count on it X( ... so, THIS SOLUTION ACTUALLY WORKS ... THANK YOU
  • J Evans
    J Evans almost 8 years
    Please someone mark this as the correct answer. I've been battling with this problem for hours on Ubuntu 16.04 LTS. Thanks!
  • Dirk Schumacher
    Dirk Schumacher over 7 years
    works like charme without restarting the server. I agree to G Forty. It is the correct answer.
  • Sergey
    Sergey over 7 years
    This solution broke clipboard sharing in Ubuntu 15.
  • ekkis
    ekkis over 7 years
    I can confirm this fixes the problem on Ubuntu 16.04 (kernel 4.4.0-53-generic). clipboard doesn't work, nor sound, but it does allow me to mount my shared folders
  • daisy
    daisy over 7 years
    @RamuVennavelly You need to install build tools and kernel headers. The traditional vmtools will not work without a kernel module
  • Jon
    Jon about 7 years
    If anyone find this that is looking for a solution to fedora 25... it works there as well, with clipboard and sound intact at the end. Thank you very much for this solution to the problem!
  • z8080
    z8080 about 6 years
    I was also not able to use shared folders in my Linux (Cent OS) guest, running on Windows 10 host (VMWare Workstation 14 Player). I reinstalled VMWareTools, then installed the git patch suggested above, and finally used the command sudo mount -t vmhgfs .host:/d:/sharedFolder /mnt/sharedFolder to mount, but am getting the message Error: cannot mount filesystem: No such device . Any ideas what else I can try? VMWare apparently do not provide any support...