Saturday, March 13, 2010

Mounting VirutalBox shared folder

I had this mysterious failure.

$ sudo mount -t vboxsf -o uid=1000,gid=1000 Projects ~/Projects.ext
/sbin/mount.vboxsf: mounting failed with the error: Protocol error

It turned out the problem was my local directory named 'Projects' in the current directory. It looks like mount.vboxsf thinks I'm instructing to mount the local directory 'Projects' instead of the shared folder 'Projects'. If I cd to a directory that doesn't have a 'Projects', the same command was successful. Annoying :(

No comments: