Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Regarding the /proc/bus/usb/devices file

    Ok, so I know that the filesystem for the usb devices gets mounted at /proc/bus/usb. And the first device detected is mapped to /dev/sda and is represented in /proc/scsi/usb-storage-0. My question is concerning a relation (if any) from a line in /proc/bus/usb/devices to sda.

    Say the topology line in the /devices file reads:

    T: Bus=00 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2

    How is /usb-storage-0/ linked to this file? If they are not linked, how is /devices updated? Is there any other way of seeing what bus,level, and port ID the device is sitting at? Thank you for your time.

  2. #2
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    South- or "Mid-" Sweden
    I think the kerenl updates that (pseudo-)file in /proc when ever an USB device is attached/detected or removed. Not sure, but I think "usbview" is what you're looking for, it shows a tree with (lot's of info also avalible in a pane) the attached devices.
    Regards Scienitca (registered user #335819 - )
    A master is nothing more than a student who knows something of which he can teach to other students.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts