简体   繁体   中英

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?

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

There is a variable named vmhgfs_mnt in /etc/init.d/vmware-tools

vmhgfs_mnt="/mnt/hgfs"

You can change /mnt/hgfs to /path/to/my/web/directory .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM