I have a shared folder set up between virtualbox and my windows 7 host machine. I have a test.txt file that I created in Windows and it shows up appropriately in my Ubuntu VM. Virtualbox mounts the shared folder in
/media/sf_share (the name I gave to the shared folder in the virtualbox settings was
share). I want to move the mount point from
/media/sf_share to simply
/srv so that on my windows host I can edit files and they show up under
/srv. How can I accomplish this?
What I've tried:
/etc/fstab to look like this:
share /srv vboxsf defaults 0 0
After doing this I used the command
mount -a, also I rebooted, and I rebooted again with the virtualbox shared folder settings to NOT auto-mount.
I read there is an issue with filesystems being mounted before virtualbox utilities are loaded, so I added
vboxsf to my
/etc/modules and then repeated the steps above.
None of them reproduce the correct content in /
srv. When I issue
mount -a AFTER I have edited the
fstab I can sometimes get it to work. I don't know what I'm doing differently each time, but sometimes after I edit
mount -a without rebooting I can see the files there. After a reboot though the files are gone again.
/srvin my vm).