How to mount a shared VMWare folder on startup

fstabmountvmware

So I'm following this article on how to mount a shared vmware folder.

I can successfully mount with the following command:

mount -t vmhgfs .host:/foo /home/user/Documents/foo

However, I can't seem to get it work with /etc/fstab. I added this line:

.host:/foo /home/user/Documents/foo vmhgfs defaults 0 0

When I start up my machine, it prompts me to press S to skip mount or M for manual recovery and it won't mount. I'm forced to press S to skip to get into the OS. How can I fix this?

Edit: So I've found that VMware is already automatically mounting it to /mnt/hgfs/foo so my temporary workaround is a symlink to that directory. Is it possible to override this behavior so that I don't need a symlink?

Best Answer

Alternatively you could put the mount command you use at the commandline in /etc/rc.local.

Related Question