Please check my earlier discussions in the post, HOW to suspend USB Device
I have posted a solution to the above question.
I have two physical USB ports in my Lenovo lapttop.
I get the following outputs with the following codes:
Code: Select all
ls -l /sys/bus/usb/devices/
total 0
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-0:1.0
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-1 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-1
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-1:1.0 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-3 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-3
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-3:1.0 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-7 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-7
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-7:1.0 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-7:1.1 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.1
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-8 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-8
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-8:1.0 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0
lrwxrwxrwx 1 root root 0 Jun 1 11:37 1-8:1.1 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1
lrwxrwxrwx 1 root root 0 Jun 1 11:37 2-0:1.0 -> ../../../devices/pci0000:00/0000:00:14.0/usb2/2-0:1.0
lrwxrwxrwx 1 root root 0 Jun 1 11:37 usb1 -> ../../../devices/pci0000:00/0000:00:14.0/usb1
lrwxrwxrwx 1 root root 0 Jun 1 11:37 usb2 -> ../../../devices/pci0000:00/0000:00:14.0/usb2
Code: Select all
lsusb -v | grep -i -e "flash"
can't get debug descriptor: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
can't get device qualifier: Resource temporarily unavailable
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Bus 001 Device 064: ID 058f:6387 Alcor Micro Corp. Flash Drive
idProduct 0x6387 Flash Drive
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Code: Select all
dmesg | grep -i -e "flash"
[345790.379145] scsi 2:0:0:0: Direct-Access JetFlash TS1GJF150 8.07 PQ: 0 ANSI: 2
Code: Select all
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 499M 0 part
├─sda2 8:2 0 100M 0 part
├─sda3 8:3 0 16M 0 part
├─sda4 8:4 0 200.6G 0 part
├─sda5 8:5 0 500G 0 part
├─sda6 8:6 0 46.6G 0 part
├─sda7 8:7 0 18.6G 0 part [SWAP]
├─sda8 8:8 0 40G 0 part /mnt-system
└─sda9 8:9 0 1T 0 part /KNOPPIX-DATA
sdb 8:16 1 980M 0 disk
├─sdb1 8:17 1 128M 0 part
├─sdb2 8:18 1 1K 0 part
└─sdb5 8:21 1 850M 0 part
sr0 11:0 1 1024M 0 rom
cloop0 240:0 0 9G 1 disk /KNOPPIX
cloop1 240:1 0 2.2G 1 disk /KNOPPIX1
cloop2 240:2 0 144.8M 1 disk /KNOPPIX2
zram0 253:0 0 2.7G 0 disk [SWAP]
[Question]:
Could an advanced user kindly explain how to correlate among the outputs of dmesg, lsusb, lsblk and ls -l /sys/bus/usb/devices/ please? One on One Basis?
That is, correlate and interrelate between:
(1) the value 2:0:0:0: printed on terminal by executing dmesg | grep -i -e "flash",
(2) the value Bus 001 Device 064: printed on terminal by executing lsusb -v | grep -i -e "flash"
(3) the values:
1-0:1.0 1-1:1.0 1-3:1.0 1-7:1.0 1-8 1-8:1.1 usb1
1-1 1-3 1-7 1-7:1.1 1-8:1.0 2-0:1.0 usb2 printed on terminal by executing ls /sys/bus/usb/devices/ ,
and
(4) the Codes RM, RO, and values sdb 8:16 1 980M 0 disk by executing lsblk please?