I recommend this procedure:
1) Be sure that GuestAdditions are installed in VM.
2) Define a shared folder on the VB menu. For example, I have defined the folder "d:\share" with the name "share". Important: do not tick the Auto-Mount option!!!.
3) Create the mount point in VM:
Code:
sudo mkdir /media/share
4) Edit file /etc/rc.local
Code:
gksudo gedit /etc/rc.local
and add the command mount:
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mount.vboxsf -w -o uid=1000,gid=1000 share /media/share
exit 0
Save and exit.
Finally reboot the VM and check if the shared folder is automounted properly.
You can define symlinks typing commands similar to this:
Code:
ln -s /media/share share
Best regards,
Luis
Bookmarks