How do I mount shared folders in Ubuntu using VMware tools?












122















Experts. I've successfully installed VMware tools for Ubuntu. Everything seems to work fine, but shared folders were not mounted automatically.

How do I get them to work?



If I run vmware-hgfsclient in terminal, I get the list of shared folders, but ls -l /mnt/hgfs is empty. Actually there's no hgfs dir in /mnt. I know I should probably use the vmware-hgfsclient tool, but I realy don't know how.



P.S. I wouldn't ask if I could understand the vmware-hgfsclient help I've read.



Any suggestions?










share|improve this question

























  • The steps in this article wingfoss.com/content/… followed by vmware-config-tools.pl worked for me.

    – jchook
    Jul 20 '15 at 17:16
















122















Experts. I've successfully installed VMware tools for Ubuntu. Everything seems to work fine, but shared folders were not mounted automatically.

How do I get them to work?



If I run vmware-hgfsclient in terminal, I get the list of shared folders, but ls -l /mnt/hgfs is empty. Actually there's no hgfs dir in /mnt. I know I should probably use the vmware-hgfsclient tool, but I realy don't know how.



P.S. I wouldn't ask if I could understand the vmware-hgfsclient help I've read.



Any suggestions?










share|improve this question

























  • The steps in this article wingfoss.com/content/… followed by vmware-config-tools.pl worked for me.

    – jchook
    Jul 20 '15 at 17:16














122












122








122


64






Experts. I've successfully installed VMware tools for Ubuntu. Everything seems to work fine, but shared folders were not mounted automatically.

How do I get them to work?



If I run vmware-hgfsclient in terminal, I get the list of shared folders, but ls -l /mnt/hgfs is empty. Actually there's no hgfs dir in /mnt. I know I should probably use the vmware-hgfsclient tool, but I realy don't know how.



P.S. I wouldn't ask if I could understand the vmware-hgfsclient help I've read.



Any suggestions?










share|improve this question
















Experts. I've successfully installed VMware tools for Ubuntu. Everything seems to work fine, but shared folders were not mounted automatically.

How do I get them to work?



If I run vmware-hgfsclient in terminal, I get the list of shared folders, but ls -l /mnt/hgfs is empty. Actually there's no hgfs dir in /mnt. I know I should probably use the vmware-hgfsclient tool, but I realy don't know how.



P.S. I wouldn't ask if I could understand the vmware-hgfsclient help I've read.



Any suggestions?







vmware-tools






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 26 '14 at 10:52









Braiam

52.4k20138223




52.4k20138223










asked Mar 6 '11 at 17:22









V-LightV-Light

723269




723269













  • The steps in this article wingfoss.com/content/… followed by vmware-config-tools.pl worked for me.

    – jchook
    Jul 20 '15 at 17:16



















  • The steps in this article wingfoss.com/content/… followed by vmware-config-tools.pl worked for me.

    – jchook
    Jul 20 '15 at 17:16

















The steps in this article wingfoss.com/content/… followed by vmware-config-tools.pl worked for me.

– jchook
Jul 20 '15 at 17:16





The steps in this article wingfoss.com/content/… followed by vmware-config-tools.pl worked for me.

– jchook
Jul 20 '15 at 17:16










13 Answers
13






active

oldest

votes


















87














I have set up on Windows 7 host with Ubuntu 11.04 Desktop with VMware Tools installed on.



Virtual Machine settings




  • Folder sharing = Always Enabled

  • Make sure you have at least one Folder shared between the host and guest


On the Ubuntu Guest





  • check /mnt/hgfs that you can access your shared folder.



    If you don't see your shared folders (automounted) inside /mnt/hgfs , run VMware configuration tools:



    sudo vmware-config-tools.pl




  • update your fstab using the details below:



    gksu gedit /etc/fstab



    (I am using ubuntu desktop so use other text editor to enter the next line at the end of the file)



    .host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0



  • Restart your vm (You may need to restart few times or get error message saying unable to mount just skip the error and restart)







share|improve this answer





















  • 2





    with {shared-fodler} you mean the NAME or something else ? For instance, if I'll run vmware-hgfsclient i'll get hst_dwnloads and hst_ebooks. So I should use on of them? so for hst_ebooks it should look like: .host:/hst_dwnloads<white-space>/mnt/hgfs/ vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0 or not ?

    – V-Light
    May 11 '11 at 9:10













  • @V-Light if you cd /mnt/hgfs/ then ls -a you'll see that share folders are auto mounted there. When you do sudo mount -t vmhgfs .host:/hst_ebooks ~/hst_ebooks this will mount hst_ebooks into your home directory. What you might be wanting to do is making is easy for you to use shared folders for that try above.

    – Azizur Rahman
    May 11 '11 at 20:32








  • 4





    that's the problem. There's NOTHING in /mnt/hgfs/ The dir ist empty.

    – V-Light
    May 11 '11 at 21:46











  • @V-Light take a look at How to Share folders with your Ubuntu Virtual Machine (guest)

    – Azizur Rahman
    May 12 '11 at 9:17






  • 2





    Re-running sudo vmware-config-tools.pl was enough for me.

    – ysap
    Sep 25 '12 at 19:30



















35














run vmware-config-tools.pl, AGAIN!



Refer: http://www.laotudou.com/vmware-player-share-folder.html






share|improve this answer





















  • 4





    Simple as that, and it worked just fine!

    – ysap
    Sep 25 '12 at 19:29






  • 5





    vmware-config-tools.pl is not available if using open-vm-tools from Ubuntu-Software-Center or compiled from source from sourceforge. In that case user must use vmware-hgfsmounter as @snth describes in his answer. It may be possible to use open-vm-toolbox, tools and components for VMware guest systems (GUI tools) package from the Ubuntu software repository

    – Mark Mikofski
    Jan 3 '13 at 21:13











  • this fixed it for me, if anyone doesn't know it's located under the VMWare tools after you untar.gz it in: `vmware-tools-distrib/bin/vmware-config-tools.pl'

    – JREAM
    Jun 18 '17 at 19:54



















21














I noticed most of the answers are pretty ancient.



What worked for me on Ubunt 18.04 (bionic) is:



sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000


That magically mounted all shared folders for me. You might have to do that for a specific folder instead of .host:/. In that case you can find out the share's name wiht vmware-hgfsclient.



If you want them mounted on startup:



# Use shared folders between VMWare guest and host
#+goes in /etc/fstab
.host:/ /mnt/hgfs/ fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0


I choose to mount them on demand and have them ignored by sudo mount -a and the such with the noauto option, because I noticed the shares have an impact on VM performance.



I of course have done sudo apt-get install open-vm-tools open-vm-tools-desktop beforehand. It didn't take anything else as far as I can remember. However, other have claimed a sudo apt-get install build-essential module-assistant linux-headers-virtual linux-image-virtual && dpkg-reconfigure open-vm-tools was necessary.






share|improve this answer





















  • 1





    This should be the accepted answer; the other answers are completely out of date.

    – Daniel A. Thompson
    Jan 7 at 21:30











  • fuse.vmhgfs-fuse is the only filesystem that works for ubuntu 18.

    – Daniel
    Jan 16 at 10:46











  • if you don't see hgfs inside mnt than use: sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000 works perfectly! thank you. //added with bugmenot

    – John Doe
    Jan 26 at 13:24













  • This worked for me on Ubuntu 16.04

    – RandyMartini
    Feb 5 at 17:08











  • This is what worked for me too. Thank you very much.

    – subin
    Feb 21 at 9:02



















18














[UPDATE 2017-05-18] This answer is outdated for Ubuntu newer than 15.10 (Wiley). The executable vmware-hgfsmounter has not been available in Ubuntu since 16.04LTS (xenial). Although, hgfsmounter may still be available on other Linux distributions, since the hgfsmounter function is still currently available in the upstream source code on GitHub. If anyone has updated information, please comment or edit this answer, instead of down-voting, as I believe this answer may still be valid for older Ubuntu releases.



This answer also assumes that you are not using VMWare Tools from VMWare but instead using open-vm-tools from your Linux distribution. VMWare decided to support this switch in 2015. See KB2073803. Therefore this answer also assumes that your version of Ubuntu can install the open-vm-tools from it's software repository.



OUTDATED FOR UBUNTU > 15.10 (Wiley)



This worked for me using open-vm-tools from Ubuntu Software Center (trusty-14.04LTS shown - please see update above):



cd /mnt
sudo mkdir hgfs
sudo vmware-hgfsmounter .host:/`vmware-hgfsclient` /mnt/hgfs


assuming of course that I had already enabled a shared folder from the host machine in VMware Player settings.



Note that vmware-hgfsclient returns the list of shared folders that are enabled in the VMware Player settings. This function is available for both open-vm-tools and vmware-tools.



Also note that vmware-hgfsmounter is equivalent to



mount -t vmhgfs .host:/win7share /mnt/hgfs


or to adding to your /etc/fstab file



.host:/win7share /mnt/hgfs vmhgfs defaults 0 0


But the vmware-hgfsmounter function is not available using the official vmware-tools from VMware that ships with the current VMware player. Therefore, as the currently accepted answer suggests, running the vmware-config-tools.pl -d fixes the problem.






share|improve this answer





















  • 3





    Gave an error "share name is invalid". This syntax worked, however: vmware-hgfsmounter .host:/<Share-Name> /mnt/hgfs <Share-Name> is simply the name of the share as configured in VMWare

    – Alexander Rechsteiner
    Nov 19 '13 at 15:03











  • Thanks @AlexanderRechsteiner. Your syntax is probably better as it is more general. FYI, backticks around commands expand the command so since vmware-hgfsclient returns the "share name", then `vmware-hgfsclient`, uses the returned "share name" as the argument for vmware-hgfsmounter. if you're getting "share name is invalid" try running vmware-hgfsclient and seeing what "share name" it returns. It may be a list, and that might be the problem.

    – Mark Mikofski
    Nov 19 '13 at 17:38













  • @AlexanderRechsteiner Thanks for spotting that I had missed the file system seperator / in the host share!

    – Mark Mikofski
    Nov 22 '13 at 17:40






  • 2





    @IgorG. Create the folder first with mkdir /mnt/hgfs, then it works.

    – sja
    Aug 31 '15 at 15:20






  • 7





    vmware-hgfsmounter does not exist with the most recent Ubuntu open-vm-tools package (Ubuntu 16.04, open-vm-tools 10.0.7).

    – Jason
    Jun 15 '16 at 14:40



















7














I had this exact problem. It turned out IT had installed some old version of VMWare tools with non-functioning vmhgfs kernel module.



My solution was to run the configuration with the clobber-kernel-modules setting to overwrite the existing vmhgfs module.



 sudo vmware-config-tools.pl -d --clobber-kernel-modules=vmhgfs


The -d selects all the defaults for you (remove it if you don't want the defaults).






share|improve this answer


























  • After an Ubuntu upgrade that broke my sharing, an hour of trying lots of various things failed...but it was the clobber-kernel-modules=vmhgfs that finally made it work again.

    – John Fultz
    Nov 1 '14 at 20:30



















6














open-vm-tools would NOT build kernel modules until I first installed linux-headers-virtual (paired with linux-image-virtual of course). as soon as I installed the headers package, dpkg-reconfigure open-vm-tools resulted in successfully building and loading the kernel modules, specifically the vmhgfs module.






share|improve this answer
























  • I purged my installed open-vm-tools, installed the linux headers and image packages you mentioned, then reinstalled the vmtools. I still do not have a loaded vmhgfs module nor can I load one (it doesn't exist). I cannot get the shared files to work with the open-vm-tools packages. I'm going to try the manual install of vmware tools mentioned in other answers.

    – Jason
    Jun 15 '16 at 15:57











  • This worked great with Ubuntu 16.4.1. No vmware tools needed, just those three packages and dpkg-reconfigure followed by shared folders disable / enable cycle from vmware settings.

    – Kalle Pokki
    Jul 30 '16 at 14:06











  • packages linux-headers-virtual and linux-image-virtual do not exist anymore.

    – Oleg Rudenko
    Jan 13 '17 at 21:19



















6














I had a similar problem. The folder /mnt/hgfs/ appeared back again when I assured that open-vm was uninstalled. As follows



sudo apt-get purge open-vm-tools
sudo apt-get purge open-vm-tools-dkms


and reinstalled vmware-tools






share|improve this answer


























  • Great point, I needed this after having uninstalled the vmware-tools manually and dkms was the one still providing some kernel modules.

    – 0ff
    Apr 7 '15 at 17:53











  • Uninstalling and reinstalling is a "windows newbie recipe", not a good practice.

    – Soleil
    May 25 '18 at 10:12



















5














vmware-tools-patches worked for me; give this a shot if nothing else works




I've tested this on a fresh install (easy install) of ubuntu 16.10 on vmware workstation 12 pro





  1. Go to https://github.com/rasa/vmware-tools-patches


  2. Follow the Quickest Start instructions given there. Reproduced here:



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







share|improve this answer


























  • vmware-tools-patches worked for me also on Ubuntu 17.10 development release. But I followed the instructions found on the vmware forums: communities.vmware.com/thread/509898

    – ADreNaLiNe-DJ
    Aug 1 '17 at 5:14



















4














You need to install the VMWare tools first, after that the vmware-config-tools can be used globally. For a more detailed guide, you can see here.






share|improve this answer


























  • Link seems broken.

    – aioobe
    May 3 '17 at 12:44



















3














I've been having the same problem but I think I have just been able to make some progress.



Type vmware-hfgs and then press the <Tab> key which will show you that there is also a vmware-hgfsmounter command. If you call that without any options it will print some help that shows you how to call this as part of the `mount' command. Using that info I then ran the following which worked for me:



cd /mnt
sudo mkdir win7share
sudo mount -t vmhgfs .host:/win7share /mnt/win7share


I was then able to access the Win 7 share and copy files to and from there.



If you want to make this permanent then I suspect that you will need to edit the /etc/fstab file but I can't help you there yet.






share|improve this answer
























  • If i execute sudo mount -t vmhgfs .host:/hst_ebooks /mnt/hgfs/hst_ebooks i get an Error: Error: cannot mount filesystem: No such device

    – V-Light
    May 11 '11 at 9:29













  • Have you created the /mnt/hgfs/hst_ebooks mount point? I think in my case /mnt/hgfs already existed and in case there were any special event handlers watching that directory I rather created a directory under /mnt directly. Therefore try sudo mkdir /mnt/hst_ebooks and then try running the command again.

    – snth
    May 12 '11 at 7:21













  • sudo vmware-hgfsmounter <host:sharename> <dir> runs the same commands as sudo mount -t vmhgfs <host:sharename> <dir> where <sharename> is vmware-hgfsclient

    – Mark Mikofski
    Jan 3 '13 at 5:41



















3














(applies to Mac VMware Fusion and Ubuntu file sharing)
When you are asked in vmware-config-tools.pl about whether you want HGFS, say yes! (The default is 'no' and you may have skipped over it when hitting enter). This should give you /mnt/hgfs after the tools are installed.






