Hello, Yuhui Liu!

On Wed, 19 Nov 2008 21:52:12 -0800 You wrote:

> > The problem is that my USB key can only be detected by the host but
> > not the VM. I already enabled it in the virtualbox settings since
> > the USB list says: "USB 1 (1 active)". And I can see the USB key in
> > the menu "Devices"->"USB Devices" but it's greyed out. If I click
> > on it, there's a check sign shows up in the left side of the item
> > till the mouse pointer moves away from this item.
> >
> > What should I do to share this USB device? *

I run VirtualBox on 32 bit x86 linux and I can share USB keys/disks
only if I mount usbfs with right permissions (user running vbox must
have rights to write to usbfs):

bash$ cat /etc/groups | grep usb
usbusers:x:105:oleg

--------------------------------
# Mount usbfs:
USBFS_GID=$(cat /etc/group | grep usbusers | cut -d: -f3)
if grep -wq usbfs /proc/filesystems; then
  if ! grep -wq usbfs /proc/mounts ; then
    /sbin/mount -v -t usbfs none /proc/bus/usb  -o
busmode=0775,busgid=$USBFS_GID,devmode=0664,devgid=$USBFS_GID,listmode=0664,listgid=$USBFS_GID
  fi 
fi
--------------------------------


After /sbin/mount must be one string of course


_____________________________________________________________________
Anarchy may not be the best form of government, but it's better than no
government at all.

--
Best regards, Oleg Osovitskiy
icq: 33366588, e-mail: [EMAIL PROTECTED], FidoNet: 2:5020/845.11

Attachment: signature.asc
Description: PGP signature

_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to