Page 1 of 1

Fedora 9 USB

Posted: 1. Jan 2009, 20:26
by cornfused
I can't for the life of me to get USB to work on Fedora 9 with a Win2k Guest.
I added this:

Code: Select all

none /proc/bus/usb usbfs auto,busgid=501,busmode=0775,devgid=501,devmode=664 0 0
at the suggestion of another post on this site, Didn't help

I added the /etc/udev/scripts/set-usb-group script containing:

Code: Select all

#! /bin/sh
ret=false
if [ "$1" != "" ]; then
if [ -f /proc/$1 ]; then
chgrp usb /proc/$1 && \
chmod g+rw /proc/$1 && \
logger udev/set-usb-group: `ls -l /proc/$1`
ret=true
fi

if [ -e /dev/$1 ]; then
chgrp usb /dev/$1 && \
chmod g+rw /dev/$1 && \
logger udev/set-usb-group: `ls -l /dev/$1`
ret=true
fi
else
logger udev/set-usb-group: Called without device arg
exit 0
fi

if ! $ret; then
logger udev/set-usb-group: Setting permissions on device $1 failed
fi
that I saw somewhere else. I've added groups, changed a bunch of permissions, and all I get when I rt-click on the USB devices in Virtualbox (the icon at the bottom) is my USB devices grayed out and "No usb devices attached"

What am I doing wrong. No I don't want to run VirtualBox as root.

Re: Fedora 9 USB

Posted: 1. Jan 2009, 20:56
by TrevorPH
cornfused wrote:I can't for the life of me to get USB to work on Fedora 9 with a Win2k Guest.
I added this:

Code: Select all

none /proc/bus/usb usbfs auto,busgid=501,busmode=0775,devgid=501,devmode=664 0 0
at the suggestion of another post on this site, Didn't help
I'm running on Centos 5 and to get USB to work with <= 2.0.4 I had to edit /etc/rc.sysinit to amend the mount for usbfs there. Perhaps Fedora 9 is similar?

Code: Select all

if [ ! -d /proc/bus/usb ]; then
        modprobe usbcore >/dev/null 2>&1 && mount -n -t usbfs /proc/bus/usb /proc/bus/usb -o devgid=501,devmode=664
else
        mount -n -t usbfs /proc/bus/usb /proc/bus/usb -o devgid=501,devmode=664
fi

Posted: 1. Jan 2009, 21:06
by cornfused
That was it.

Perhaps the FAQ should be updated.
Hope that I don't have to go through all this if I update to Fedora 10!!!!

Posted: 1. Jan 2009, 21:08
by Sasquatch
Thanks TrevorPH, it will be added to the FAQ.

Posted: 2. Jan 2009, 01:05
by sej7278

Code: Select all

none /sys/bus/usb/drivers	usbfs	devgid=502,devmode=664	0	0
in /etc/fstab works fine for me with fedora9, fedora10 and centos 5.2 since virtualbox 2.0.2

looks like your code was a bit wrong - possibly from a n00buntu user?

Posted: 2. Jan 2009, 02:43
by robatino
If the vboxusers group has gid 501, and I'm a member of that group, then adding the line

Code: Select all

none /sys/bus/usb/drivers usbfs devgid=501,devmode=664 0 0
at the end of /etc/fstab has worked for me in both F9 and F10.

Posted: 4. Jan 2009, 17:51
by Sasquatch
Ok, will update when I get to the topic.

Re: Fedora 9 USB

Posted: 10. May 2009, 05:04
by MercuryShadow
I added the line to my fstab, and I'm still showing all USB devices greyed out. Fedora 10 host, WinXP guest, VBox 2.2.2 PUEL.

Nevermind, took a reboot after adding this line, but it's all good now.

Re: Fedora 9 USB

Posted: 20. May 2009, 12:20
by starlon
For some reason /proc/bus/usb/drivers doesn't work for me on Fedora 10. I have to use /proc/bus/usb. I have to use the following after I've booted:

umount /proc/bus/usb
mount -n -t usbfs /proc/bus/usb /proc/bus/usb -o devgid=503,devmode=664

It doesn't work if I put it in /etc/fstab at the end. /proc/bus/usb is root:root until I run the two commands above.

Re: Fedora 9 USB

Posted: 14. Jul 2009, 00:32
by virtual_ulm
For Fedora 11 there is another solution.

Re: Fedora 9 USB

Posted: 14. Jul 2009, 00:33
by virtual_ulm
The solution starlon proposes works perfect for me (Centos/RHEL 5.3, VirtualBox 3.0.2).

Re: Fedora 9 USB

Posted: 14. Jul 2009, 02:49
by aardvark99
Thanks for the advice, editing /etc/rc.sysinit worked well on Fedora 10. I couldn't get USB working no matter what I did with /etc/fstab.