You are on page 1of 29

Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Log in / Register
Ubuntu
qemu package

Overview Code Bugs Blueprints Translations Answers

Bug #156085 reported by TJ on 2007-10-23


This report
contains
This bug a�ects 15 people 238 information
Everyone can see this
information.

QEMU Fix Released Undecided Unassigned

Virtualbox virtualbox-
Fix Released Unknown
trac #747
Scott James
apcupsd
Invalid High Remnant Bug #60273
(Ubuntu)
(Canonical) Bug #145728

Declined for Intrepid by Dustin Kirkland Bug #150718


Bug #151585
Gutsy Invalid Undecided Unassigned
Bug #157088
Hardy Invalid Undecided Unassigned Bug #157843
Bug #173122
Jaunty Scott James
Invalid High Remnant Bug #212450
(Canonical) Bug #215081

fxload Bug #258768


Fix Released Undecided Unassigned
(Ubuntu) Bug #276133
Bug #312508
Declined for Intrepid by Dustin Kirkland

Gutsy Won't Fix Undecided Unassigned You are not


directly subscribed to
Hardy Won't Fix Undecided Unassigned this bug's
noti�cations.
Jaunty Fix Released Undecided Unassigned
Edit bug mail
kvm Dustin
Fix Released Medium
(Ubuntu) Kirkland

Declined for Intrepid by Dustin Kirkland

Gutsy Subscribe
Won't Fix Undecided Unassigned
someone else
Hardy Won't Fix Low Unassigned
Noti�ed of all
Jaunty Dustin changes
Fix Released Medium
Kirkland
Anders

1 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Häggström
Andreas
madfuload Chris Halse
Fix Released Undecided Unassigned
(Ubuntu) Rogers
Daniele Cruciani
Declined for Intrepid by Dustin Kirkland
Danny Wood
Gutsy Won't Fix Undecided Unassigned Denilson Sá

Hardy Emmet Hikory


Won't Fix Undecided Unassigned
Jisakiel
Jaunty Fix Released Undecided Unassigned Ken Pratt
Kip Warner
midisport- Scott James
�rmware Fix Released High Remnant Max Romantschuk
(Ubuntu) (Canonical) Michael
Mike
Declined for Intrepid by Dustin Kirkland
Monty
Gutsy Won't Fix Undecided Unassigned Noel J. Bergman
Pelládi Gábor
Hardy Won't Fix Undecided Unassigned
Peter Bienstman
Jaunty Scott James Richard Corner
Fix Released High Remnant
Saúl Romero
(Canonical)
Sebastian
qemu Dustin Malcolm
Fix Released Medium
(Ubuntu) Kirkland
Sergio Zanchetta

Declined for Intrepid by Dustin Kirkland Srećko Jurić-


Kavelj
Gutsy Won't Fix Undecided Unassigned TJ

Hardy Tom Scholl


Won't Fix Low Unassigned
Toro Hill
Jaunty Dustin
Fix Released Medium Ubuntu Review
Kirkland
Team
qemu novell-bugs Yehuda Drori
Fix Released Critical
(openSUSE) #241950
dukat
sysvinit Ubuntu exactt
Won't Fix High Unassigned
(Ubuntu) ubuntu-8.04 lhausermann
lnx
Declined for Intrepid by Dustin Kirkland
perpetualrabbit
Gutsy Invalid Undecided Unassigned sibidiba
tors
Hardy Won't Fix High Unassigned
towerlexa
Jaunty Ubuntu
Won't Fix High Unassigned
ubuntu-8.04 May be noti�ed
ABOANAS93
usbview debbugs
Fix Released Unknown Alejandro J. Alva...
(Debian) #451191
Alexander
Nevench...

2 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Andrii Motsok
AnnaZed
usbview Anthony Liguori
Triaged Medium Unassigned
(Ubuntu)
Ashani Holland

Declined for Intrepid by Dustin Kirkland BlacKnight


Brian Thomason
Gutsy Won't Fix Undecided Unassigned
Bruno Garcia
Hardy Won't Fix Undecided Unassigned Bruno76
CRC
Jaunty Won't Fix Medium Unassigned Canonical
Partner...
vmware-
server Invalid High Unassigned Carlos Villota
(Ubuntu) Charlie_Smotherman
Christian Ehrhardt
Declined for Intrepid by Dustin Kirkland

Gutsy Won't Fix Undecided Unassigned Chun-Hung Chen


Craig McQueen
Hardy Won't Fix Undecided Unassigned Craig Miller

Jaunty Invalid High Cristian


Unassigned
Dan Bishop
Daniel
Bug Description
Gimpelevich
On Gutsy 64-bit using qemu/kvm (also VirtualBox and, I believe, Daniel Omar
VMWare) and the "-usb" switch no USB devices are available since Casta...
qemu/kvm looks for the description of them in the 'devices' file
Daniel Tai
of a usbfs mount at
Davi Thiesse
/proc/bus/usb/ Debian PTS
Doraann2
but the code previously providing the usbfs mount that is
Dustin Kirkland
created at start-up via /etc/rcS/S11mountdevsubfs.sh -->
/etc/init.d/mountdevsubfs.sh was commented out. The USB devices Fabien Lusseau
are now reported at Franko Fang
GreatBunzinni
/dev/bus/usb/
Haochen Zhang
but currently there is no usbfs file-system mounted/linked there Harpianto,ANDI
to provide the 'devices' text-file. HaySayCheese
Hidagawa
qemu/kvm reports:
Iain
qemuctl -qemu vdeq kvm -boot c -m 512 -hda /home/all/ Jair Avillez
VirtualMachines/WindowsXP-SP2.ovl -net nic,vlan=0 -soundhw
James
es1370 -usb -net vde
Jesse Jones
info usbhost John Edwards
Could not open /proc/bus/usb/devices José Alfonso
Julio Faracco
$ ls -l /proc/bus/usb
total 0 Kamila
LPM

3 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

WORKAROUND: Lancillotto
To re-enable it edit the file '/etc/init.d/mountdevsubfs.sh' and Liang Yan
uncomment the code after line 40 so it reads:
Marcel B
# Magic to make /proc/bus/usb work
Matt j
#
mkdir -p /dev/bus/usb/.usbfs Mauricio Faria
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode= de...
0600,listmode=0644 Michael A. Phillips
ln -s .usbfs/devices /dev/bus/usb/devices Michael Rowland
mount --rbind /dev/bus/usb /proc/bus/usb H...
Execute the script manually to enable the change before a system
Mohan W
reboot:
Mr. MInhaj
$ sudo /etc/init.d/mountdevsubfs.sh start
Name Changed
See original description Onno Benschop
OrthoDoc
Tags: regression-release PCTeacher012
Paolo Topa
Patrice Vetsel
lp:ubuntu/karmic/madfuload Peter Bullert
lp:ubuntu/karmic/midisport-�rmware
Phil Moreland
lp:ubuntu/karmic/fxload
Phillip Susi
lp:ubuntu/maverick/fxload
Punnsa

TJ (tj) on 2007-10-23 QiangGuan


Rafael Campos
:updated Las...
Ricardo Sousa
Richard Seguin
Christopher Blay (blayde) wrote on 2007-10-27: #2
Richard Williams
Richard Zhang
would making a symbolic link to /sys/bus/usb from /proc/bus/usb
Ryan Harper
help or just screw everything up?
SEBASTIANFFX
Satheesh
Christopher Blay (blayde) wrote on 2007-10-27: #3 Rajendran
Scott James
alright, i take back my previous comment (i learned something Remna...
new today). anyways, would it be possible for whoever maintains Shirish Agarwal
this package to add TJ's patch and update the repos?
Spencer Yu
Sten-Arvid
TJ (tj) wrote on 2007-10-27: #4 Steve Langasek
Tero Karvinen
Your initial comment made me smile - it was the first thing I Thomas
tried. When I realised that wouldn't work I got smarter and did Bergmann

mount --bind /sys/bus/usb /proc/bus/usb Tom


Tom Weiss
and felt mighty pleased it worked! However qmeu/kvm still
Ubuntu
couldn't find any devices and I realised it was because in
Foundation...
/sys/bus/usb/devices all the device-links are relative, and

4 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

begin ../../../devices Unfortunately, in the /proc/bus/usb tree Ubuntu Server


that takes us to /proc/devices which is a regular file and Ubuntu Touch
already exists - drat, foiled again! seed...
If other's can confirm this is a problem on 32-bit and 64-bit Ubuntu
qemu and kvm I'll post apply the patch and post an SRU debdiff. Virtualisa...
Vasanth
Changed in qemu: Ventusfahrer
:nobody → intuitivenipple Vic Parker
:Undecided → Low
W. Prins
:New → In Progress
William F Pearson
Changed in kvm:
:nobody → intuitivenipple ZhiQiang Yan
:Undecided → Low adhyas
:New → In Progress ahepas
art alexion
basilisgabri
TJ (tj) wrote on 2007-10-28: #5
bundom@empas.com

There is a work-around that re-enables /proc/bus/usb/devices: chen


