Olá!

Alguém sabe porque a pasta /proc/bus/usb fica vazia no Ubuntu hardy? Pelo
menos no meu é assim.
Eu estava tentando ver o conteúdo do arquivo /proc/bus/usb/devices para fins
de estudo e encontrei a pasta vazia.
Após pesquisa na Internet eu dei um "sudo mount -t usbfs usbfs
/proc/bus/usb" e o conteúdo da pasta apareceu, incluindo o arquivo "devices"
que eu procurava.
Eu tenho estudado por um material que eu achei no portal da IBM:
http://www-128.ibm.com/developerworks/views/linux/libraryview.jsp?topic_by=Certifications&sort_order=asc&lcl_sort_order=asc&search_by=&search_flag=&type_by=Tutorials&show_abstract=true&start_no=1&sort_by=Title&end_no=100&show_all=false

"...Displaying USB information

So now we know something of the modules that support USB, how do we find out
what USB devices are attached to our system? The information is to be found
in the /proc/bus/usb part of the file system. The file /proc/bus/usb/devices
contains summary information for currently attached USB devices. a partial
listing for our system is shown in Listing 25.

*Listing 25. Partial contents of /proc/bus/usb/devices*


[EMAIL PROTECTED] root]# cat /proc/bus/usb/devices
T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.04
S:  Manufacturer=Linux 2.4.21-32.0.1.EL ehci-hcd
S:  Product=Intel Corp. 82801DB USB2..."
-- 
Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece

Lista de discussão Ubuntu Brasil
Histórico, descadastramento e outras opções:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-br

Responder a