LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-25-2007, 10:25 PM   #1
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
Cannot use any USB devices in VirtualBox


Hi, I have a problem with Virtualbox when I try to use any USB devices, I get this message:

Code:
Not permitted to open the USB device, check usbfs options.


Result Code: 
0x80004005
Component: 
Console
Interface: 
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}
I noticed that I can use USB devices when I run XP while I'm root. I tried a couple of sites HOWTO's on this matter, but it didn't help.

Any ideas?

Thanks,
--David
 
Old 07-30-2007, 12:44 AM   #2
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
I figured it out. For anybody that uses a distro that doesn't use "sudo" by default, (i.e. Slack) You gotta set up sudo to allow you to run /usr/bin/VirtualBox as root
 
Old 11-15-2007, 05:24 PM   #3
dborca
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
The problem:

In Slackware 11, usbfs is mounted from rc.udev with

Code:
mount usbfs -t usbfs /proc/bus/usb -o devgid=10,devmode=0666
In Slackware 12, usbfs is mounted from rc.S with

Code:
/sbin/mount -v usbfs /proc/bus/usb -t usbfs
Which means that only root is able to rw in usbfs.

The solution:
You must edit rc.S to mount usbfs with rw permissions for other users (I used `wheel’ group):

Code:
/sbin/mount -v usbfs /proc/bus/usb -t usbfs -o devgid=10,devmode=0664
 
Old 07-15-2009, 09:14 PM   #4
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Rep: Reputation: 18
Running virtualbox 3.0 r49315 on slackware12 stock (i mean... not updated to current) and this tweek don't work

I have to run virtualbox as root to get access to usb devices....


does anybody have the same issue as me?
 
Old 07-15-2009, 09:53 PM   #5
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Rep: Reputation: 18
found a much elegant solution...

add this line to /etc/fstab

none /proc/bus/usb usbfs auto,remount,devmode=0664,devgid=100 0 0
 
Old 03-26-2010, 05:57 PM   #6
Drone91
LQ Newbie
 
Registered: Oct 2005
Location: Slovakia
Distribution: Debian, Slackware
Posts: 19

Rep: Reputation: 0
Quote:
Originally Posted by kernel-P4N1C View Post
found a much elegant solution...

add this line to /etc/fstab

none /proc/bus/usb usbfs auto,remount,devmode=0664,devgid=100 0 0


For anyone who finds this thread like me.
the remount option is invalid in fstab and will yield to mount failing.
put rw,auto and the dev configs instead
easy to see but saves a few reboots
 
Old 03-26-2010, 06:02 PM   #7
Drone91
LQ Newbie
 
Registered: Oct 2005
Location: Slovakia
Distribution: Debian, Slackware
Posts: 19

Rep: Reputation: 0
please delete
 
Old 06-14-2010, 08:36 AM   #8
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Rep: Reputation: 18
JUNE 2010 UPDATE

I had to make a clean install on my hdd as it died.
On a clean install of slackware 13.1 and this approach no longer works.
I have access to a usb printer but no access to any mounted or unmounted usb pendrive.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 10.2: no usb-devices loaded, my usb-controller too old? Foxt_20 SUSE / openSUSE 1 03-07-2007 12:02 PM
VirtualBox, Ubuntu 6.10 and Bad Devices ogee Linux - Software 2 03-02-2007 03:49 PM
MDK 10.2: No USB at all (/proc/bus/usb/devices missing) shrodi Mandriva 5 07-01-2005 11:28 AM
USB scanner not in /proc/bus/usb/devices psweetma Linux - Hardware 4 02-25-2004 04:47 PM
slackware 9.1 USB mouse and other usb devices not working jimMC Linux - Hardware 11 01-24-2004 10:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration