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.vboxsfmounting failed with the errorInvalid 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 🙂

Tip for Shared Folder in VirualBox

3 thoughts on “Tip for Shared Folder in VirualBox

  • February 10, 2011 at 15:46

    perfect! thanks a lot!

  • April 13, 2011 at 23:20

    ?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?)

  • May 1, 2011 at 13:47

    Thank you !

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.