VirtualBox

Ticket #2265 (closed defect: invalid)

Opened 6 years ago

Last modified 6 years ago

Directory names clash with shared folder names

Reported by: srackham Owned by:
Priority: major Component: shared folders
Version: VirtualBox 2.0.2 Keywords: mount shared folder
Cc: Guest type: Linux
Host type: Windows

Description

If you have a folder in the same directory as your mount directory that has the same name as the VirtualBox shared folder name you will get a 'mounting failed with the error: Protocol error' error. Here's a transcript that illustrates the problem -- the first mount works fine, but the second (after creating a directory with the same name as the shared folder) fails:


$ ls -l
total 4
drwxr-xr-x 2 srackham srackham 4096 2008-09-18 17:10 shared

$ sudo mount -t vboxsf -o uid=srackham,gid=srackham host shared/

$ mount -t vboxsf
host on shared/ type vboxsf (uid=1001,gid=1001,rw)

$ sudo umount shared/

$ mkdir host

$ ls -l
total 4
drwxr-xr-x 2 srackham srackham 4096 2008-09-18 17:14 host
drwxrwxrwx 1 srackham srackham 0 2008-09-18 10:16 shared

$ sudo mount -t vboxsf -o uid=srackham,gid=srackham host shared/
/sbin/mount.vboxsf: mounting failed with the error: Protocol error


I don't know if this is the right place for unsolicited praise but a big thank you to everyone involved for this absolutely amazing piece of software.

Change History

comment:1 Changed 6 years ago by michael

  • Status changed from new to closed
  • Resolution set to invalid

This is something to do with either the mount programme or the shell (I forget which) which sees that the name on the command line matches the file and expands the name. Try using mount.vboxsf instead of mount.

comment:2 Changed 6 years ago by michael

And thanks for the nice words :)

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use