Here is a step by step on how to set up shared folders for accessing Windows folders in a Linux guest.
1. Assign the host folders to share through the VM settings in VirtualBox. No need to setup shares in Windows Explorer itself.
2. Create mount points for the shares in the guest (as root):
3. Setup sudo (as root):
Add the following at the end of /etc/sudoers:
user ALL = NOPASSWD : ALL
Replace "user" with your username.
4. Create a script to mount your shares:
sudo mount -t vboxsf music /mnt/share/music
sudo mount -t vboxsf videos /mnt/share/videos
sudo mount -t vboxsf pix /mnt/share/pix
sudo mount -t vboxsf dox /mnt/share/dox
sudo mount -t vboxsf down /mnt/share/down
The names after "vboxsf" are the ones you set for your shared folders in step 1.
Make shared-folders script executable:
chmod +x shared-folders
5. Add the script to Gnome startup programs:
Desktop > Preferences > Sessions > Startup Programs
Now your shared folders will be ready as soon as your Gnome desktop loads.
BEWARE: currently the content at the root of shared Windows Vista folders featuring a "Location" tab in their properties window cannot be deleted or edited from the guest, neither new files or folders can be created at that level. Anyway, these limitations do not apply for their subfolders.