copacule
Support for /proc/bus/usb/* was removed in the initscripts
defcom
package (part of sysvinit), as per this changelog entry:
dennis hannigan
sysvinit (2.86.ds1-14.1ubuntu22) gutsy; urgency=low
dsfkj dfjx
* Drop /proc/bus/usb again; software should all be ported to eoininmoran
check
esox
/dev/bus/usb first by now.
evuraan
-- Scott James Remnant <email address hidden> Wed, 11 Jul 2007 f5pvg
13:47:24 +0100
fagan.pm
To re-enable it edit the file '/etc/init.d/mountdevsubfs.sh' and ganesh
uncomment the code after line 40 so it reads: grphilar
# Magic to make /proc/bus/usb work guangming liu
# hhzuoguoyou
mkdir -p /dev/bus/usb/.usbfs
hotdigi
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=
kmkt50kmkt50
0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices knuszka
mount --rbind /dev/bus/usb /proc/bus/usb liaoxiaojun
linuxgijs
Execute the script manually to enable the change before a system
reboot: longxingmiao
madshadow
$ sudo /etc/init.d/mountdevsubfs.sh start
mazy1984
I'm adding the sysvinit package to this bug-report since the
nikonikic42
changelog entry says applications should now use /dev/bus/usb,
niniocompu
but it seems that usb is the only 'bus' using that location.
Everything else uses /sys/bus/. Therefore it directly causes the paulvk8888
qemu/kvm problem. It seems illogical to require all applications payo
that access USB to be patched for this. projevie@hotmail.com

There's a related bug report for VirtualBox with a comment by qadir


Scott, but no rationale to why it was done.

5 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Bug #151585 "USB Devices unrecognised by virtualbox (/proc qemu-devel-ml


/bus/usb missing)" richard fromger
roganlors
sankaran
Scott James Remnant (Canonical) (canonical-scott) wrote on #6
2007-10-29: shan
stefab
Support for /proc/bus/usb has been dropped because it is racey, stg
and permissions are difficult to set -- compared with stokeybob
/dev/bus/usb which is maintained by udev and doesn't have these
superleaf1995
issues.
theclash
Ubuntu is not the only distribution to have dropped it. tiger74
If your software is using /proc/bus/usb, it is broken -- you've tscsengineer
had over a year to change it, and you've failed to do so. Please van
change your software to use /dev/bus/usb now.
vrozenfe
I've rejected your sysvinit bug; this is deliberate and is wangzhh
definitely not a bug. weo
Also your assertion about using /sys is entirely bogus - no wl�ghtup
devices exist under /sys. zenrox

Changed in sysvinit:
:New → Invalid
kvm -4ubuntu3
gutsy-proposed
TJ (tj) wrote on 2007-10-29: #7 debdi�
d
kvm -4ubuntu3
kvm -4ubuntu3 gutsy-proposed debdi� (1.4 KiB, text/plain) hardy debdi�
d
qemu -2ubuntu5
Scott, thanks for the explanation. When I'd re-aimed kvm at
gutsy-proposed
/sys/bus/usb/ I hadn't realised that it looks a for a file
debdi�
'devices'. I thought it was looking for the base of a directory-
d
tree containing the devices, which is what /sys/bus/usb/devices qemu -2ubuntu5
is. hardy debdi�
d
I'm not sure who is primary maintainer at Ubuntu - several Rebased qemu
people are listed as adding patches, and it's a MOTU package. -1ubuntu2 Hardy
I'm an end-user that wants the fix. debdi�
I've withdrawn the previous patch and created patches for kvm d
usbview: Debdi�
and qemu that use /dev/bus/usb/ and attached the debdiffs for
for Hardy [incorrect]
Hardy and Gutsy-proposed here.

d
usbview: Debdi�
TJ (tj) wrote on 2007-10-29: #8 for gutsy-proposed
[incorrect]
kvm -4ubuntu3 hardy debdi� (1.4 KiB, text/plain) d
Patch to kvm-77
to allow USB
passthrough with
qemu
TJ (tj) wrote on 2007-10-29: #9
d

6 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

156085-b.debdi�
qemu -2ubuntu5 gutsy-proposed debdi� (1.4 KiB, text/plain)
d
QEMU (KVM) USB
sys-fs support
TJ (tj) wrote on 2007-10-29: #10 d
Add patch

qemu -2ubuntu5 hardy debdi� (1.4 KiB, text/plain)

These patches fix an issue where qemu/kvm expects to find the Screenshot of
USB devices file at /proc/bus/usb/devices and reports an error qemuctl displaying
when started with the -usb flag as result. The location was USB devices
changed in July as a result of a patch to sysvinit and is now (846x708)
/dev/bus/usb/devices. d
Proposed
/etc/init.d
Changed in kvm:
/mountdevusbfs.sh
:In Progress → Fix Committed
Changed in qemu:
d
:In Progress → Fix Committed mountdevubfs.sh

d
/var/log/udev with
TJ (tj) on 2007-10-29
Midisport plugged in

Changed in kvm:
d
:Fix Committed → In Progress Add attachment

TJ (tj) on 2007-10-29

Changed in qemu: debbugs #451191


:intuitivenipple → nobody [done normal]
:Fix Committed → Confirmed novell-bugs
Changed in kvm: #241950
:intuitivenipple → nobody [RESOLVED FIXED]
:In Progress → Confirmed

virtualbox-trac
TJ (tj) wrote on 2007-10-31: #11 #747
[�xed]

Screenshot of qemuctl displaying USB devices (846x708) (294.7 KiB,


Bug watches keep
image/png) track of this bug in
other bug trackers.
This is the kind of output to expect from the kvm/qemu debug
shell (easily accessible when using qemuctl). The attachment is
a screen-shot of qemuctl after doing Connect > USB > Renew.

(qemu) show usbhost


Device 4.2, speed 12 Mb/s

Class e0: USB device 044e:300d, UGX

Device 2.8, speed 480 Mb/s

Hub: USB device 04cc:1521

7 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Device 2.13, speed 480 Mb/s

Class 00: USB device 07ab:fcc7, Freecom Mobile Drive

Device 2.9, speed 480 Mb/s

Hub: USB device 05e3:0606, USB2.0 Hub

Device 2.12, speed 480 Mb/s

Class 00: USB device 058f:6362, Mass Storage Device

Device 2.11, speed 480 Mb/s

Class 00: USB device 05ac:120a, iPod

Device 2.10, speed 12 Mb/s

Class 00: USB device 054c:002c, USB Floppy Drive

Device 2.3, speed 480 Mb/s

Class ef: USB device 05ca:1836

Emmet Hikory (persia) on 2007-11-08

Changed in qemu:
:nobody → persia
:Confirmed → In Progress
Changed in kvm:
:nobody → persia
:Confirmed → In Progress

Emmet Hikory (persia) wrote on 2007-11-08: #12

KVM Uploaded to hardy. Thanks. Waiting on patch refresh for


qemu.

Changed in kvm:
:In Progress → Fix Committed

Emmet Hikory (persia) on 2007-11-08

Changed in qemu:
:persia → intuitivenipple
Changed in sysvinit:
:New → Invalid

TJ (tj) wrote on 2007-11-08: #13

Rebased qemu -1ubuntu2 Hardy debdi� (3.6 KiB, text/plain)

8 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

:updated
Changed in qemu:
:intuitivenipple → nobody
:In Progress → Confirmed

Chris Halse Rogers (raof) on 2007-11-11

Changed in kvm:
:Fix Committed → Fix Released

Chris Halse Rogers (raof) wrote on 2007-11-11: #14

We'd really prefer your original one-line patch to the new


version (although qemu upstream would probably be interested in
the new, general patch). We don't have to care about kernel
backwards-compatibility :).

Also, you have the wrong version numbers for your gutsy-proposed
debdiffs. The versioning of SRUs are a bit different to normal
development versioning. For these packages I'd suggest
0.9.0-2ubuntu4.1 for qemu and 1:28-4ubuntu2.1 for kvm. (One of
the reasons for the different versioning is to make sure it
doesn't conflict with the versioning in the development release
- otherwise you could have a 0.9.0-2ubuntu5 in gutsy-updates and
a *different* 0.9.0-2ubuntu5 in hardy).

TJ (tj) wrote on 2007-11-11: #15

And there I was thinking packaging a bug-fix was a quick thing!


So far I've spent 5 minutes creating the source-code patch and
several hours messing about with packaging!

Daniel Hahler (blueyed) wrote on 2007-11-14: #16

Reported also for usbview in bug #151585.

Changed in usbview:
:New → Confirmed

Daniel Hahler (blueyed) on 2007-11-14

Changed in usbview:
:New → Confirmed

3 comments hidden view all 131 comments

9 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Daniel Hahler (blueyed) wrote on 2007-11-14: #20

usbview: Debdi� for Hardy [incorrect] (1.7 KiB, text/plain)

Daniel Hahler (blueyed) wrote on 2007-11-14: #21

usbview: Debdi� for gutsy-proposed [incorrect] (1.7 KiB, text/plain)

Martin Pitt (pitti) wrote on 2007-11-14: #22

The three gutsy-proposed patches for usbview, qemu, and kvm look
good, please go ahead and get them uploaded. Please upload them
into hardy first, though.

Bug Watch Updater (bug-watch-updater) on 2007-11-14

Changed in usbview:
:Unknown → New

Michael Bienia (geser) wrote on 2007-11-14: #23

Are you sure that the patch for usbview is correct? I don't have
a /dev/bus/usb/devices file here. I have only subdirs in
/dev/bus/usb.

Emmet Hikory (persia) wrote on 2007-11-14: #24

The list that was /proc/bus/usb/devices is no longer available,


either in /dev or in /sys. The information must be gleaned in
another manner.

Changed in usbview:
:nobody → blueyed
:Confirmed → In Progress

Daniel Hahler (blueyed) wrote on 2007-11-14: #25

Sorry, I've only applied the logic of the kvm patch, which
should be invalid then, too!?

Apparently I still have the "Magic to make /proc/bus/usb work"


uncommented in /etc/init.d/mountdevsubfs.sh and the "ln -s
.usbfs/devices /dev/bus/usb/devices" from there seems to create
this file.

10 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

It appears that for usbview the whole "LoadUSBTree stuff" would


have to get rewritten to use the directory/filesystem layout
instead of the the "devices" file. I'm not going to work on this
though.

Changed in usbview:
:blueyed → nobody
:In Progress → Confirmed

Emmet Hikory (persia) wrote on 2007-11-15: #26

My test of KVM worked with the patch: I don't believe it depends


on the presence of the devices file. usbview may be different (I
have not investigated this package).

TJ (tj) wrote on 2007-11-15: #27

Emmet is, unfortunately, correct. I had forgotten to re-disable


the section in /etc/init.d/mountdevsubfs.sh too.

The devices file itself is created when a usbfs mount is


created, using:

$ mkdir .usbfs
$ sudo mount -n -t usbfs -obusmode=0700,devmode=0600,listmode=
0644 usbfs .usbfs
$ ls .usbfs
001 002 003 004 005 devices
$ cat devices
$ cat .usbfs/devices

T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8


B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.22-14-generic ehci_hcd
...

Unless there is some over-arching reason *not* to use usbfs then


the best solution is, I think, to amend /etc/init.
d/mountdevsubfs.sh so instead of:

#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=
0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb

we have

11 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

# Magic to give virtual machines (KVM/QEMU, VirtualBox, VMWare,


etc) access to host USB devices
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=
0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices

This could be added as an additional stanza (which takes the


solution back to amending the "sysvinit" package).

The alternative is to add a complete new set of scripts and


links, either:

/etc/rc.S/S12mountdevusbfs -> /etc/init.d/mountdevusbfs.sh

or

/etc/rc2.d/S20mountdevusbfs -> /etc/init.d/mountdevusbfs.sh

That, coupled with the alteration to KVM/QEMU would solve the


issue.

Comments please?

TJ (tj) on 2007-11-15

:updated

TJ (tj) wrote on 2007-11-15: #28

Proposed /etc/init.d/mountdevusbfs.sh (1.2 KiB, text/x-sh)

Emmet. I just realised you seem to be suggest it worked with the


patch (for KVM on Hardy wasn't it?) but the patch simply
replaces /proc/bus/usb/ with /dev/bus/usb/ but there is no
'devices' file link there *unless* the uncommented magic in
/etc/init.d/mountdevsubfs.sh (or equivalent) has created a usbfs
and linked /dev/bus/usb/devices into it.

I've tested the KVM Gutsy patch here. Without mounting the usbfs
(using my new mountdevusbfs.sh script) I get:

$ ls -a /dev/bus/usb
. .. 001 002 003 004 005

info usbhost
Could not open /dev/bus/usb/devices

But once the usbfs is mounted and the 'devices' link created, it
works:

$ sudo /etc/init.d/mountdevusbfs.sh start


$ ls -a /dev/bus/usb
. .. 001 002 003 004 005 devices .usbfs

info usbhost

12 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Device 5.4, speed 480 Mb/s

Class 00: USB device 0781:5151, Cruzer Micro

Device 5.3, speed 480 Mb/s

Class ef: USB device 05ca:1836

Device 3.3, speed 12 Mb/s

Class e0: USB device 044e:300d, UGX

Is it possible the Hardy init is creating the usbfs and linking


devices, or is there some confusion here?

perpetualrabbit (perpetualrabbit) wrote on 2007-11-18: #29

I have a Trust media center keyboard with builtin trackball.


After a reboot, suddenly the trackball responded very sluggish,
like with a ball-mouse (not optical I mean) with dirty wheels
inside. But it couldn't be dirty yet, it is brand new. I noticed
earlier that usbview did not work, but used to under Gutsy. I
mounted the /proc/bus/usb filesystem, with mount -t usbfs
procbususb /proc/bus/usb and instantly the trackball is working
again. Usbview too.

Whatever the thinking is about /proc/bus/usb, the change that


was made to it broke my mouse (well trackball) and probably
breaks the X window experience for lots of Gutsy users.

Also there should be a better program than just usbview in Gnome


to work with usb devices. usbview is very limited. And ugly.

Daniel Hahler (blueyed) on 2007-12-08

:updated

Saúl Romero (spacetree) wrote on 2007-12-24: #30

Hi!

I am new to all this stuff about patching, and i want to ask you
some things. I am using ubuntu gustsy gibbon with qemu/kvm and
experiencing the described bug:

I followed this guide in order to use the debdiff file from TJ's
post (qemu -2ubuntu5 gutsy-proposed debdiff ) : https:/
/wiki.ubuntu.com/UbuntuPackagingGuide/BuildFromDebdiff.

Until the installation of the package it all seemed ok, but if i


use qemu alone, my win VM keeps on rebooting. It also keeps on
showing the message "Could not open /proc/bus/usb/devices". Same
with KVM

13 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

What could I have missed? Any help is appreciated. I shall say


that a message telling "applying debdiff ..." when i was
downloading the source called my attention.

Brian Pitts (bpitts) wrote on 2007-12-30: #31

Reported for lsusb at Bug #159189

Martin Pitt (pitti) wrote on 2008-01-11: #32

I do not see anything to do for ubuntu-sru here. Please get the


fixes uploaded and tested in hardy, and attach tested debdiffs
for the packages you think should be fixed in gutsy. Feel free
to immediately upload clean and obvious patches like http://
launchpadlibrarian.net/10207748/kvm_28-4ubuntu3-gutsy.debdiff
without prior written approval. After that, please resubscribe
ubuntu-sru.

Thank you!

Bug Watch Updater (bug-watch-updater) on 2008-02-13

Changed in virtualbox:
:Unknown → New

Emmet Hikory (persia) wrote on 2008-02-13: #33

Apparently that patch didn't actually work. Sorry for sitting on


this task so long. Open for all takers :)

Changed in kvm:
:persia → nobody
:Fix Released → Confirmed

Rui Bernardo (epimeteo) wrote on 2008-03-11: #34

I was trying to use QEMU with USB in Ubuntu 7.10 Gutsy when I
found this bug. I comment out the magic lines in /etc/init.
d/mountdevsubfs.sh, started it, but still couldn't use USB in
QEMU. Everything inside /proc/bus/usb/ and /dev/bus/usb was
owned by root and QEMU couldn't read/write in it. I searched the
web for something to change /dev/bus/usb/ and /proc/bus/usb/
permissions. QEMU docs says to "chown -R" all /proc/bus/usb/ and
this was a problem since it "doesn't exist".

I found this: http://www.ubuntu1501.com/2007/12/installing-


virtualbox-with-usb-support.html and adapted it to QEMU.

14 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Basicaly, I added a new system group called "usbusers", added my


username to that new system group and added a line in /etc/fstab
setting the GID of /proc/bus/usb. I didn't need to change
/etc/udev/rules.d/40-permissions.rules! All the process:

# Edit, uncomment "magic" and start the file /etc/init.


d/mountdevsubfs.sh

# Create a system group for usb users:


sudo addgroup --system usbusers
# Output was GID 128

# Add user to usbusers group:


sudo adduser $USER usbusers

# With the lines in /etc/init.d/mountdevsubfs.sh comment out,


# edit /etc/fstab:
sudo nano /etc/fstab

# Add the following line:


# 128 is the GID of the group "usbusers".
none /proc/bus/usb usbfs devgid=128,devmode=664 0 0

# Reboot. After restarting the group owner of the devices were


"usbusers":
$ ls -la /proc/bus/usb/
total 0
drwxr-xr-x 7 root root 0 2008-03-11 14:45 .
dr-xr-xr-x 5 root root 0 2008-03-11 14:46 ..
dr-xr-xr-x 2 root root 0 2008-03-11 14:45 001
dr-xr-xr-x 2 root root 0 2008-03-11 14:45 002
dr-xr-xr-x 2 root root 0 2008-03-11 14:45 003
dr-xr-xr-x 2 root root 0 2008-03-11 14:45 004
dr-xr-xr-x 2 root root 0 2008-03-11 14:45 005
-r--r--r-- 1 root root 0 2008-03-11 14:45 devices

$ ls -la /proc/bus/usb/003
total 0
dr-xr-xr-x 2 root root 0 2008-03-11 14:45 .
drwxr-xr-x 7 root root 0 2008-03-11 14:45 ..
-rw-rw-r-- 1 root usbusers 43 2008-03-11 14:45 001

# Eject the USB device in Gnome before using QEMU!


# Run QEMU with the option "-usb" or "-usbdevice
host:1234:5678".

This was the way I got this working 100%.

Daniel Hahler (blueyed) wrote on 2008-03-14: #35

Was there really no process during Gutsy (and Hardy nearly


already) for these bugs?

Re-opening the sysvinit task:


I'm not affected by it myself, but I wonder why we cannot just
enable the magic to make it work by default, from /etc/init.
d/mountdevsubfs.sh (code commented out by default):

15 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=
0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb

Scott wrote:
> Support for /proc/bus/usb has been dropped because it is
racey, and permissions are difficult to set --
> compared with /dev/bus/usb which is maintained by udev and
doesn't have these issues.

It does not appear to be really frown to permission issues,


because it links to the udev controlled interface.

Changed in sysvinit:
:Undecided → High
:none → ubuntu-8.04-beta
:Invalid → Triaged

Steve Langasek (vorlon) on 2008-03-21

Changed in sysvinit:
:ubuntu-8.04-beta → ubuntu-8.04

Scott James Remnant (Canonical) (canonical-scott) wrote on #36


2008-04-11:

Please do not reopen tasks when it has been made clear that the
removal was deliberate

Changed in sysvinit:
:Triaged → Won't Fix

Scott James Remnant (Canonical) (canonical-scott) wrote on #37


2008-04-11:

/proc/bus/usb has GONE.

It has been marked deprecated for over a year in multiple Linux


distributions, and has been removed by more than one.

Code should be changed to use /dev/bus/usb.

That's all there is to it.

Steve Langasek (vorlon) on 2008-04-11

16 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Changed in sysvinit:
:Triaged → Won't Fix

Scott James Remnant (Canonical) (canonical-scott) on 2008-04-11

Changed in sysvinit:
:ubuntu-8.04 → none

John Cottier (john-cottier) wrote on 2008-04-16: #38

that reminds me of something from Hitch hikers guide to the


galaxy ;-)

Trent Telfer (unnaturalhigh) wrote on 2008-05-05: #39

Curious if these proposed patch's have actually been applied to


the qemu package in the hardy repository? As to date qemu still
does not function properly.

Could not open /proc/bus/usb/devices


Could not add USB device 'host:0fca:0006

Package: qemu
New: yes
State: installed
Automatically installed: yes
Version: 0.9.1-1ubuntu1

J C Nash (nashjc) wrote on 2008-05-17: #40

As far as I can tell, this also affects xsane for some scanners.
I've a Canon Canoscan LiDE 60 that used to work fine in Feisty,
but now doesn't get found. Since usbview is complaining about
/proc/bus/usb/devices, I suspect the same issue. Seems like
there's been a long trail on this one. Can we expect a fix soon?
As someone who tries to promote Linux and Open Source, bugs like
this really take the rug out from under us and send folk rushing
to spend $100s with M$.

JN

Bug Watch Updater (bug-watch-updater) on 2008-08-17

Changed in qemu:
:Unknown → Fix Released

TJ (tj) on 2008-09-03

17 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Changed in kvm:
:nobody → intuitivenipple
:Low → Medium

TJ (tj) on 2008-09-04

Changed in qemu:
:nobody → intuitivenipple
:Low → Medium

Dustin Kirkland (kirkland) on 2008-12-19

Changed in kvm:
:intuitivenipple → kirkland
:Confirmed → In Progress
:New → Won't Fix
Changed in midisport-firmware:
:New → Won't Fix
Changed in qemu:
:New → Won't Fix
Changed in usbview:
:Confirmed → Won't Fix
Changed in vmware-server:
:New → Won't Fix

Dimitrios Symeonidis (azimout) on 2009-02-03

Changed in usbview:
:Undecided → Medium
:Confirmed → Triaged

TJ (tj) on 2009-02-13

Changed in qemu:
:intuitivenipple → nobody

Matt Zimmerman (mdz) on 2009-02-19

Changed in kvm:
:In Progress → Fix Released

Bug Watch Updater (bug-watch-updater) on 2009-02-20

Changed in virtualbox:
:New → Fix Released

18 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Colin Watson (cjwatson) on 2009-03-11

Changed in apcupsd:
:Undecided → High

Colin Watson (cjwatson) on 2009-03-12

Changed in vmware-server:
:Undecided → High
Changed in midisport-firmware:
:Undecided → High

Scott James Remnant (Canonical) (canonical-scott) on 2009-03-16

Changed in apcupsd (Ubuntu Jaunty):


:nobody → scott
Changed in midisport-firmware (Ubuntu Jaunty):
:nobody → scott
Changed in qemu (Ubuntu Jaunty):
:nobody → scott
Changed in usbview (Ubuntu Jaunty):
:nobody → scott

51 comments hidden view all 131 comments

Scott James Remnant (Canonical) (canonical-scott) wrote on #92


2009-03-16:

On Mon, 2009-03-16 at 16:56 +0000, Max Romantschuk wrote:

> I have a Midisport 4x4 which is affected by this issue,


package
> midisport-firmware. Will happily test to verify that all is
well once a
> fix is available.
>
Which part doesn't work?

If you have the device plugged in during boot - could you


attach /var/log/udev from that boot.

Scott
--
Scott James Remnant
<email address hidden>

Max Romantschuk (max-romantschuk) wrote on 2009-03-16: #93

19 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Scott James Remnant wrote:


> Which part doesn't work?
>
> If you have the device plugged in during boot - could you
> attach /var/log/udev from that boot.

I'm running Intrepid at the moment, should this work in Jaunty


by now? I
just ran across this bug after the earlier midisport-specific
bug was
marked as a duplicate of this one.

So do I need to upgrade to Jaunty to test?

.max

Scott James Remnant (Canonical) (canonical-scott) wrote on #94


2009-03-16:

On Mon, 2009-03-16 at 19:04 +0000, Max Romantschuk wrote:

> Scott James Remnant wrote:


> > Which part doesn't work?
> >
> > If you have the device plugged in during boot - could you
> > attach /var/log/udev from that boot.
>
> I'm running Intrepid at the moment, should this work in Jaunty
by now? I
> just ran across this bug after the earlier midisport-specific
bug was
> marked as a duplicate of this one.
>
Logs from intrepid will be fine.

Scott
--
Scott James Remnant
<email address hidden>

Noel J. Bergman (noeljb) wrote on 2009-03-16: #95

apcupsd works without /proc/bus/usb/devices -- documentation


error

Changed in apcupsd:
:New → Invalid
:New → Invalid

1 comments hidden view all 131 comments

20 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Noel J. Bergman (noeljb) wrote on 2009-03-16: #97

apcupsd works without /proc/bus/usb/devices --- documentation


error

Changed in apcupsd:
:New → Invalid

Noel J. Bergman (noeljb) wrote on 2009-03-16: #98

Colin,

I pulled the apcupsd and gapcmon sources for Gutsy, Hardy and
Intrepid, and combed over them. As you say, no references. So I
went back and re-tested without usbfs on both Hardy and Intrepid
(I no longer have Gutsy handy for testing).

To my chagrin (but not dismay :-)), it works. So you're right: I


got caught by a documentation error, and did not try running it
without first trying to meet the documented requirements,
although even there the documentation is ambiguous enough that
one can interpret it in multiple ways. In this case, RTFM might
be construed to have a slight twist on the usual meaning.

I've marked the apcupsd entries as invalid, and will open a


separate bug for the documentation.

By the way, I see that vmware-server is mentioned here. Has


anyone tried VMware Server 2 (I am downloading it now, so I can
take a look), or is this just about version 1? VMware
Workstation 6.5.x has had no problem with USB devices on any of
these versions of Ubuntu.

Noel J. Bergman (noeljb) wrote on 2009-03-16: #99

As promised: bug 343869

Max Romantschuk (max-romantschuk) wrote on 2009-03-16: #100

/var/log/udev with Midisport plugged in (420.8 KiB, text/plain)

As per Scott's request I'm attaching /var/log/udev from a boot


with my Midisport device plugged in.

My Intrepid system works to the extent that I do get the device


up and running by hotplugging after boot, as described in
https://bugs.launchpad.net/bugs/215081

Scott James Remnant (Canonical) (canonical-scott) wrote on #101


2009-03-17:

21 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

The midisport-firmware problem is that fxload uses the wrong


environment variable to get the device name

Launchpad Janitor (janitor) wrote on 2009-03-17: #102

This bug was fixed in the package fxload - 0.0.20020411-


1.1ubuntu1

---------------
fxload (0.0.20020411-1.1ubuntu1) jaunty; urgency=low

* Use DEVNAME from the environment in preference to DEVICE,


the former
contains the modern /dev/bus/usb path. LP: #156085.

-- Scott James Remnant <email address hidden> Tue, 17 Mar 2009


10:02:33 +0000

Changed in fxload:
:New → Fix Released

Launchpad Janitor (janitor) wrote on 2009-03-17: #103

This bug was fixed in the package midisport-firmware -


1.2+dsfg1-0ubuntu6

---------------
midisport-firmware (1.2+dsfg1-0ubuntu6) jaunty; urgency=low

* 42-midisport-firmware.rules.in: Correct rules to act on the


USB raw
device, rather than the first interface. LP: #156085.

-- Scott James Remnant <email address hidden> Tue, 17 Mar 2009


10:06:10 +0000

Changed in midisport-firmware:
:New → Fix Released

Max Romantschuk (max-romantschuk) wrote on 2009-03-17: #104

Scott James Remnant wrote:


> The midisport-firmware problem is that fxload uses the wrong
environment
> variable to get the device name

If I understood the fxload docs correctly there is a command


line
argument to specify the device as well. Could this be used for a
work-around in the midisport-firmware package's udev rules?

22 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Max Romantschuk (max-romantschuk) wrote on 2009-03-17: #105

I just noticed a fix was released already. I will upgrade to


Jaunty and verify that everything works for midisport-firmware.

Scott James Remnant (Canonical) (canonical-scott) wrote on #106


2009-03-17:

Dustin: could you look at QEMU, it should be the same basic


patch as KVM right?

Changed in qemu (Ubuntu Jaunty):


:scott → kirkland

Scott James Remnant (Canonical) (canonical-scott) wrote on #107


2009-03-17:

usbview will be removed from the archive, it's functionality is


available from lsusb or gnome-device-manager

Changed in usbview (Ubuntu Jaunty):


:Triaged → Won't Fix

Dan Bishop (danbishop) wrote on 2009-03-17: #108

I have a midisport 2x2 which I have just tried and found not to
be working, however, I've just realised that the latest package
hasn't made it to me yet, only 0.0.20020411-1.1 and not
0.0.20020411-1.1ubuntu1. Make sure you check this before testing
the 4x4! :)

Dan Bishop (danbishop) wrote on 2009-03-17: #109

Can confirm this fix works perfectly for midisport 2x2 :D

Dustin Kirkland (kirkland) wrote on 2009-03-17: #110

I'm marking QEMU as 'fix released' as well.

The relevant patch that we were carrying for kvm has been
included in QEMU upstream, and is already present in qemu 0.10.0
in Jaunty.

:-Dustin

Changed in qemu (Ubuntu Jaunty):


:Confirmed → In Progress

23 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

:In Progress → Fix Released


Changed in qemu:
:New → Fix Released

Max Romantschuk (max-romantschuk) wrote on 2009-03-18: #111

Confirmation for Midisport 4x4 working as well. :)

Steve Langasek (vorlon) wrote on 2009-03-20: #112

there is no vmware-server package in jaunty; marking this task


invalid.

Changed in vmware-server:
:New → Invalid

Launchpad Janitor (janitor) wrote on 2009-04-01: #113

This bug was fixed in the package madfuload - 1.2-2ubuntu2

---------------
madfuload (1.2-2ubuntu2) jaunty; urgency=low

* 42-madfuload.rules.in: Add -D $root/$name to madfuload calls


so we use
/dev/bus/usb paths. LP: #156085.

-- Scott James Remnant <email address hidden> Wed, 01 Apr 2009


09:40:00 +0100

Changed in madfuload:
:New → Fix Released

Sergio Zanchetta (primes2h) wrote on 2009-05-07: #114

The 18 month support period for Gutsy Gibbon 7.10 has reached
its end of life -
http://www.ubuntu.com/news/ubuntu-7.10-eol . As a result, we are
closing the
Gutsy task.

Changed in fxload (Ubuntu Gutsy):


:New → Won't Fix
Changed in madfuload (Ubuntu Gutsy):
:New → Won't Fix

toaste (toaste) wrote on 2009-05-11: #115

24 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

A slight change to the mountdevsubfs.sh workaround is necessary


in Jaunty (9.04)

The commented out magic in mountdevsubfs.sh was removed sometime


after Hardy, probably because it didn't work anymore since
domount no longer likes "" as a parameter.

Add code below immediately after the line that reads:


domount devpts "" /dev/pts devpts -onoexec,nosuid,gid=$TTYGRP,
mode=$TTYMODE

#insert the following below the line above (line 41 for me)
#
# Magic to make /proc/bus/usb work
# These following 4 lines were added to make USB devices
avabilable in vmware
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs none /dev/bus/usb/.usbfs -o busmode=0700,devmode=
0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb

1 comments hidden view all 131 comments

Daniele Cruciani (daniele-smartango) wrote on 2009-05-11: #117

info in https://bugs.launchpad.net/bugs/331331
solve all my problem in Jaunty

[...]

ivan vucic (systema-hr) on 2009-09-19

Changed in qemu:
:Fix Released → Fix Committed

Steve Langasek (vorlon) on 2009-09-20

Changed in qemu:
:Fix Committed → Fix Released

Scott James Remnant (Canonical) (canonical-scott) on 2009-11-09

Changed in usbview (Ubuntu Jaunty):


:Scott James Remnant (scott) → nobody
Changed in usbview (Ubuntu):
:Scott James Remnant (scott) → nobody

25 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

mahogeni muse (dkeeling0419) wrote on 2009-11-16: #118

Ok, I am totally new to linux so I also am a novice when it


comes to updating patches. I downloaded Ubuntu Desktop 9 and of
course it won't recognize the USB Devices on my laptop. I have a
Toshiba Satellite A215-S5818 with Windows Vista (build 6).
Ubuntu 9 is the guest OS on VMWare Workstation 7.0 (build
203739). I've tried to mount usbfs manually using

mount -t usbfs none /proc/bus/usb

I've tried modifying /etc/fstab by adding the following code at


the bottom:

usbfs /proc/bus/usb usbfs auto 0 0

The last thing I read was to modify the etc/init.d/mountdevsubfs


.sh and uncomment

mkdir -p /dev/bus/proc/usb/.usbfs
domount usbfs ""/dev/bus/usb/.usbfs -obusmode=0700,devmode=
0600,listmode=0644
ln-s .usbfs/devices/dev/bus/usb/devices
mount --rbind/dev/bus/usb/proc/bus/usb
$ sudo /etc/etc/init.d/nountdevsubfs.sh.start

However, when I went to the /etc/init.d directory there was no


mountdevsubfs.sh file so I created one and added the code above
with no luck. What am I doing wrong? Any help would be sincerely
appreciated...

Thanks!

Danny Wood (danwood76) wrote on 2009-11-16: #119

Your problem sounds more like a bug in VMware and as it is a


paid product I would ask them about it.
It sounds like VMware is not passing the USB devices on.

mahogeni muse (dkeeling0419) wrote on 2009-11-16: #120

Thanks danwood76...I'll give it a try...*sigh* back to the


drawing board....

Kip Warner (kip) wrote on 2010-04-04: #121

I contacted the developer of USBView and this is the dialogue.

On Sat, Apr 03, 2010 at 09:19:43PM -0700, Kip Warner wrote:


> Hey Greg,
>
> Thanks for your great application USBView. I'd like to use it
and I am

26 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

> running Ubuntu Karmic. The problem is it looks as though they


dropped
> support for /proc/bus/usb a while ago and your app needs to be
changed
> to use /dev/bus/usb instead, as I understand it:
>
> https://bugs.launchpad.net/ubuntu/+source/usbview/+bug/156085/
comments/6
>
> Is this possible?

Please contact ubuntu about this, there is nothing I can do


about it.

good luck,

greg k-h

Karri Kaksonen (karri-kaksonen) wrote on 2010-04-07: #122

/proc/usb is also needed for all users that use Aladdin HASP
technology. What affects me is nautical chart subscriptions that
require the HASP to work. These HASP keys will still be around
for the next 10 years. So I feel that there should be a work-
around for this.

The work-arounds presented in this thread do not work because


the domount command is also dropped together with all the mount-
shell scripts from the initscripts packages.

The last working system is Ubuntu 9.04

Michael (michaeljt) wrote on 2010-04-07: #123

Karri: I can see at least two ways of solving this in more


recent Ubuntus. One is virtualisation (e.g. VirtualBox with USB
virtualisation, since that no longer depends on /proc/bus/usb :)
). The other would be a preloaded libary which emulated
/proc/bus/usb while actually accessing /dev/bus/usb and sysfs.
Much like the way that OSS was emulated in user space over ALSA.
The second solution should also work for USBView by the way.

Such a library is in my opinion a correct way of dealing with


legacy devices which are lacking in current kernels (keeping the
support in the kernel after its sell-by date is rather ugly, it
seems to me) and it shouldn't be too much work to write as long
as you don't have to support polling on files, although I hasten
to add that I'm not volunteering for the job :)

Bug Watch Updater (bug-watch-updater) on 2012-10-08

27 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

Changed in qemu (openSUSE):


:Unknown → Critical

Bug Watch Updater (bug-watch-updater) on 2012-11-22

Changed in usbview (Debian):


:New → Fix Released

Rolf Leggewie (r0lf) wrote on 2014-11-21: #124

Hardy has seen the end of its life and is no longer receiving
any updates. Marking the Hardy task for this ticket as "Won't
Fix".

Changed in vmware-server (Ubuntu Hardy):


:New → Won't Fix

Rolf Leggewie (r0lf) on 2014-11-21

Changed in midisport-firmware (Ubuntu Hardy):


:New → Won't Fix
Changed in fxload (Ubuntu Hardy):
:New → Won't Fix
Changed in madfuload (Ubuntu Hardy):
:New → Won't Fix

Rolf Leggewie (r0lf) on 2014-11-23

Changed in kvm (Ubuntu Hardy):


:Confirmed → Won't Fix
Changed in qemu (Ubuntu Hardy):
:Confirmed → Won't Fix
Changed in usbview (Ubuntu Hardy):
:Confirmed → Won't Fix

See full activity log

Displaying �rst 40 and last 40 comments. View all 131 comments


or add a comment.

• Take the tour • Read the guide

28 of 29 2/16/24, 17:40
Bug #156085 “Could not open /proc/bus/usb/devices” ... https://bugs.launchpad.net/ubuntu/+source/qemu/+b...

© 2004-2023 Canonical Ltd. • Terms of use • Data privacy • Contact Launchpad Support • Blog •
Careers • System status • 9643586 (Get the code!)

29 of 29 2/16/24, 17:40

You might also like