Linux – where is the shared folder in linux inside Vmware Player

linuxshared-foldersUbuntuvmware-player

I'm trying to write a program which will copy files from my guest OS which is linux Ubunto to my host OS which is windows 7. I have enabled the shared folders options but of course in order to copy files, i need to write a destination path in my code and I don't know where is the shared folder located inside Linux… so does someone knows where it's located?

Best Answer

First you need to configure the shared folders in VMware Player, as you said you've done. Let's assume you named the shared folder Shared. Then, on the linux guest, add a line like the following to /etc/fstab:

.host:/Shared    /mnt/C    vmhgfs    user    0 0

This will make the host folder that you named Shared accessible as the directory /mnt/C on the linux guest.

You'll need to create the mount point on the guest manually:

sudo mkdir /mnt/C

Finally, restart the linux guest.

Related Question