share|improve this answer

































    3














    If you can't still mount shared folders after installing vmware-tools, here is the resolution.



    Previously, I couldn't mount windows shared folder after installing vmware tools. I didn't see any folders under /mnt/hgfs.



    Finally, I got resolved this share folder mounting issue by installing open-vm-dkms.



    Here are steps:




    1. Ensure configured shared folder in VMWare Player



    2. Install open-vm0dkms:



      sudo apt-get install open-vm-dkms


    3. Hit the "Enter" all the way to allow default value



    4. Mount Windows shared folder to Ubuntu VM:



      sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs 



    5. check if mounting is successful



      df -kh


      You should see:



      .host:/         57657252 50247088   7410164  88% /mnt/hgfs


      Also check again if any folders under /mnt/hgfs. You should see folders under which.




    6. Auto mount shared folder on startup



      There is a startup script called “open-vm-tools” with in /etc/init.d/ folder. Just add the below line in the start function.



      sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs



    Hope it can help.






    share|improve this answer


























    • This works for me with Windows 10 host and Xubuntu 14.04.2 client, thank you!

      – Hoang Huynh
      Mar 15 '15 at 12:40






    • 1





      I get: $ sudo apt-get install open-vm-dkms Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package open-vm-dkms

      – balupton
      Jun 16 '16 at 17:21













    • The following installs though: $ sudo apt-get install open-vm-tools-dkms

      – balupton
      Jun 16 '16 at 17:22



















    0














    A workaround for this problem is to edit 'inode.c' and change the line '888' to remove 'compat_truncate' function call (that is responsible for this problem on kernels 3.8.x). This file is inside 'vmware-tools-distrib', so you need to perform the following steps:



    Extract VMWare-Tools (probably you will get a folder called vmware-tools-distrib).
    Then:



     cd /vmware-tools-distrib/lib/modules/source
    tar xf vmhgfs.tar
    cd vmhgfs-only/
    sudo gedit inode.c


    Go to line 888:



     result = compat_vmtruncate(inode, newSize);


    And change it to:



     result = 0;


    Then save the file and exit gedit.



     cd ..
    rm -rf vmhgfs.tar
    tar cf vmhgfs.tar vmhgfs-only/
    rm -rf vmhgfs-only/


    Now restart the installing procedure. It worked for me in Xubuntu 13.04.



    Src:
    http://ubuntuforums.org/showthread.php?t=2136277&page=4&p=12709627#post12709627






    share|improve this answer






















      protected by Eric Carvalho Aug 27 '15 at 16:17



      Thank you for your interest in this question.
      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



      Would you like to answer one of these unanswered questions instead?














      13 Answers
      13






      active

      oldest

      votes








      13 Answers
      13






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      87














      I have set up on Windows 7 host with Ubuntu 11.04 Desktop with VMware Tools installed on.



      Virtual Machine settings




      • Folder sharing = Always Enabled

      • Make sure you have at least one Folder shared between the host and guest


      On the Ubuntu Guest





      • check /mnt/hgfs that you can access your shared folder.



        If you don't see your shared folders (automounted) inside /mnt/hgfs , run VMware configuration tools:



        sudo vmware-config-tools.pl




      • update your fstab using the details below:



        gksu gedit /etc/fstab



        (I am using ubuntu desktop so use other text editor to enter the next line at the end of the file)



        .host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0



      • Restart your vm (You may need to restart few times or get error message saying unable to mount just skip the error and restart)







      share|improve this answer





















      • 2





        with {shared-fodler} you mean the NAME or something else ? For instance, if I'll run vmware-hgfsclient i'll get hst_dwnloads and hst_ebooks. So I should use on of them? so for hst_ebooks it should look like: .host:/hst_dwnloads<white-space>/mnt/hgfs/ vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0 or not ?

        – V-Light
        May 11 '11 at 9:10













      • @V-Light if you cd /mnt/hgfs/ then ls -a you'll see that share folders are auto mounted there. When you do sudo mount -t vmhgfs .host:/hst_ebooks ~/hst_ebooks this will mount hst_ebooks into your home directory. What you might be wanting to do is making is easy for you to use shared folders for that try above.

        – Azizur Rahman
        May 11 '11 at 20:32








      • 4





        that's the problem. There's NOTHING in /mnt/hgfs/ The dir ist empty.

        – V-Light
        May 11 '11 at 21:46











      • @V-Light take a look at How to Share folders with your Ubuntu Virtual Machine (guest)

        – Azizur Rahman
        May 12 '11 at 9:17






      • 2





        Re-running sudo vmware-config-tools.pl was enough for me.

        – ysap
        Sep 25 '12 at 19:30
















      87














      I have set up on Windows 7 host with Ubuntu 11.04 Desktop with VMware Tools installed on.



      Virtual Machine settings




      • Folder sharing = Always Enabled

      • Make sure you have at least one Folder shared between the host and guest


      On the Ubuntu Guest





      • check /mnt/hgfs that you can access your shared folder.



        If you don't see your shared folders (automounted) inside /mnt/hgfs , run VMware configuration tools:



        sudo vmware-config-tools.pl




      • update your fstab using the details below:



        gksu gedit /etc/fstab



        (I am using ubuntu desktop so use other text editor to enter the next line at the end of the file)



        .host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0



      • Restart your vm (You may need to restart few times or get error message saying unable to mount just skip the error and restart)







      share|improve this answer





















      • 2





        with {shared-fodler} you mean the NAME or something else ? For instance, if I'll run vmware-hgfsclient i'll get hst_dwnloads and hst_ebooks. So I should use on of them? so for hst_ebooks it should look like: .host:/hst_dwnloads<white-space>/mnt/hgfs/ vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0 or not ?

        – V-Light
        May 11 '11 at 9:10













      • @V-Light if you cd /mnt/hgfs/ then ls -a you'll see that share folders are auto mounted there. When you do sudo mount -t vmhgfs .host:/hst_ebooks ~/hst_ebooks this will mount hst_ebooks into your home directory. What you might be wanting to do is making is easy for you to use shared folders for that try above.

        – Azizur Rahman
        May 11 '11 at 20:32








      • 4





        that's the problem. There's NOTHING in /mnt/hgfs/ The dir ist empty.

        – V-Light
        May 11 '11 at 21:46











      • @V-Light take a look at How to Share folders with your Ubuntu Virtual Machine (guest)

        – Azizur Rahman
        May 12 '11 at 9:17






      • 2





        Re-running sudo vmware-config-tools.pl was enough for me.

        – ysap
        Sep 25 '12 at 19:30














      87












      87








      87







      I have set up on Windows 7 host with Ubuntu 11.04 Desktop with VMware Tools installed on.



      Virtual Machine settings




      • Folder sharing = Always Enabled

      • Make sure you have at least one Folder shared between the host and guest


      On the Ubuntu Guest





      • check /mnt/hgfs that you can access your shared folder.



        If you don't see your shared folders (automounted) inside /mnt/hgfs , run VMware configuration tools:



        sudo vmware-config-tools.pl




      • update your fstab using the details below:



        gksu gedit /etc/fstab



        (I am using ubuntu desktop so use other text editor to enter the next line at the end of the file)



        .host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0



      • Restart your vm (You may need to restart few times or get error message saying unable to mount just skip the error and restart)







      share|improve this answer















      I have set up on Windows 7 host with Ubuntu 11.04 Desktop with VMware Tools installed on.



      Virtual Machine settings




      • Folder sharing = Always Enabled

      • Make sure you have at least one Folder shared between the host and guest


      On the Ubuntu Guest





      • check /mnt/hgfs that you can access your shared folder.



        If you don't see your shared folders (automounted) inside /mnt/hgfs , run VMware configuration tools:



        sudo vmware-config-tools.pl




      • update your fstab using the details below:



        gksu gedit /etc/fstab



        (I am using ubuntu desktop so use other text editor to enter the next line at the end of the file)



        .host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0



      • Restart your vm (You may need to restart few times or get error message saying unable to mount just skip the error and restart)








      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 14 '13 at 14:00









      cwallenpoole

      1034




      1034










      answered May 8 '11 at 23:03









      Azizur RahmanAzizur Rahman

      98689




      98689








      • 2





        with {shared-fodler} you mean the NAME or something else ? For instance, if I'll run vmware-hgfsclient i'll get hst_dwnloads and hst_ebooks. So I should use on of them? so for hst_ebooks it should look like: .host:/hst_dwnloads<white-space>/mnt/hgfs/ vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0 or not ?

        – V-Light
        May 11 '11 at 9:10













      • @V-Light if you cd /mnt/hgfs/ then ls -a you'll see that share folders are auto mounted there. When you do sudo mount -t vmhgfs .host:/hst_ebooks ~/hst_ebooks this will mount hst_ebooks into your home directory. What you might be wanting to do is making is easy for you to use shared folders for that try above.

        – Azizur Rahman
        May 11 '11 at 20:32








      • 4





        that's the problem. There's NOTHING in /mnt/hgfs/ The dir ist empty.

        – V-Light
        May 11 '11 at 21:46











      • @V-Light take a look at How to Share folders with your Ubuntu Virtual Machine (guest)

        – Azizur Rahman
        May 12 '11 at 9:17






      • 2





        Re-running sudo vmware-config-tools.pl was enough for me.

        – ysap
        Sep 25 '12 at 19:30














      • 2





        with {shared-fodler} you mean the NAME or something else ? For instance, if I'll run vmware-hgfsclient i'll get hst_dwnloads and hst_ebooks. So I should use on of them? so for hst_ebooks it should look like: .host:/hst_dwnloads<white-space>/mnt/hgfs/ vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0 or not ?

        – V-Light
        May 11 '11 at 9:10













      • @V-Light if you cd /mnt/hgfs/ then ls -a you'll see that share folders are auto mounted there. When you do sudo mount -t vmhgfs .host:/hst_ebooks ~/hst_ebooks this will mount hst_ebooks into your home directory. What you might be wanting to do is making is easy for you to use shared folders for that try above.

        – Azizur Rahman
        May 11 '11 at 20:32








      • 4





        that's the problem. There's NOTHING in /mnt/hgfs/ The dir ist empty.

        – V-Light
        May 11 '11 at 21:46











      • @V-Light take a look at How to Share folders with your Ubuntu Virtual Machine (guest)

        – Azizur Rahman
        May 12 '11 at 9:17






      • 2





        Re-running sudo vmware-config-tools.pl was enough for me.

        – ysap
        Sep 25 '12 at 19:30








      2




      2





      with {shared-fodler} you mean the NAME or something else ? For instance, if I'll run vmware-hgfsclient i'll get hst_dwnloads and hst_ebooks. So I should use on of them? so for hst_ebooks it should look like: .host:/hst_dwnloads<white-space>/mnt/hgfs/ vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0 or not ?

      – V-Light
      May 11 '11 at 9:10







      with {shared-fodler} you mean the NAME or something else ? For instance, if I'll run vmware-hgfsclient i'll get hst_dwnloads and hst_ebooks. So I should use on of them? so for hst_ebooks it should look like: .host:/hst_dwnloads<white-space>/mnt/hgfs/ vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0 or not ?

      – V-Light
      May 11 '11 at 9:10















      @V-Light if you cd /mnt/hgfs/ then ls -a you'll see that share folders are auto mounted there. When you do sudo mount -t vmhgfs .host:/hst_ebooks ~/hst_ebooks this will mount hst_ebooks into your home directory. What you might be wanting to do is making is easy for you to use shared folders for that try above.

      – Azizur Rahman
      May 11 '11 at 20:32







      @V-Light if you cd /mnt/hgfs/ then ls -a you'll see that share folders are auto mounted there. When you do sudo mount -t vmhgfs .host:/hst_ebooks ~/hst_ebooks this will mount hst_ebooks into your home directory. What you might be wanting to do is making is easy for you to use shared folders for that try above.

      – Azizur Rahman
      May 11 '11 at 20:32






      4




      4





      that's the problem. There's NOTHING in /mnt/hgfs/ The dir ist empty.

      – V-Light
      May 11 '11 at 21:46





      that's the problem. There's NOTHING in /mnt/hgfs/ The dir ist empty.

      – V-Light
      May 11 '11 at 21:46













      @V-Light take a look at How to Share folders with your Ubuntu Virtual Machine (guest)

      – Azizur Rahman
      May 12 '11 at 9:17





      @V-Light take a look at How to Share folders with your Ubuntu Virtual Machine (guest)

      – Azizur Rahman
      May 12 '11 at 9:17




      2




      2





      Re-running sudo vmware-config-tools.pl was enough for me.

      – ysap
      Sep 25 '12 at 19:30





      Re-running sudo vmware-config-tools.pl was enough for me.

      – ysap
      Sep 25 '12 at 19:30













      35














      run vmware-config-tools.pl, AGAIN!



      Refer: http://www.laotudou.com/vmware-player-share-folder.html






      share|improve this answer





















      • 4





        Simple as that, and it worked just fine!

        – ysap
        Sep 25 '12 at 19:29






      • 5





        vmware-config-tools.pl is not available if using open-vm-tools from Ubuntu-Software-Center or compiled from source from sourceforge. In that case user must use vmware-hgfsmounter as @snth describes in his answer. It may be possible to use open-vm-toolbox, tools and components for VMware guest systems (GUI tools) package from the Ubuntu software repository

        – Mark Mikofski
        Jan 3 '13 at 21:13











      • this fixed it for me, if anyone doesn't know it's located under the VMWare tools after you untar.gz it in: `vmware-tools-distrib/bin/vmware-config-tools.pl'

        – JREAM
        Jun 18 '17 at 19:54
















      35














      run vmware-config-tools.pl, AGAIN!



      Refer: http://www.laotudou.com/vmware-player-share-folder.html






      share|improve this answer





















      • 4





        Simple as that, and it worked just fine!

        – ysap
        Sep 25 '12 at 19:29






      • 5





        vmware-config-tools.pl is not available if using open-vm-tools from Ubuntu-Software-Center or compiled from source from sourceforge. In that case user must use vmware-hgfsmounter as @snth describes in his answer. It may be possible to use open-vm-toolbox, tools and components for VMware guest systems (GUI tools) package from the Ubuntu software repository

        – Mark Mikofski
        Jan 3 '13 at 21:13











      • this fixed it for me, if anyone doesn't know it's located under the VMWare tools after you untar.gz it in: `vmware-tools-distrib/bin/vmware-config-tools.pl'

        – JREAM
        Jun 18 '17 at 19:54














      35












      35








      35







      run vmware-config-tools.pl, AGAIN!



      Refer: http://www.laotudou.com/vmware-player-share-folder.html






      share|improve this answer















      run vmware-config-tools.pl, AGAIN!



      Refer: http://www.laotudou.com/vmware-player-share-folder.html







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 13 '15 at 1:02









      William

      2191523




      2191523










      answered Sep 8 '11 at 16:38









      ltd911ltd911

      35132




      35132








      • 4





        Simple as that, and it worked just fine!

        – ysap
        Sep 25 '12 at 19:29






      • 5





        vmware-config-tools.pl is not available if using open-vm-tools from Ubuntu-Software-Center or compiled from source from sourceforge. In that case user must use vmware-hgfsmounter as @snth describes in his answer. It may be possible to use open-vm-toolbox, tools and components for VMware guest systems (GUI tools) package from the Ubuntu software repository

        – Mark Mikofski
        Jan 3 '13 at 21:13











      • this fixed it for me, if anyone doesn't know it's located under the VMWare tools after you untar.gz it in: `vmware-tools-distrib/bin/vmware-config-tools.pl'

        – JREAM
        Jun 18 '17 at 19:54














      • 4





        Simple as that, and it worked just fine!

        – ysap
        Sep 25 '12 at 19:29






      • 5





        vmware-config-tools.pl is not available if using open-vm-tools from Ubuntu-Software-Center or compiled from source from sourceforge. In that case user must use vmware-hgfsmounter as @snth describes in his answer. It may be possible to use open-vm-toolbox, tools and components for VMware guest systems (GUI tools) package from the Ubuntu software repository

        – Mark Mikofski
        Jan 3 '13 at 21:13











      • this fixed it for me, if anyone doesn't know it's located under the VMWare tools after you untar.gz it in: `vmware-tools-distrib/bin/vmware-config-tools.pl'

        – JREAM
        Jun 18 '17 at 19:54








      4




      4





      Simple as that, and it worked just fine!

      – ysap
      Sep 25 '12 at 19:29





      Simple as that, and it worked just fine!

      – ysap
      Sep 25 '12 at 19:29




      5




      5





      vmware-config-tools.pl is not available if using open-vm-tools from Ubuntu-Software-Center or compiled from source from sourceforge. In that case user must use vmware-hgfsmounter as @snth describes in his answer. It may be possible to use open-vm-toolbox, tools and components for VMware guest systems (GUI tools) package from the Ubuntu software repository

      – Mark Mikofski
      Jan 3 '13 at 21:13





      vmware-config-tools.pl is not available if using open-vm-tools from Ubuntu-Software-Center or compiled from source from sourceforge. In that case user must use vmware-hgfsmounter as @snth describes in his answer. It may be possible to use open-vm-toolbox, tools and components for VMware guest systems (GUI tools) package from the Ubuntu software repository

      – Mark Mikofski
      Jan 3 '13 at 21:13













      this fixed it for me, if anyone doesn't know it's located under the VMWare tools after you untar.gz it in: `vmware-tools-distrib/bin/vmware-config-tools.pl'

      – JREAM
      Jun 18 '17 at 19:54





      this fixed it for me, if anyone doesn't know it's located under the VMWare tools after you untar.gz it in: `vmware-tools-distrib/bin/vmware-config-tools.pl'

      – JREAM
      Jun 18 '17 at 19:54











      21














      I noticed most of the answers are pretty ancient.



      What worked for me on Ubunt 18.04 (bionic) is:



      sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000


      That magically mounted all shared folders for me. You might have to do that for a specific folder instead of .host:/. In that case you can find out the share's name wiht vmware-hgfsclient.



      If you want them mounted on startup:



      # Use shared folders between VMWare guest and host
      #+goes in /etc/fstab
      .host:/ /mnt/hgfs/ fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0


      I choose to mount them on demand and have them ignored by sudo mount -a and the such with the noauto option, because I noticed the shares have an impact on VM performance.



      I of course have done sudo apt-get install open-vm-tools open-vm-tools-desktop beforehand. It didn't take anything else as far as I can remember. However, other have claimed a sudo apt-get install build-essential module-assistant linux-headers-virtual linux-image-virtual && dpkg-reconfigure open-vm-tools was necessary.






      share|improve this answer





















      • 1





        This should be the accepted answer; the other answers are completely out of date.

        – Daniel A. Thompson
        Jan 7 at 21:30











      • fuse.vmhgfs-fuse is the only filesystem that works for ubuntu 18.

        – Daniel
        Jan 16 at 10:46











      • if you don't see hgfs inside mnt than use: sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000 works perfectly! thank you. //added with bugmenot

        – John Doe
        Jan 26 at 13:24













      • This worked for me on Ubuntu 16.04

        – RandyMartini
        Feb 5 at 17:08











      • This is what worked for me too. Thank you very much.

        – subin
        Feb 21 at 9:02
















      21














      I noticed most of the answers are pretty ancient.



      What worked for me on Ubunt 18.04 (bionic) is:



      sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000


      That magically mounted all shared folders for me. You might have to do that for a specific folder instead of .host:/. In that case you can find out the share's name wiht vmware-hgfsclient.



      If you want them mounted on startup:



      # Use shared folders between VMWare guest and host
      #+goes in /etc/fstab
      .host:/ /mnt/hgfs/ fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0


      I choose to mount them on demand and have them ignored by sudo mount -a and the such with the noauto option, because I noticed the shares have an impact on VM performance.



      I of course have done sudo apt-get install open-vm-tools open-vm-tools-desktop beforehand. It didn't take anything else as far as I can remember. However, other have claimed a sudo apt-get install build-essential module-assistant linux-headers-virtual linux-image-virtual && dpkg-reconfigure open-vm-tools was necessary.






      share|improve this answer





















      • 1





        This should be the accepted answer; the other answers are completely out of date.

        – Daniel A. Thompson
        Jan 7 at 21:30











      • fuse.vmhgfs-fuse is the only filesystem that works for ubuntu 18.

        – Daniel
        Jan 16 at 10:46











      • if you don't see hgfs inside mnt than use: sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000 works perfectly! thank you. //added with bugmenot

        – John Doe
        Jan 26 at 13:24













      • This worked for me on Ubuntu 16.04

        – RandyMartini
        Feb 5 at 17:08











      • This is what worked for me too. Thank you very much.

        – subin
        Feb 21 at 9:02














      21












      21








      21







      I noticed most of the answers are pretty ancient.



      What worked for me on Ubunt 18.04 (bionic) is:



      sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000


      That magically mounted all shared folders for me. You might have to do that for a specific folder instead of .host:/. In that case you can find out the share's name wiht vmware-hgfsclient.



      If you want them mounted on startup:



      # Use shared folders between VMWare guest and host
      #+goes in /etc/fstab
      .host:/ /mnt/hgfs/ fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0


      I choose to mount them on demand and have them ignored by sudo mount -a and the such with the noauto option, because I noticed the shares have an impact on VM performance.



      I of course have done sudo apt-get install open-vm-tools open-vm-tools-desktop beforehand. It didn't take anything else as far as I can remember. However, other have claimed a sudo apt-get install build-essential module-assistant linux-headers-virtual linux-image-virtual && dpkg-reconfigure open-vm-tools was necessary.






      share|improve this answer















      I noticed most of the answers are pretty ancient.



      What worked for me on Ubunt 18.04 (bionic) is:



      sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000


      That magically mounted all shared folders for me. You might have to do that for a specific folder instead of .host:/. In that case you can find out the share's name wiht vmware-hgfsclient.



      If you want them mounted on startup:



      # Use shared folders between VMWare guest and host
      #+goes in /etc/fstab
      .host:/ /mnt/hgfs/ fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0


      I choose to mount them on demand and have them ignored by sudo mount -a and the such with the noauto option, because I noticed the shares have an impact on VM performance.



      I of course have done sudo apt-get install open-vm-tools open-vm-tools-desktop beforehand. It didn't take anything else as far as I can remember. However, other have claimed a sudo apt-get install build-essential module-assistant linux-headers-virtual linux-image-virtual && dpkg-reconfigure open-vm-tools was necessary.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jul 2 '18 at 21:13

























      answered Jul 2 '18 at 20:51









      con-f-usecon-f-use

      12.9k1774136




      12.9k1774136








      • 1





        This should be the accepted answer; the other answers are completely out of date.

        – Daniel A. Thompson
        Jan 7 at 21:30











      • fuse.vmhgfs-fuse is the only filesystem that works for ubuntu 18.

        – Daniel
        Jan 16 at 10:46











      • if you don't see hgfs inside mnt than use: sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000 works perfectly! thank you. //added with bugmenot

        – John Doe
        Jan 26 at 13:24













      • This worked for me on Ubuntu 16.04

        – RandyMartini
        Feb 5 at 17:08











      • This is what worked for me too. Thank you very much.

        – subin
        Feb 21 at 9:02














      • 1





        This should be the accepted answer; the other answers are completely out of date.

        – Daniel A. Thompson
        Jan 7 at 21:30











      • fuse.vmhgfs-fuse is the only filesystem that works for ubuntu 18.

        – Daniel
        Jan 16 at 10:46











      • if you don't see hgfs inside mnt than use: sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000 works perfectly! thank you. //added with bugmenot

        – John Doe
        Jan 26 at 13:24













      • This worked for me on Ubuntu 16.04

        – RandyMartini
        Feb 5 at 17:08











      • This is what worked for me too. Thank you very much.

        – subin
        Feb 21 at 9:02








      1




      1





      This should be the accepted answer; the other answers are completely out of date.

      – Daniel A. Thompson
      Jan 7 at 21:30





      This should be the accepted answer; the other answers are completely out of date.

      – Daniel A. Thompson
      Jan 7 at 21:30













      fuse.vmhgfs-fuse is the only filesystem that works for ubuntu 18.

      – Daniel
      Jan 16 at 10:46





      fuse.vmhgfs-fuse is the only filesystem that works for ubuntu 18.

      – Daniel
      Jan 16 at 10:46













      if you don't see hgfs inside mnt than use: sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000 works perfectly! thank you. //added with bugmenot

      – John Doe
      Jan 26 at 13:24







      if you don't see hgfs inside mnt than use: sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000 works perfectly! thank you. //added with bugmenot

      – John Doe
      Jan 26 at 13:24















      This worked for me on Ubuntu 16.04

      – RandyMartini
      Feb 5 at 17:08





      This worked for me on Ubuntu 16.04

      – RandyMartini
      Feb 5 at 17:08













      This is what worked for me too. Thank you very much.

      – subin
      Feb 21 at 9:02





      This is what worked for me too. Thank you very much.

      – subin
      Feb 21 at 9:02











      18














      [UPDATE 2017-05-18] This answer is outdated for Ubuntu newer than 15.10 (Wiley). The executable vmware-hgfsmounter has not been available in Ubuntu since 16.04LTS (xenial). Although, hgfsmounter may still be available on other Linux distributions, since the hgfsmounter function is still currently available in the upstream source code on GitHub. If anyone has updated information, please comment or edit this answer, instead of down-voting, as I believe this answer may still be valid for older Ubuntu releases.



      This answer also assumes that you are not using VMWare Tools from VMWare but instead using open-vm-tools from your Linux distribution. VMWare decided to support this switch in 2015. See KB2073803. Therefore this answer also assumes that your version of Ubuntu can install the open-vm-tools from it's software repository.



      OUTDATED FOR UBUNTU > 15.10 (Wiley)



      This worked for me using open-vm-tools from Ubuntu Software Center (trusty-14.04LTS shown - please see update above):



      cd /mnt
      sudo mkdir hgfs
      sudo vmware-hgfsmounter .host:/`vmware-hgfsclient` /mnt/hgfs


      assuming of course that I had already enabled a shared folder from the host machine in VMware Player settings.



      Note that vmware-hgfsclient returns the list of shared folders that are enabled in the VMware Player settings. This function is available for both open-vm-tools and vmware-tools.



      Also note that vmware-hgfsmounter is equivalent to



      mount -t vmhgfs .host:/win7share /mnt/hgfs


      or to adding to your /etc/fstab file



      .host:/win7share /mnt/hgfs vmhgfs defaults 0 0


      But the vmware-hgfsmounter function is not available using the official vmware-tools from VMware that ships with the current VMware player. Therefore, as the currently accepted answer suggests, running the vmware-config-tools.pl -d fixes the problem.






      share|improve this answer





















      • 3





        Gave an error "share name is invalid". This syntax worked, however: vmware-hgfsmounter .host:/<Share-Name> /mnt/hgfs <Share-Name> is simply the name of the share as configured in VMWare

        – Alexander Rechsteiner
        Nov 19 '13 at 15:03











      • Thanks @AlexanderRechsteiner. Your syntax is probably better as it is more general. FYI, backticks around commands expand the command so since vmware-hgfsclient returns the "share name", then `vmware-hgfsclient`, uses the returned "share name" as the argument for vmware-hgfsmounter. if you're getting "share name is invalid" try running vmware-hgfsclient and seeing what "share name" it returns. It may be a list, and that might be the problem.

        – Mark Mikofski
        Nov 19 '13 at 17:38













      • @AlexanderRechsteiner Thanks for spotting that I had missed the file system seperator / in the host share!

        – Mark Mikofski
        Nov 22 '13 at 17:40






      • 2





        @IgorG. Create the folder first with mkdir /mnt/hgfs, then it works.

        – sja
        Aug 31 '15 at 15:20






      • 7





        vmware-hgfsmounter does not exist with the most recent Ubuntu open-vm-tools package (Ubuntu 16.04, open-vm-tools 10.0.7).

        – Jason
        Jun 15 '16 at 14:40
















      18














      [UPDATE 2017-05-18] This answer is outdated for Ubuntu newer than 15.10 (Wiley). The executable vmware-hgfsmounter has not been available in Ubuntu since 16.04LTS (xenial). Although, hgfsmounter may still be available on other Linux distributions, since the hgfsmounter function is still currently available in the upstream source code on GitHub. If anyone has updated information, please comment or edit this answer, instead of down-voting, as I believe this answer may still be valid for older Ubuntu releases.



      This answer also assumes that you are not using VMWare Tools from VMWare but instead using open-vm-tools from your Linux distribution. VMWare decided to support this switch in 2015. See KB2073803. Therefore this answer also assumes that your version of Ubuntu can install the open-vm-tools from it's software repository.



      OUTDATED FOR UBUNTU > 15.10 (Wiley)



      This worked for me using open-vm-tools from Ubuntu Software Center (trusty-14.04LTS shown - please see update above):



      cd /mnt
      sudo mkdir hgfs
      sudo vmware-hgfsmounter .host:/`vmware-hgfsclient` /mnt/hgfs


      assuming of course that I had already enabled a shared folder from the host machine in VMware Player settings.



      Note that vmware-hgfsclient returns the list of shared folders that are enabled in the VMware Player settings. This function is available for both open-vm-tools and vmware-tools.



      Also note that vmware-hgfsmounter is equivalent to



      mount -t vmhgfs .host:/win7share /mnt/hgfs


      or to adding to your /etc/fstab file



      .host:/win7share /mnt/hgfs vmhgfs defaults 0 0


      But the vmware-hgfsmounter function is not available using the official vmware-tools from VMware that ships with the current VMware player. Therefore, as the currently accepted answer suggests, running the vmware-config-tools.pl -d fixes the problem.






      share|improve this answer





















      • 3





        Gave an error "share name is invalid". This syntax worked, however: vmware-hgfsmounter .host:/<Share-Name> /mnt/hgfs <Share-Name> is simply the name of the share as configured in VMWare

        – Alexander Rechsteiner
        Nov 19 '13 at 15:03











      • Thanks @AlexanderRechsteiner. Your syntax is probably better as it is more general. FYI, backticks around commands expand the command so since vmware-hgfsclient returns the "share name", then `vmware-hgfsclient`, uses the returned "share name" as the argument for vmware-hgfsmounter. if you're getting "share name is invalid" try running vmware-hgfsclient and seeing what "share name" it returns. It may be a list, and that might be the problem.

        – Mark Mikofski
        Nov 19 '13 at 17:38













      • @AlexanderRechsteiner Thanks for spotting that I had missed the file system seperator / in the host share!

        – Mark Mikofski
        Nov 22 '13 at 17:40






      • 2





        @IgorG. Create the folder first with mkdir /mnt/hgfs, then it works.

        – sja
        Aug 31 '15 at 15:20






      • 7





        vmware-hgfsmounter does not exist with the most recent Ubuntu open-vm-tools package (Ubuntu 16.04, open-vm-tools 10.0.7).

        – Jason
        Jun 15 '16 at 14:40














      18












      18








      18







      [UPDATE 2017-05-18] This answer is outdated for Ubuntu newer than 15.10 (Wiley). The executable vmware-hgfsmounter has not been available in Ubuntu since 16.04LTS (xenial). Although, hgfsmounter may still be available on other Linux distributions, since the hgfsmounter function is still currently available in the upstream source code on GitHub. If anyone has updated information, please comment or edit this answer, instead of down-voting, as I believe this answer may still be valid for older Ubuntu releases.



      This answer also assumes that you are not using VMWare Tools from VMWare but instead using open-vm-tools from your Linux distribution. VMWare decided to support this switch in 2015. See KB2073803. Therefore this answer also assumes that your version of Ubuntu can install the open-vm-tools from it's software repository.



      OUTDATED FOR UBUNTU > 15.10 (Wiley)



      This worked for me using open-vm-tools from Ubuntu Software Center (trusty-14.04LTS shown - please see update above):



      cd /mnt
      sudo mkdir hgfs
      sudo vmware-hgfsmounter .host:/`vmware-hgfsclient` /mnt/hgfs


      assuming of course that I had already enabled a shared folder from the host machine in VMware Player settings.



      Note that vmware-hgfsclient returns the list of shared folders that are enabled in the VMware Player settings. This function is available for both open-vm-tools and vmware-tools.



      Also note that vmware-hgfsmounter is equivalent to



      mount -t vmhgfs .host:/win7share /mnt/hgfs


      or to adding to your /etc/fstab file



      .host:/win7share /mnt/hgfs vmhgfs defaults 0 0


      But the vmware-hgfsmounter function is not available using the official vmware-tools from VMware that ships with the current VMware player. Therefore, as the currently accepted answer suggests, running the vmware-config-tools.pl -d fixes the problem.






      share|improve this answer















      [UPDATE 2017-05-18] This answer is outdated for Ubuntu newer than 15.10 (Wiley). The executable vmware-hgfsmounter has not been available in Ubuntu since 16.04LTS (xenial). Although, hgfsmounter may still be available on other Linux distributions, since the hgfsmounter function is still currently available in the upstream source code on GitHub. If anyone has updated information, please comment or edit this answer, instead of down-voting, as I believe this answer may still be valid for older Ubuntu releases.



      This answer also assumes that you are not using VMWare Tools from VMWare but instead using open-vm-tools from your Linux distribution. VMWare decided to support this switch in 2015. See KB2073803. Therefore this answer also assumes that your version of Ubuntu can install the open-vm-tools from it's software repository.



      OUTDATED FOR UBUNTU > 15.10 (Wiley)



      This worked for me using open-vm-tools from Ubuntu Software Center (trusty-14.04LTS shown - please see update above):



      cd /mnt
      sudo mkdir hgfs
      sudo vmware-hgfsmounter .host:/`vmware-hgfsclient` /mnt/hgfs


      assuming of course that I had already enabled a shared folder from the host machine in VMware Player settings.



      Note that vmware-hgfsclient returns the list of shared folders that are enabled in the VMware Player settings. This function is available for both open-vm-tools and vmware-tools.



      Also note that vmware-hgfsmounter is equivalent to



      mount -t vmhgfs .host:/win7share /mnt/hgfs


      or to adding to your /etc/fstab file



      .host:/win7share /mnt/hgfs vmhgfs defaults 0 0


      But the vmware-hgfsmounter function is not available using the official vmware-tools from VMware that ships with the current VMware player. Therefore, as the currently accepted answer suggests, running the vmware-config-tools.pl -d fixes the problem.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited May 18 '17 at 16:40

























      answered Jan 3 '13 at 5:43









      Mark MikofskiMark Mikofski

      9401017




      9401017








      • 3





        Gave an error "share name is invalid". This syntax worked, however: vmware-hgfsmounter .host:/<Share-Name> /mnt/hgfs <Share-Name> is simply the name of the share as configured in VMWare

        – Alexander Rechsteiner
        Nov 19 '13 at 15:03











      • Thanks @AlexanderRechsteiner. Your syntax is probably better as it is more general. FYI, backticks around commands expand the command so since vmware-hgfsclient returns the "share name", then `vmware-hgfsclient`, uses the returned "share name" as the argument for vmware-hgfsmounter. if you're getting "share name is invalid" try running vmware-hgfsclient and seeing what "share name" it returns. It may be a list, and that might be the problem.

        – Mark Mikofski
        Nov 19 '13 at 17:38













      • @AlexanderRechsteiner Thanks for spotting that I had missed the file system seperator / in the host share!

        – Mark Mikofski
        Nov 22 '13 at 17:40






      • 2





        @IgorG. Create the folder first with mkdir /mnt/hgfs, then it works.

        – sja
        Aug 31 '15 at 15:20






      • 7





        vmware-hgfsmounter does not exist with the most recent Ubuntu open-vm-tools package (Ubuntu 16.04, open-vm-tools 10.0.7).

        – Jason
        Jun 15 '16 at 14:40














      • 3





        Gave an error "share name is invalid". This syntax worked, however: vmware-hgfsmounter .host:/<Share-Name> /mnt/hgfs <Share-Name> is simply the name of the share as configured in VMWare

        – Alexander Rechsteiner
        Nov 19 '13 at 15:03











      • Thanks @AlexanderRechsteiner. Your syntax is probably better as it is more general. FYI, backticks around commands expand the command so since vmware-hgfsclient returns the "share name", then `vmware-hgfsclient`, uses the returned "share name" as the argument for vmware-hgfsmounter. if you're getting "share name is invalid" try running vmware-hgfsclient and seeing what "share name" it returns. It may be a list, and that might be the problem.

        – Mark Mikofski
        Nov 19 '13 at 17:38













      • @AlexanderRechsteiner Thanks for spotting that I had missed the file system seperator / in the host share!

        – Mark Mikofski
        Nov 22 '13 at 17:40






      • 2





        @IgorG. Create the folder first with mkdir /mnt/hgfs, then it works.

        – sja
        Aug 31 '15 at 15:20






      • 7





        vmware-hgfsmounter does not exist with the most recent Ubuntu open-vm-tools package (Ubuntu 16.04, open-vm-tools 10.0.7).

        – Jason
        Jun 15 '16 at 14:40








      3




      3





      Gave an error "share name is invalid". This syntax worked, however: vmware-hgfsmounter .host:/<Share-Name> /mnt/hgfs <Share-Name> is simply the name of the share as configured in VMWare

      – Alexander Rechsteiner
      Nov 19 '13 at 15:03





      Gave an error "share name is invalid". This syntax worked, however: vmware-hgfsmounter .host:/<Share-Name> /mnt/hgfs <Share-Name> is simply the name of the share as configured in VMWare

      – Alexander Rechsteiner
      Nov 19 '13 at 15:03













      Thanks @AlexanderRechsteiner. Your syntax is probably better as it is more general. FYI, backticks around commands expand the command so since vmware-hgfsclient returns the "share name", then `vmware-hgfsclient`, uses the returned "share name" as the argument for vmware-hgfsmounter. if you're getting "share name is invalid" try running vmware-hgfsclient and seeing what "share name" it returns. It may be a list, and that might be the problem.

      – Mark Mikofski
      Nov 19 '13 at 17:38







      Thanks @AlexanderRechsteiner. Your syntax is probably better as it is more general. FYI, backticks around commands expand the command so since vmware-hgfsclient returns the "share name", then `vmware-hgfsclient`, uses the returned "share name" as the argument for vmware-hgfsmounter. if you're getting "share name is invalid" try running vmware-hgfsclient and seeing what "share name" it returns. It may be a list, and that might be the problem.

      – Mark Mikofski
      Nov 19 '13 at 17:38















      @AlexanderRechsteiner Thanks for spotting that I had missed the file system seperator / in the host share!

      – Mark Mikofski
      Nov 22 '13 at 17:40





      @AlexanderRechsteiner Thanks for spotting that I had missed the file system seperator / in the host share!

      – Mark Mikofski
      Nov 22 '13 at 17:40




      2




      2





      @IgorG. Create the folder first with mkdir /mnt/hgfs, then it works.

      – sja
      Aug 31 '15 at 15:20





      @IgorG. Create the folder first with mkdir /mnt/hgfs, then it works.

      – sja
      Aug 31 '15 at 15:20




      7




      7





      vmware-hgfsmounter does not exist with the most recent Ubuntu open-vm-tools package (Ubuntu 16.04, open-vm-tools 10.0.7).

      – Jason
      Jun 15 '16 at 14:40





      vmware-hgfsmounter does not exist with the most recent Ubuntu open-vm-tools package (Ubuntu 16.04, open-vm-tools 10.0.7).

      – Jason
      Jun 15 '16 at 14:40











      7














      I had this exact problem. It turned out IT had installed some old version of VMWare tools with non-functioning vmhgfs kernel module.



      My solution was to run the configuration with the clobber-kernel-modules setting to overwrite the existing vmhgfs module.



       sudo vmware-config-tools.pl -d --clobber-kernel-modules=vmhgfs


      The -d selects all the defaults for you (remove it if you don't want the defaults).






      share|improve this answer


























      • After an Ubuntu upgrade that broke my sharing, an hour of trying lots of various things failed...but it was the clobber-kernel-modules=vmhgfs that finally made it work again.

        – John Fultz
        Nov 1 '14 at 20:30
















      7














      I had this exact problem. It turned out IT had installed some old version of VMWare tools with non-functioning vmhgfs kernel module.



      My solution was to run the configuration with the clobber-kernel-modules setting to overwrite the existing vmhgfs module.



       sudo vmware-config-tools.pl -d --clobber-kernel-modules=vmhgfs


      The -d selects all the defaults for you (remove it if you don't want the defaults).






      share|improve this answer


























      • After an Ubuntu upgrade that broke my sharing, an hour of trying lots of various things failed...but it was the clobber-kernel-modules=vmhgfs that finally made it work again.

        – John Fultz
        Nov 1 '14 at 20:30














      7












      7








      7







      I had this exact problem. It turned out IT had installed some old version of VMWare tools with non-functioning vmhgfs kernel module.



      My solution was to run the configuration with the clobber-kernel-modules setting to overwrite the existing vmhgfs module.



       sudo vmware-config-tools.pl -d --clobber-kernel-modules=vmhgfs


      The -d selects all the defaults for you (remove it if you don't want the defaults).






      share|improve this answer















      I had this exact problem. It turned out IT had installed some old version of VMWare tools with non-functioning vmhgfs kernel module.



      My solution was to run the configuration with the clobber-kernel-modules setting to overwrite the existing vmhgfs module.



       sudo vmware-config-tools.pl -d --clobber-kernel-modules=vmhgfs


      The -d selects all the defaults for you (remove it if you don't want the defaults).







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Mar 31 '14 at 4:21









      jobin

      19.6k1278109




      19.6k1278109










      answered Sep 5 '13 at 10:13









      extabgradextabgrad

      38143




      38143













      • After an Ubuntu upgrade that broke my sharing, an hour of trying lots of various things failed...but it was the clobber-kernel-modules=vmhgfs that finally made it work again.

        – John Fultz
        Nov 1 '14 at 20:30



















      • After an Ubuntu upgrade that broke my sharing, an hour of trying lots of various things failed...but it was the clobber-kernel-modules=vmhgfs that finally made it work again.

        – John Fultz
        Nov 1 '14 at 20:30

















      After an Ubuntu upgrade that broke my sharing, an hour of trying lots of various things failed...but it was the clobber-kernel-modules=vmhgfs that finally made it work again.

      – John Fultz
      Nov 1 '14 at 20:30





      After an Ubuntu upgrade that broke my sharing, an hour of trying lots of various things failed...but it was the clobber-kernel-modules=vmhgfs that finally made it work again.

      – John Fultz
      Nov 1 '14 at 20:30











      6














      open-vm-tools would NOT build kernel modules until I first installed linux-headers-virtual (paired with linux-image-virtual of course). as soon as I installed the headers package, dpkg-reconfigure open-vm-tools resulted in successfully building and loading the kernel modules, specifically the vmhgfs module.






      share|improve this answer
























      • I purged my installed open-vm-tools, installed the linux headers and image packages you mentioned, then reinstalled the vmtools. I still do not have a loaded vmhgfs module nor can I load one (it doesn't exist). I cannot get the shared files to work with the open-vm-tools packages. I'm going to try the manual install of vmware tools mentioned in other answers.

        – Jason
        Jun 15 '16 at 15:57











      • This worked great with Ubuntu 16.4.1. No vmware tools needed, just those three packages and dpkg-reconfigure followed by shared folders disable / enable cycle from vmware settings.

        – Kalle Pokki
        Jul 30 '16 at 14:06











      • packages linux-headers-virtual and linux-image-virtual do not exist anymore.

        – Oleg Rudenko
        Jan 13 '17 at 21:19
















      6














      open-vm-tools would NOT build kernel modules until I first installed linux-headers-virtual (paired with linux-image-virtual of course). as soon as I installed the headers package, dpkg-reconfigure open-vm-tools resulted in successfully building and loading the kernel modules, specifically the vmhgfs module.






      share|improve this answer
























      • I purged my installed open-vm-tools, installed the linux headers and image packages you mentioned, then reinstalled the vmtools. I still do not have a loaded vmhgfs module nor can I load one (it doesn't exist). I cannot get the shared files to work with the open-vm-tools packages. I'm going to try the manual install of vmware tools mentioned in other answers.

        – Jason
        Jun 15 '16 at 15:57











      • This worked great with Ubuntu 16.4.1. No vmware tools needed, just those three packages and dpkg-reconfigure followed by shared folders disable / enable cycle from vmware settings.

        – Kalle Pokki
        Jul 30 '16 at 14:06











      • packages linux-headers-virtual and linux-image-virtual do not exist anymore.

        – Oleg Rudenko
        Jan 13 '17 at 21:19














      6












      6








      6







      open-vm-tools would NOT build kernel modules until I first installed linux-headers-virtual (paired with linux-image-virtual of course). as soon as I installed the headers package, dpkg-reconfigure open-vm-tools resulted in successfully building and loading the kernel modules, specifically the vmhgfs module.






      share|improve this answer













      open-vm-tools would NOT build kernel modules until I first installed linux-headers-virtual (paired with linux-image-virtual of course). as soon as I installed the headers package, dpkg-reconfigure open-vm-tools resulted in successfully building and loading the kernel modules, specifically the vmhgfs module.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jun 10 '13 at 16:45









      pjspjs

      6111




      6111













      • I purged my installed open-vm-tools, installed the linux headers and image packages you mentioned, then reinstalled the vmtools. I still do not have a loaded vmhgfs module nor can I load one (it doesn't exist). I cannot get the shared files to work with the open-vm-tools packages. I'm going to try the manual install of vmware tools mentioned in other answers.

        – Jason
        Jun 15 '16 at 15:57











      • This worked great with Ubuntu 16.4.1. No vmware tools needed, just those three packages and dpkg-reconfigure followed by shared folders disable / enable cycle from vmware settings.

        – Kalle Pokki
        Jul 30 '16 at 14:06











      • packages linux-headers-virtual and linux-image-virtual do not exist anymore.

        – Oleg Rudenko
        Jan 13 '17 at 21:19



















      • I purged my installed open-vm-tools, installed the linux headers and image packages you mentioned, then reinstalled the vmtools. I still do not have a loaded vmhgfs module nor can I load one (it doesn't exist). I cannot get the shared files to work with the open-vm-tools packages. I'm going to try the manual install of vmware tools mentioned in other answers.

        – Jason
        Jun 15 '16 at 15:57











      • This worked great with Ubuntu 16.4.1. No vmware tools needed, just those three packages and dpkg-reconfigure followed by shared folders disable / enable cycle from vmware settings.

        – Kalle Pokki
        Jul 30 '16 at 14:06











      • packages linux-headers-virtual and linux-image-virtual do not exist anymore.

        – Oleg Rudenko
        Jan 13 '17 at 21:19

















      I purged my installed open-vm-tools, installed the linux headers and image packages you mentioned, then reinstalled the vmtools. I still do not have a loaded vmhgfs module nor can I load one (it doesn't exist). I cannot get the shared files to work with the open-vm-tools packages. I'm going to try the manual install of vmware tools mentioned in other answers.

      – Jason
      Jun 15 '16 at 15:57





      I purged my installed open-vm-tools, installed the linux headers and image packages you mentioned, then reinstalled the vmtools. I still do not have a loaded vmhgfs module nor can I load one (it doesn't exist). I cannot get the shared files to work with the open-vm-tools packages. I'm going to try the manual install of vmware tools mentioned in other answers.

      – Jason
      Jun 15 '16 at 15:57













      This worked great with Ubuntu 16.4.1. No vmware tools needed, just those three packages and dpkg-reconfigure followed by shared folders disable / enable cycle from vmware settings.

      – Kalle Pokki
      Jul 30 '16 at 14:06





      This worked great with Ubuntu 16.4.1. No vmware tools needed, just those three packages and dpkg-reconfigure followed by shared folders disable / enable cycle from vmware settings.

      – Kalle Pokki
      Jul 30 '16 at 14:06













      packages linux-headers-virtual and linux-image-virtual do not exist anymore.

      – Oleg Rudenko
      Jan 13 '17 at 21:19





      packages linux-headers-virtual and linux-image-virtual do not exist anymore.

      – Oleg Rudenko
      Jan 13 '17 at 21:19











      6














      I had a similar problem. The folder /mnt/hgfs/ appeared back again when I assured that open-vm was uninstalled. As follows



      sudo apt-get purge open-vm-tools
      sudo apt-get purge open-vm-tools-dkms


      and reinstalled vmware-tools






      share|improve this answer


























      • Great point, I needed this after having uninstalled the vmware-tools manually and dkms was the one still providing some kernel modules.

        – 0ff
        Apr 7 '15 at 17:53











      • Uninstalling and reinstalling is a "windows newbie recipe", not a good practice.

        – Soleil
        May 25 '18 at 10:12
















      6














      I had a similar problem. The folder /mnt/hgfs/ appeared back again when I assured that open-vm was uninstalled. As follows



      sudo apt-get purge open-vm-tools
      sudo apt-get purge open-vm-tools-dkms


      and reinstalled vmware-tools






      share|improve this answer


























      • Great point, I needed this after having uninstalled the vmware-tools manually and dkms was the one still providing some kernel modules.

        – 0ff
        Apr 7 '15 at 17:53











      • Uninstalling and reinstalling is a "windows newbie recipe", not a good practice.

        – Soleil
        May 25 '18 at 10:12














      6












      6








      6







      I had a similar problem. The folder /mnt/hgfs/ appeared back again when I assured that open-vm was uninstalled. As follows



      sudo apt-get purge open-vm-tools
      sudo apt-get purge open-vm-tools-dkms


      and reinstalled vmware-tools






      share|improve this answer















      I had a similar problem. The folder /mnt/hgfs/ appeared back again when I assured that open-vm was uninstalled. As follows



      sudo apt-get purge open-vm-tools
      sudo apt-get purge open-vm-tools-dkms


      and reinstalled vmware-tools







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jun 15 '16 at 15:10









      Jason

      1055




      1055










      answered Nov 2 '11 at 15:32









      PeretzPeretz

      2873512




      2873512













      • Great point, I needed this after having uninstalled the vmware-tools manually and dkms was the one still providing some kernel modules.

        – 0ff
        Apr 7 '15 at 17:53











      • Uninstalling and reinstalling is a "windows newbie recipe", not a good practice.

        – Soleil
        May 25 '18 at 10:12



















      • Great point, I needed this after having uninstalled the vmware-tools manually and dkms was the one still providing some kernel modules.

        – 0ff
        Apr 7 '15 at 17:53











      • Uninstalling and reinstalling is a "windows newbie recipe", not a good practice.

        – Soleil
        May 25 '18 at 10:12

















      Great point, I needed this after having uninstalled the vmware-tools manually and dkms was the one still providing some kernel modules.

      – 0ff
      Apr 7 '15 at 17:53





      Great point, I needed this after having uninstalled the vmware-tools manually and dkms was the one still providing some kernel modules.

      – 0ff
      Apr 7 '15 at 17:53













      Uninstalling and reinstalling is a "windows newbie recipe", not a good practice.

      – Soleil
      May 25 '18 at 10:12





      Uninstalling and reinstalling is a "windows newbie recipe", not a good practice.

      – Soleil
      May 25 '18 at 10:12











      5














      vmware-tools-patches worked for me; give this a shot if nothing else works




      I've tested this on a fresh install (easy install) of ubuntu 16.10 on vmware workstation 12 pro





      1. Go to https://github.com/rasa/vmware-tools-patches


      2. Follow the Quickest Start instructions given there. Reproduced here:



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







      share|improve this answer


























      • vmware-tools-patches worked for me also on Ubuntu 17.10 development release. But I followed the instructions found on the vmware forums: communities.vmware.com/thread/509898

        – ADreNaLiNe-DJ
        Aug 1 '17 at 5:14
















      5














      vmware-tools-patches worked for me; give this a shot if nothing else works




      I've tested this on a fresh install (easy install) of ubuntu 16.10 on vmware workstation 12 pro





      1. Go to https://github.com/rasa/vmware-tools-patches


      2. Follow the Quickest Start instructions given there. Reproduced here:



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







      share|improve this answer


























      • vmware-tools-patches worked for me also on Ubuntu 17.10 development release. But I followed the instructions found on the vmware forums: communities.vmware.com/thread/509898

        – ADreNaLiNe-DJ
        Aug 1 '17 at 5:14














      5












      5








      5







      vmware-tools-patches worked for me; give this a shot if nothing else works




      I've tested this on a fresh install (easy install) of ubuntu 16.10 on vmware workstation 12 pro





      1. Go to https://github.com/rasa/vmware-tools-patches


      2. Follow the Quickest Start instructions given there. Reproduced here:



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







      share|improve this answer















      vmware-tools-patches worked for me; give this a shot if nothing else works




      I've tested this on a fresh install (easy install) of ubuntu 16.10 on vmware workstation 12 pro





      1. Go to https://github.com/rasa/vmware-tools-patches


      2. Follow the Quickest Start instructions given there. Reproduced here:



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








      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Feb 16 '17 at 16:06









      Elder Geek

      27.4k1055130




      27.4k1055130










      answered Nov 28 '16 at 9:39









      Dheeraj BhaskarDheeraj Bhaskar

      36037




      36037













      • vmware-tools-patches worked for me also on Ubuntu 17.10 development release. But I followed the instructions found on the vmware forums: communities.vmware.com/thread/509898

        – ADreNaLiNe-DJ
        Aug 1 '17 at 5:14



















      • vmware-tools-patches worked for me also on Ubuntu 17.10 development release. But I followed the instructions found on the vmware forums: communities.vmware.com/thread/509898

        – ADreNaLiNe-DJ
        Aug 1 '17 at 5:14

















      vmware-tools-patches worked for me also on Ubuntu 17.10 development release. But I followed the instructions found on the vmware forums: communities.vmware.com/thread/509898

      – ADreNaLiNe-DJ
      Aug 1 '17 at 5:14





      vmware-tools-patches worked for me also on Ubuntu 17.10 development release. But I followed the instructions found on the vmware forums: communities.vmware.com/thread/509898

      – ADreNaLiNe-DJ
      Aug 1 '17 at 5:14











      4














      You need to install the VMWare tools first, after that the vmware-config-tools can be used globally. For a more detailed guide, you can see here.






      share|improve this answer


























      • Link seems broken.

        – aioobe
        May 3 '17 at 12:44
















      4














      You need to install the VMWare tools first, after that the vmware-config-tools can be used globally. For a more detailed guide, you can see here.






      share|improve this answer


























      • Link seems broken.

        – aioobe
        May 3 '17 at 12:44














      4












      4








      4







      You need to install the VMWare tools first, after that the vmware-config-tools can be used globally. For a more detailed guide, you can see here.






      share|improve this answer















      You need to install the VMWare tools first, after that the vmware-config-tools can be used globally. For a more detailed guide, you can see here.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Oct 24 '12 at 10:19









      stephenmyall

      7,373134067




      7,373134067










      answered Oct 22 '12 at 2:01









      Trung-Hieu LeTrung-Hieu Le

      411




      411













      • Link seems broken.

        – aioobe
        May 3 '17 at 12:44



















      • Link seems broken.

        – aioobe
        May 3 '17 at 12:44

















      Link seems broken.

      – aioobe
      May 3 '17 at 12:44





      Link seems broken.

      – aioobe
      May 3 '17 at 12:44











      3














      I've been having the same problem but I think I have just been able to make some progress.



      Type vmware-hfgs and then press the <Tab> key which will show you that there is also a vmware-hgfsmounter command. If you call that without any options it will print some help that shows you how to call this as part of the `mount' command. Using that info I then ran the following which worked for me:



      cd /mnt
      sudo mkdir win7share
      sudo mount -t vmhgfs .host:/win7share /mnt/win7share


      I was then able to access the Win 7 share and copy files to and from there.



      If you want to make this permanent then I suspect that you will need to edit the /etc/fstab file but I can't help you there yet.






      share|improve this answer
























      • If i execute sudo mount -t vmhgfs .host:/hst_ebooks /mnt/hgfs/hst_ebooks i get an Error: Error: cannot mount filesystem: No such device

        – V-Light
        May 11 '11 at 9:29













      • Have you created the /mnt/hgfs/hst_ebooks mount point? I think in my case /mnt/hgfs already existed and in case there were any special event handlers watching that directory I rather created a directory under /mnt directly. Therefore try sudo mkdir /mnt/hst_ebooks and then try running the command again.

        – snth
        May 12 '11 at 7:21













      • sudo vmware-hgfsmounter <host:sharename> <dir> runs the same commands as sudo mount -t vmhgfs <host:sharename> <dir> where <sharename> is vmware-hgfsclient

        – Mark Mikofski
        Jan 3 '13 at 5:41
















      3














      I've been having the same problem but I think I have just been able to make some progress.



      Type vmware-hfgs and then press the <Tab> key which will show you that there is also a vmware-hgfsmounter command. If you call that without any options it will print some help that shows you how to call this as part of the `mount' command. Using that info I then ran the following which worked for me:



      cd /mnt
      sudo mkdir win7share
      sudo mount -t vmhgfs .host:/win7share /mnt/win7share


      I was then able to access the Win 7 share and copy files to and from there.



      If you want to make this permanent then I suspect that you will need to edit the /etc/fstab file but I can't help you there yet.






      share|improve this answer
























      • If i execute sudo mount -t vmhgfs .host:/hst_ebooks /mnt/hgfs/hst_ebooks i get an Error: Error: cannot mount filesystem: No such device

        – V-Light
        May 11 '11 at 9:29













      • Have you created the /mnt/hgfs/hst_ebooks mount point? I think in my case /mnt/hgfs already existed and in case there were any special event handlers watching that directory I rather created a directory under /mnt directly. Therefore try sudo mkdir /mnt/hst_ebooks and then try running the command again.

        – snth
        May 12 '11 at 7:21













      • sudo vmware-hgfsmounter <host:sharename> <dir> runs the same commands as sudo mount -t vmhgfs <host:sharename> <dir> where <sharename> is vmware-hgfsclient

        – Mark Mikofski
        Jan 3 '13 at 5:41














      3












      3








      3







      I've been having the same problem but I think I have just been able to make some progress.



      Type vmware-hfgs and then press the <Tab> key which will show you that there is also a vmware-hgfsmounter command. If you call that without any options it will print some help that shows you how to call this as part of the `mount' command. Using that info I then ran the following which worked for me:



      cd /mnt
      sudo mkdir win7share
      sudo mount -t vmhgfs .host:/win7share /mnt/win7share


      I was then able to access the Win 7 share and copy files to and from there.



      If you want to make this permanent then I suspect that you will need to edit the /etc/fstab file but I can't help you there yet.






      share|improve this answer













      I've been having the same problem but I think I have just been able to make some progress.



      Type vmware-hfgs and then press the <Tab> key which will show you that there is also a vmware-hgfsmounter command. If you call that without any options it will print some help that shows you how to call this as part of the `mount' command. Using that info I then ran the following which worked for me:



      cd /mnt
      sudo mkdir win7share
      sudo mount -t vmhgfs .host:/win7share /mnt/win7share


      I was then able to access the Win 7 share and copy files to and from there.



      If you want to make this permanent then I suspect that you will need to edit the /etc/fstab file but I can't help you there yet.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Mar 18 '11 at 13:32









      snthsnth

      1412




      1412













      • If i execute sudo mount -t vmhgfs .host:/hst_ebooks /mnt/hgfs/hst_ebooks i get an Error: Error: cannot mount filesystem: No such device

        – V-Light
        May 11 '11 at 9:29













      • Have you created the /mnt/hgfs/hst_ebooks mount point? I think in my case /mnt/hgfs already existed and in case there were any special event handlers watching that directory I rather created a directory under /mnt directly. Therefore try sudo mkdir /mnt/hst_ebooks and then try running the command again.

        – snth
        May 12 '11 at 7:21













      • sudo vmware-hgfsmounter <host:sharename> <dir> runs the same commands as sudo mount -t vmhgfs <host:sharename> <dir> where <sharename> is vmware-hgfsclient

        – Mark Mikofski
        Jan 3 '13 at 5:41



















      • If i execute sudo mount -t vmhgfs .host:/hst_ebooks /mnt/hgfs/hst_ebooks i get an Error: Error: cannot mount filesystem: No such device

        – V-Light
        May 11 '11 at 9:29













      • Have you created the /mnt/hgfs/hst_ebooks mount point? I think in my case /mnt/hgfs already existed and in case there were any special event handlers watching that directory I rather created a directory under /mnt directly. Therefore try sudo mkdir /mnt/hst_ebooks and then try running the command again.

        – snth
        May 12 '11 at 7:21













      • sudo vmware-hgfsmounter <host:sharename> <dir> runs the same commands as sudo mount -t vmhgfs <host:sharename> <dir> where <sharename> is vmware-hgfsclient

        – Mark Mikofski
        Jan 3 '13 at 5:41

















      If i execute sudo mount -t vmhgfs .host:/hst_ebooks /mnt/hgfs/hst_ebooks i get an Error: Error: cannot mount filesystem: No such device

      – V-Light
      May 11 '11 at 9:29







      If i execute sudo mount -t vmhgfs .host:/hst_ebooks /mnt/hgfs/hst_ebooks i get an Error: Error: cannot mount filesystem: No such device

      – V-Light
      May 11 '11 at 9:29















      Have you created the /mnt/hgfs/hst_ebooks mount point? I think in my case /mnt/hgfs already existed and in case there were any special event handlers watching that directory I rather created a directory under /mnt directly. Therefore try sudo mkdir /mnt/hst_ebooks and then try running the command again.

      – snth
      May 12 '11 at 7:21







      Have you created the /mnt/hgfs/hst_ebooks mount point? I think in my case /mnt/hgfs already existed and in case there were any special event handlers watching that directory I rather created a directory under /mnt directly. Therefore try sudo mkdir /mnt/hst_ebooks and then try running the command again.

      – snth
      May 12 '11 at 7:21















      sudo vmware-hgfsmounter <host:sharename> <dir> runs the same commands as sudo mount -t vmhgfs <host:sharename> <dir> where <sharename> is vmware-hgfsclient

      – Mark Mikofski
      Jan 3 '13 at 5:41





      sudo vmware-hgfsmounter <host:sharename> <dir> runs the same commands as sudo mount -t vmhgfs <host:sharename> <dir> where <sharename> is vmware-hgfsclient

      – Mark Mikofski
      Jan 3 '13 at 5:41











      3














      (applies to Mac VMware Fusion and Ubuntu file sharing)
      When you are asked in vmware-config-tools.pl about whether you want HGFS, say yes! (The default is 'no' and you may have skipped over it when hitting enter). This should give you /mnt/hgfs after the tools are installed.






      share|improve this answer






























        3














        (applies to Mac VMware Fusion and Ubuntu file sharing)
        When you are asked in vmware-config-tools.pl about whether you want HGFS, say yes! (The default is 'no' and you may have skipped over it when hitting enter). This should give you /mnt/hgfs after the tools are installed.






        share|improve this answer




























          3












          3








          3







          (applies to Mac VMware Fusion and Ubuntu file sharing)
          When you are asked in vmware-config-tools.pl about whether you want HGFS, say yes! (The default is 'no' and you may have skipped over it when hitting enter). This should give you /mnt/hgfs after the tools are installed.






          share|improve this answer















          (applies to Mac VMware Fusion and Ubuntu file sharing)
          When you are asked in vmware-config-tools.pl about whether you want HGFS, say yes! (The default is 'no' and you may have skipped over it when hitting enter). This should give you /mnt/hgfs after the tools are installed.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 31 '14 at 4:22









          jobin

          19.6k1278109




          19.6k1278109










          answered Oct 20 '12 at 21:56







          user99347






























              3














              If you can't still mount shared folders after installing vmware-tools, here is the resolution.



              Previously, I couldn't mount windows shared folder after installing vmware tools. I didn't see any folders under /mnt/hgfs.



              Finally, I got resolved this share folder mounting issue by installing open-vm-dkms.



              Here are steps:




              1. Ensure configured shared folder in VMWare Player



              2. Install open-vm0dkms:



                sudo apt-get install open-vm-dkms


              3. Hit the "Enter" all the way to allow default value



              4. Mount Windows shared folder to Ubuntu VM:



                sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs 



              5. check if mounting is successful



                df -kh


                You should see:



                .host:/         57657252 50247088   7410164  88% /mnt/hgfs


                Also check again if any folders under /mnt/hgfs. You should see folders under which.




              6. Auto mount shared folder on startup



                There is a startup script called “open-vm-tools” with in /etc/init.d/ folder. Just add the below line in the start function.



                sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs



              Hope it can help.






              share|improve this answer


























              • This works for me with Windows 10 host and Xubuntu 14.04.2 client, thank you!

                – Hoang Huynh
                Mar 15 '15 at 12:40






              • 1





                I get: $ sudo apt-get install open-vm-dkms Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package open-vm-dkms

                – balupton
                Jun 16 '16 at 17:21













              • The following installs though: $ sudo apt-get install open-vm-tools-dkms

                – balupton
                Jun 16 '16 at 17:22
















              3














              If you can't still mount shared folders after installing vmware-tools, here is the resolution.



              Previously, I couldn't mount windows shared folder after installing vmware tools. I didn't see any folders under /mnt/hgfs.



              Finally, I got resolved this share folder mounting issue by installing open-vm-dkms.



              Here are steps:




              1. Ensure configured shared folder in VMWare Player



              2. Install open-vm0dkms:



                sudo apt-get install open-vm-dkms


              3. Hit the "Enter" all the way to allow default value



              4. Mount Windows shared folder to Ubuntu VM:



                sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs 



              5. check if mounting is successful



                df -kh


                You should see:



                .host:/         57657252 50247088   7410164  88% /mnt/hgfs


                Also check again if any folders under /mnt/hgfs. You should see folders under which.




              6. Auto mount shared folder on startup



                There is a startup script called “open-vm-tools” with in /etc/init.d/ folder. Just add the below line in the start function.



                sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs



              Hope it can help.






              share|improve this answer


























              • This works for me with Windows 10 host and Xubuntu 14.04.2 client, thank you!

                – Hoang Huynh
                Mar 15 '15 at 12:40






              • 1





                I get: $ sudo apt-get install open-vm-dkms Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package open-vm-dkms

                – balupton
                Jun 16 '16 at 17:21













              • The following installs though: $ sudo apt-get install open-vm-tools-dkms

                – balupton
                Jun 16 '16 at 17:22














              3












              3








              3







              If you can't still mount shared folders after installing vmware-tools, here is the resolution.



              Previously, I couldn't mount windows shared folder after installing vmware tools. I didn't see any folders under /mnt/hgfs.



              Finally, I got resolved this share folder mounting issue by installing open-vm-dkms.



              Here are steps:




              1. Ensure configured shared folder in VMWare Player



              2. Install open-vm0dkms:



                sudo apt-get install open-vm-dkms


              3. Hit the "Enter" all the way to allow default value



              4. Mount Windows shared folder to Ubuntu VM:



                sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs 



              5. check if mounting is successful



                df -kh


                You should see:



                .host:/         57657252 50247088   7410164  88% /mnt/hgfs


                Also check again if any folders under /mnt/hgfs. You should see folders under which.




              6. Auto mount shared folder on startup



                There is a startup script called “open-vm-tools” with in /etc/init.d/ folder. Just add the below line in the start function.



                sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs



              Hope it can help.






              share|improve this answer















              If you can't still mount shared folders after installing vmware-tools, here is the resolution.



              Previously, I couldn't mount windows shared folder after installing vmware tools. I didn't see any folders under /mnt/hgfs.



              Finally, I got resolved this share folder mounting issue by installing open-vm-dkms.



              Here are steps:




              1. Ensure configured shared folder in VMWare Player



              2. Install open-vm0dkms:



                sudo apt-get install open-vm-dkms


              3. Hit the "Enter" all the way to allow default value



              4. Mount Windows shared folder to Ubuntu VM:



                sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs 



              5. check if mounting is successful



                df -kh


                You should see:



                .host:/         57657252 50247088   7410164  88% /mnt/hgfs


                Also check again if any folders under /mnt/hgfs. You should see folders under which.




              6. Auto mount shared folder on startup



                There is a startup script called “open-vm-tools” with in /etc/init.d/ folder. Just add the below line in the start function.



                sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs



              Hope it can help.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 19 '14 at 11:29









              Eric Carvalho

              42.4k17116147




              42.4k17116147










              answered Apr 19 '14 at 10:16









              konglee28konglee28

              312




              312













              • This works for me with Windows 10 host and Xubuntu 14.04.2 client, thank you!

                – Hoang Huynh
                Mar 15 '15 at 12:40






              • 1





                I get: $ sudo apt-get install open-vm-dkms Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package open-vm-dkms

                – balupton
                Jun 16 '16 at 17:21













              • The following installs though: $ sudo apt-get install open-vm-tools-dkms

                – balupton
                Jun 16 '16 at 17:22



















              • This works for me with Windows 10 host and Xubuntu 14.04.2 client, thank you!

                – Hoang Huynh
                Mar 15 '15 at 12:40






              • 1





                I get: $ sudo apt-get install open-vm-dkms Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package open-vm-dkms

                – balupton
                Jun 16 '16 at 17:21













              • The following installs though: $ sudo apt-get install open-vm-tools-dkms

                – balupton
                Jun 16 '16 at 17:22

















              This works for me with Windows 10 host and Xubuntu 14.04.2 client, thank you!

              – Hoang Huynh
              Mar 15 '15 at 12:40





              This works for me with Windows 10 host and Xubuntu 14.04.2 client, thank you!

              – Hoang Huynh
              Mar 15 '15 at 12:40




              1




              1





              I get: $ sudo apt-get install open-vm-dkms Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package open-vm-dkms

              – balupton
              Jun 16 '16 at 17:21







              I get: $ sudo apt-get install open-vm-dkms Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package open-vm-dkms

              – balupton
              Jun 16 '16 at 17:21















              The following installs though: $ sudo apt-get install open-vm-tools-dkms

              – balupton
              Jun 16 '16 at 17:22





              The following installs though: $ sudo apt-get install open-vm-tools-dkms

              – balupton
              Jun 16 '16 at 17:22











              0














              A workaround for this problem is to edit 'inode.c' and change the line '888' to remove 'compat_truncate' function call (that is responsible for this problem on kernels 3.8.x). This file is inside 'vmware-tools-distrib', so you need to perform the following steps:



              Extract VMWare-Tools (probably you will get a folder called vmware-tools-distrib).
              Then:



               cd /vmware-tools-distrib/lib/modules/source
              tar xf vmhgfs.tar
              cd vmhgfs-only/
              sudo gedit inode.c


              Go to line 888:



               result = compat_vmtruncate(inode, newSize);


              And change it to:



               result = 0;


              Then save the file and exit gedit.



               cd ..
              rm -rf vmhgfs.tar
              tar cf vmhgfs.tar vmhgfs-only/
              rm -rf vmhgfs-only/


              Now restart the installing procedure. It worked for me in Xubuntu 13.04.



              Src:
              http://ubuntuforums.org/showthread.php?t=2136277&page=4&p=12709627#post12709627






              share|improve this answer




























                0














                A workaround for this problem is to edit 'inode.c' and change the line '888' to remove 'compat_truncate' function call (that is responsible for this problem on kernels 3.8.x). This file is inside 'vmware-tools-distrib', so you need to perform the following steps:



                Extract VMWare-Tools (probably you will get a folder called vmware-tools-distrib).
                Then:



                 cd /vmware-tools-distrib/lib/modules/source
                tar xf vmhgfs.tar
                cd vmhgfs-only/
                sudo gedit inode.c


                Go to line 888:



                 result = compat_vmtruncate(inode, newSize);


                And change it to:



                 result = 0;


                Then save the file and exit gedit.



                 cd ..
                rm -rf vmhgfs.tar
                tar cf vmhgfs.tar vmhgfs-only/
                rm -rf vmhgfs-only/


                Now restart the installing procedure. It worked for me in Xubuntu 13.04.



                Src:
                http://ubuntuforums.org/showthread.php?t=2136277&page=4&p=12709627#post12709627






                share|improve this answer


























                  0












                  0








                  0







                  A workaround for this problem is to edit 'inode.c' and change the line '888' to remove 'compat_truncate' function call (that is responsible for this problem on kernels 3.8.x). This file is inside 'vmware-tools-distrib', so you need to perform the following steps:



                  Extract VMWare-Tools (probably you will get a folder called vmware-tools-distrib).
                  Then:



                   cd /vmware-tools-distrib/lib/modules/source
                  tar xf vmhgfs.tar
                  cd vmhgfs-only/
                  sudo gedit inode.c


                  Go to line 888:



                   result = compat_vmtruncate(inode, newSize);


                  And change it to:



                   result = 0;


                  Then save the file and exit gedit.



                   cd ..
                  rm -rf vmhgfs.tar
                  tar cf vmhgfs.tar vmhgfs-only/
                  rm -rf vmhgfs-only/


                  Now restart the installing procedure. It worked for me in Xubuntu 13.04.



                  Src:
                  http://ubuntuforums.org/showthread.php?t=2136277&page=4&p=12709627#post12709627






                  share|improve this answer













                  A workaround for this problem is to edit 'inode.c' and change the line '888' to remove 'compat_truncate' function call (that is responsible for this problem on kernels 3.8.x). This file is inside 'vmware-tools-distrib', so you need to perform the following steps:



                  Extract VMWare-Tools (probably you will get a folder called vmware-tools-distrib).
                  Then:



                   cd /vmware-tools-distrib/lib/modules/source
                  tar xf vmhgfs.tar
                  cd vmhgfs-only/
                  sudo gedit inode.c


                  Go to line 888:



                   result = compat_vmtruncate(inode, newSize);


                  And change it to:



                   result = 0;


                  Then save the file and exit gedit.



                   cd ..
                  rm -rf vmhgfs.tar
                  tar cf vmhgfs.tar vmhgfs-only/
                  rm -rf vmhgfs-only/


                  Now restart the installing procedure. It worked for me in Xubuntu 13.04.



                  Src:
                  http://ubuntuforums.org/showthread.php?t=2136277&page=4&p=12709627#post12709627







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 1 '13 at 12:03









                  Mahmoud M. Abdel-FattahMahmoud M. Abdel-Fattah

                  15818




                  15818

















                      protected by Eric Carvalho Aug 27 '15 at 16:17



                      Thank you for your interest in this question.
                      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                      Would you like to answer one of these unanswered questions instead?



                      Popular posts from this blog

                      How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                      is 'sed' thread safe

                      How to make a Squid Proxy server?