LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   where is /proc/bus/usb/devices???? (http://www.linuxquestions.org/questions/linux-software-2/where-is-proc-bus-usb-devices-380339/)

mrchaos 11-05-2005 08:54 PM

where is /proc/bus/usb/devices????
 
a critical problem has come to my attention. For some reason, there is no /proc/bus/usb/devices. in fact,
[CODE]bash# lsusb
bash#/CODE]
does exactly what it looks like: returns NOTHING.

Code:

bash-3.00# cd /proc/bus/usb
bash-3.00# ls
bash-3.00#

nothing there!!! The funny thing is that most of my USB devices run just fine. All this time, my usb pendrive recognizes under /dev/sda1 and my joypad and joystick recognize under /dev/js0. So where is /proc/bus/usb/devices???

here's my lsmod output:
Code:

Module                  Size  Used by
ipaq                  30608  0
ppp_async              9216  0
crc_ccitt              1920  1 ppp_async
ppp_generic            24596  1 ppp_async
slhc                    6656  1 ppp_generic
usbserial              27496  1 ipaq
fglrx                254376  14
wlan_wep                5376  1
snd_pcm_oss            48544  0
snd_mixer_oss          17792  3 snd_pcm_oss
nfsd                  89800  8
exportfs                4736  1 nfsd
ohci_hcd              18952  0
intel_agp              20252  1
usb_storage            67008  0
eth1394                17800  0
uhci_hcd              29712  0
ehci_hcd              28808  0
usbcore              104824  7 ipaq,usbserial,ohci_hcd,usb_storage,uhci_hcd,ehci_hcd
hw_random              4500  0
shpchp                78940  0
pci_hotplug            9988  1 shpchp
ath_pci                53152  0
ath_rate_amrr          7044  1 ath_pci
wlan                  107484  4 wlan_wep,ath_pci,ath_rate_amrr
ath_hal              146640  2 ath_pci
snd_emu10k1          113796  4
snd_rawmidi            20128  1 snd_emu10k1
snd_seq_device          7436  2 snd_emu10k1,snd_rawmidi
snd_ac97_codec        82940  1 snd_emu10k1
snd_pcm                81800  5 snd_pcm_oss,snd_emu10k1,snd_ac97_codec
snd_timer              20996  2 snd_emu10k1,snd_pcm
snd_page_alloc          7940  2 snd_emu10k1,snd_pcm
snd_util_mem            3584  1 snd_emu10k1
snd_hwdep              7456  1 snd_emu10k1
snd                    48004  11 snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer,snd_hwdep
ohci1394              31108  0
ieee1394              93752  2 eth1394,ohci1394
eepro100              27152  0
mii                    4224  1 eepro100
evdev                  7680  0
lp                      9156  0
parport_pc            25156  1
parport                32456  2 lp,parport_pc
ide_scsi              13700  0
agpgart                28840  2 fglrx,intel_agp
apm                    18412  2

it is obvious that the usb hub is recognized b/c I have the usbcore module running, and I think uhci_hcd is my usb-2.0 module. Can somebody tell me why I do not have a /proc/bus/usb/devices file?? it seems I should since I have usb compiled into my kernel....

keefaz 11-06-2005 02:02 PM

Your usb pendrive is recognized but is treated as a SCSI device

Try (when connected) :
Code:

cat /proc/scsi/usb-storage/*

dracolich 11-06-2005 02:14 PM

Your kernel might not have the usb device filesystem enabled. The help for that option states that it creates the /proc/bus/usb/devices

mrchaos 11-06-2005 06:41 PM

@dracolich

Yeah, I was absolutely positive about the same thing at first. But it turns out that I compiled my kernel with usbdevfs support (I checked make xconfig just to be sure). Also, at one point since my last kernel upgrade, I was able to cat /proc/bus/usb/drivers... so I must have had the support at one time or another... could I have deleted this file unknowingly?? and if so, is there anything I can do to get it back short of recompiling my kernel?

mrchaos 12-04-2005 10:26 PM

well this was an easy fix:

Apparently I had thought that the usb filesystem was mounted by: mount usbdevfs none /proc/bus/usb
Instead the filesystem that is mounted is usbfs. Changing that fixed everything!






Stupid Zach... stupid...


All times are GMT -5. The time now is 08:56 PM.