LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Help!Do not see dir /proc/bus/usb (https://www.linuxquestions.org/questions/linux-general-1/help-do-not-see-dir-proc-bus-usb-4175468940/)

alvin_cai 07-08-2013 09:04 PM

Help!Do not see dir /proc/bus/usb
 
I install the Fedora 18 in vmware
When I plug in one u-disk or usb-modem,I use lsusb:
Bus 001 Device 002: ID 12d1:1d50 Huawei Technologies Co., Ltd. ET302s TD-SCDMA/TD-HSDPA Mobile Broadband
Bus 001 Device 003: ID 1f75:0902
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

it means that the usb device can see.I want to see device info file /proc/bus/usb/devices,but I can not find the dir /proc/bus/usb,and I also can not mkdir /proc/bus/usb,it says No such file or directory.
So I try to add these
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
in /etc/fstab,and run 'mount -a',this happens
mount: mount point /proc/bus/usb does not exist
ok,then I run
mount -t usbdevfs none /proc/bus/ (I also try mount -t usbfs none /proc/bus/)
it unexpectedly says
mount: unknown filesystem type 'usbfs'
So I have no words....
Which boss can tell me how can I do ,what the question I had...

evo2 07-08-2013 09:36 PM

Hi,

why do you think /proc/bus/usb should exist? Why do you want it to exist? dmesg will tell you what device to use.

Evo2.

alvin_cai 07-08-2013 10:12 PM

Quote:

Originally Posted by evo2 (Post 4986658)
Hi,

why do you think /proc/bus/usb should exist? Why do you want it to exist? dmesg will tell you what device to use.

Evo2.

Hi ,
because I want to see the file /proc/bus/usb/devices
I have a 3G dongle ,but I can not find the driver,it will show in devices file as usual.
So I want to use Fedora 18 to debug,but now,I can not find this file..

evo2 07-08-2013 10:37 PM

Hi,

Quote:

Originally Posted by alvin_cai (Post 4986672)
Hi ,
because I want to see the file /proc/bus/usb/devices
I have a 3G dongle ,but I can not find the driver,it will show in devices file as usual.

As usual? So this has worked on Fedora 18 before? What instructions did you follow?

I missed it earlier but I see that this F18 install is inside vmware. So now I wonder why you are trying to access such a device from a virtual machine. Normally the virtual machine will not have access to physical network devices and instead use some sort of virtual network device bridged to the host machine (there are different configurations depending on the vm implementation the desire of the user). Can you explain in more detail what you are trying to do and why?

Evo2.

alvin_cai 07-11-2013 12:42 AM

Hi

Quote:

Originally Posted by evo2 (Post 4986680)
Hi,


As usual? So this has worked on Fedora 18 before? What instructions did you follow?

I missed it earlier but I see that this F18 install is inside vmware. So now I wonder why you are trying to access such a device from a virtual machine. Normally the virtual machine will not have access to physical network devices and instead use some sort of virtual network device bridged to the host machine (there are different configurations depending on the vm implementation the desire of the user). Can you explain in more detail what you are trying to do and why?

Evo2.

No, I see the devices file in kernel 2.6.**.It seems that kernel 3.* has move away from /proc to /sys,usbfs has been deprecated in resent kernels .However , I find the info under dir /sys/kernel/debug/usb/

Thank you for help me .


All times are GMT -5. The time now is 12:59 PM.