I was struck few hours with an unusual issue
whenever i try to share a host folder (windows 7 ) with guest Ubuntu 10.10 on Virutal box, i was getting error
mount.vboxsf: mounting failed with the error: Invalid argument.
After a long trial and error , i noticed that when the host shared folder is on the same drive say c:, it is causing the problem. So when i changed the shared folder to f:, every things were fine.
so here are the tips to share a host folder with guest
install guest addons
create a folder on virutalbox with name sharedwin pointing to f:/shared_folder
on terminal type
sudo mkdir /mnt/shared
sudo mount.vboxsf sharedwin /mnt/shared
If you add the following line to /etc/fstab, it will mount automatically on start
sharedwin /mnt/shared vboxsf defaults 0 0
Hope it will help some one 🙂