I’m trying to integrate the Documents folders on all my machines. (Or, at the very least, set up a shared folder to automount on startup.)
I used the Virtualbox interface to setup a shared folder, selecting the correct host path
and checking “Make Permenant.”
On my UbuntuServer12.04 guest, I created a mountpoint directory,
. On the other guest, there is already a Documents folder which I will use as the mountpoint.
I entered this into /etc/fstab on both guest systems:
Documents /home/username/Documents vboxsf uid=username,gid=groupname 0 0
I even tested /etc/rc.local (made sure it was executable) by adding one of these three lines (tested one line, rebooted, replaced it with the next line, rebooted, tested the third…):
mount -t vboxsf Documents /home/username/Documents
I’m pulling my hair out faster than it’s already thinning and I’m going to go balled in no-time if I don’t get some help (know what I mean?)
Shared folders are automatically mounted in /media/sf_sharename. There are 2 ways to make your shared folder appear where you actually want them to go.
Bind them to another folder.
1: Check if you are in the vboxsf group with
2: If you don’t see vboxsf, join the group by doing this, otherwise skip to step 3:
sudo usermod -a -G vboxsf username
3: Bind the automatically generated shared folder to your mountpoint by putting this line into /etc/rc.local:
mount –bind /media/sf_sharename /path/to/mountpoint
Just make a symbolic link:
ln -s /media/sf_sharename /wherever/you/want