Useful USB commands

Some ways to get USB adapters and devices information in your system:

[root@hostname qemu]# lsscsi | grep Kingston
[0:0:0:0]    disk    Kingston DataTraveler G2  1.00  /dev/sda 

[root@hostname qemu]# lsusb -v

Bus 003 Device 002: ID 0951:1624 Kingston Technology DataTraveler G2
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0951 Kingston Technology
  idProduct          0x1624 DataTraveler G2
  bcdDevice            1.00
  iManufacturer           1 Kingston
  iProduct                2 DataTraveler G2 
  iSerial                 3 000FEAFB8E96F920A5A90054
  bNumConfigurations      1
...

[root@hostname qemu]# lspci | grep -i usb
0003:03:00.0 USB controller: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller (rev 02)
0004:01:00.0 USB controller: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller (rev 02)


[root@hostname qemu]# lsscsi -H 
[0]    usb-storage   
[1]    ipr           
[4]    lpfc          
[5]    lpfc          
[6]    ipr   

[root@hostname qemu]# lsusb
Bus 003 Device 002: ID 0951:1624 Kingston Technology DataTraveler G2
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

$ lsscsi -v
 [0:0:0:0]    disk    ATA          HITACHI HTS72503 PC3Z  /dev/sda
   dir: /sys/bus/scsi/devices/0:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0]
 [1:0:0:0]    cd/dvd  HL-DT-ST DVDRAM GU10N     MX05  /dev/sr0
   dir: /sys/bus/scsi/devices/1:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0]
 [7:0:0:0]    disk    Kingston DataTraveler 2.0 1.00  /dev/sdb
   dir: /sys/bus/scsi/devices/7:0:0:0  [/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/host7/target7:0:0/7:0:0:0]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s