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 🙂
perfect! thanks a lot!
?OK now I’m really confused — does this mean that shared folders cannot work on a host computer with one logical drive? I have C: only. (plus my intent was for the guest ubuntu to access host Windows’ “My Documents” folder, if it can’t do that what’s the point?)
Thank you !