Search code examples
ubuntuvmwaremount

VMware - How to change path to shared folder on ubuntu virtual machine


I created a shared folder on VMware, it is mounted on my ubuntu virtual machine to /mnt/hgfs/shared-folder.

Instead, I want to mount it to /path/to/my/web/directory/

How can I achieve that?


Solution

  • Assuming the host is present (which is, after setting up the shared folder with VMware), use this command to mount hosts shared folder :

    vmhgfs-fuse .host:/shared-folder /path/to/my/web/directory/
    

    Use this command to unmount the default mountpoint:

    sudo umount /mnt/hgfs