目录
1、lsusb命令
2、fdisk命令(root用户下)
3、lsblk命令
4、demsg命令
5、ls /dev/sd*
6、ls /dev/input
7、cat /proc/scsi/scsi
8、ls /proc/scsi/usb-storage/
9、cat /proc/bus/input/devices
10、ls /run/media/root(这个在root用户下的,普通用户应该是ls /run/media/用户名,并且这些都是自动挂载的路径)
11、lspci
12、cat /proc/devices
13、df命令
14、磁盘管理工具
15、gsmartcontrol
16、cat /proc/scsi/device_info
17、dmesg | grep "disk"
18、dmesg | grep "Disk"
19、cat /proc/scsi/scsi | grep 'Disk'
20、ls -l | grep sdb1
21、smartctl命令(smart信息) sdb1为
lsusb (查看USB的的驱动是多少版本的驱动协议)
[root@localhost 桌面]# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 009: ID 058f:6387 Alcor Micro Corp. Flash Drive
Bus 001 Device 003: ID 048d:1234 Integrated Technology Express, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
lsusb -v (详细信息)
[root@localhost 桌面]# lsusb -v #已删减
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 3.10
iManufacturer 3 Linux 3.10.0 ohci_hcd
iProduct 2 OHCI Host Controller
iSerial 1 0000:00:14.5
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
bPwrOn2PwrGood 16 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0001
Self Powered
Bus 003 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x046d Logitech, Inc.
idProduct 0xc077 M105 Optical Mouse
bcdDevice 72.00
iManufacturer 1 Logitech
iProduct 2 USB Optical Mouse
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 46
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)
lsusb -t
[root@localhost 桌面]# lsusb -t
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/2p, 12M
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M
|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
|__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 6: Dev 9, If 0, Class=Mass Storage, Driver=usb-storage, 480M
lsusb -s 001(xxx)
[root@localhost 桌面]# lsusb -s 001
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
fdisk -l
[root@localhost 桌面]# fdisk -l
Disk /dev/sda:111.8 GiB,120034123776 字节,234441648 个扇区
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x1fc6aa13
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 62916607 62914560 30G 83 Linux
/dev/sda2 62916608 71305215 8388608 4G 82 Linux swap / Solaris
/dev/sda3 71305216 134219775 62914560 30G 83 Linux
/dev/sda4 134219776 234440703 100220928 47.8G 5 Extended
/dev/sda5 134221824 200366079 66144256 31.6G 83 Linux
/dev/sda6 200368128 234440703 34072576 16.3G 83 Linux
Disk /dev/sdb:62.5 GiB,67108864000 字节,131072000 个扇区
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x79887ed0
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 32 131071999 131071968 62.5G 7 HPFS/NTFS/exFAT
Disk /dev/sdc:15 GiB,16106127360 字节,31457280 个扇区
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x4142ac77
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2256 31457279 31455024 15G c W95 FAT32 (LBA)
lsblk
[root@localhost 桌面]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 30G 0 part /
├─sda2 8:2 0 4G 0 part [SWAP]
├─sda3 8:3 0 30G 0 part
├─sda4 8:4 0 1K 0 part
├─sda5 8:5 0 31.6G 0 part /home
└─sda6 8:6 0 16.3G 0 part /diskE
sdb 8:16 1 62.5G 0 disk
└─sdb1 8:17 1 62.5G 0 part /run/media/root/2A0C790D0C78D573
sdc 8:32 1 15G 0 disk
└─sdc1 8:33 1 15G 0 part /run/media/root/94DA-2312
sr0 11:0 1 1024M 0 rom
lsblk -a
[root@localhost 桌面]# lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 30G 0 part /
├─sda2 8:2 0 4G 0 part [SWAP]
├─sda3 8:3 0 30G 0 part
├─sda4 8:4 0 1K 0 part
├─sda5 8:5 0 31.6G 0 part /home
└─sda6 8:6 0 16.3G 0 part /diskE
sdb 8:16 1 62.5G 0 disk
└─sdb1 8:17 1 62.5G 0 part /run/media/root/2A0C790D0C78D573
sdc 8:32 1 15G 0 disk
└─sdc1 8:33 1 15G 0 part /run/media/root/94DA-2312
sr0 11:0 1 1024M 0 rom
loop0 7:0 0 0 loop
loop1 7:1 0 0 loop
loop2 7:2 0 0 loop
loop3 7:3 0 0 loop
loop4 7:4 0 0 loop
loop5 7:5 0 0 loop
loop6 7:6 0 0 loop
loop7 7:7 0 0 loop
[root@localhost ~]# dmesg | grep usb
[ 0.109375] usbcore: registered new interface driver usbfs
[ 0.109375] usbcore: registered new interface driver hub
[ 0.109375] usbcore: registered new device driver usb
[ 0.894531] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.894531] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.894531] usb usb1: Product: EHCI Host Controller
[ 0.894531] usb usb1: Manufacturer: Linux 3.10.0 ehci_hcd
[ 0.894531] usb usb1: SerialNumber: 0000:00:12.2
[ 0.906250] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.906250] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.906250] usb usb2: Product: EHCI Host Controller
[ 0.906250] usb usb2: Manufacturer: Linux 3.10.0 ehci_hcd
[ 0.906250] usb usb2: SerialNumber: 0000:00:13.2
[ 0.992187] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.992187] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.992187] usb usb3: Product: OHCI Host Controller
[ 0.992187] usb usb3: Manufacturer: Linux 3.10.0 ohci_hcd
[ 0.992187] usb usb3: SerialNumber: 0000:00:12.0
[ 1.078125] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.078125] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.078125] usb usb4: Product: OHCI Host Controller
[ 1.078125] usb usb4: Manufacturer: Linux 3.10.0 ohci_hcd
[ 1.078125] usb usb4: SerialNumber: 0000:00:12.1
[ 1.164062] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.164062] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.164062] usb usb5: Product: OHCI Host Controller
[ 1.164062] usb usb5: Manufacturer: Linux 3.10.0 ohci_hcd
[ 1.164062] usb usb5: SerialNumber: 0000:00:13.0
[ 1.250000] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.250000] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.250000] usb usb6: Product: OHCI Host Controller
[ 1.250000] usb usb6: Manufacturer: Linux 3.10.0 ohci_hcd
[ 1.250000] usb usb6: SerialNumber: 0000:00:13.1
[ 1.335937] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.335937] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.335937] usb usb7: Product: OHCI Host Controller
[ 1.335937] usb usb7: Manufacturer: Linux 3.10.0 ohci_hcd
[ 1.335937] usb usb7: SerialNumber: 0000:00:14.5
[ 1.335937] usbcore: registered new interface driver usb-storage
[ 1.875000] usbcore: registered new interface driver usbhid
[ 1.875000] usbhid: USB HID core driver
[ 3.378906] usb 5-1: new low-speed USB device number 2 using ohci_hcd
[ 3.542968] usb 5-1: New USB device found, idVendor=046d, idProduct=c31c
[ 3.542968] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.542968] usb 5-1: Product: USB Keyboard
[ 3.542968] usb 5-1: Manufacturer: Logitech
[ 3.558593] input: Logitech USB Keyboard as /devices/pci0000:00/0000:00:13.0/usb5/5-1/5-1:1.0/input/input1
[ 3.558593] hid-generic 0003:046D:C31C.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-0000:00:13.0-1/input0
[ 3.570312] input: Logitech USB Keyboard as /devices/pci0000:00/0000:00:13.0/usb5/5-1/5-1:1.1/input/input2
[ 3.570312] hid-generic 0003:046D:C31C.0002: input,hidraw1: USB HID v1.10 Device [Logitech USB Keyboard] on usb-0000:00:13.0-1/input1
[ 3.707031] usb 3-2: new low-speed USB device number 2 using ohci_hcd
[ 3.867187] usb 3-2: New USB device found, idVendor=046d, idProduct=c077
[ 3.867187] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.867187] usb 3-2: Product: USB Optical Mouse
[ 3.867187] usb 3-2: Manufacturer: Logitech
[ 3.875000] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:12.0/usb3/3-2/3-2:1.0/input/input3
[ 3.875000] hid-generic 0003:046D:C077.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:12.0-2/input0
[ 2263.710937] usb 1-1: new high-speed USB device number 3 using ehci-pci
[ 2263.839843] usb 1-1: New USB device found, idVendor=048d, idProduct=1234
[ 2263.839843] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2263.839843] usb 1-1: Product: UDisk
[ 2263.839843] usb 1-1: Manufacturer: General
[ 2263.839843] usb 1-1: SerialNumber: Љ
[ 2263.839843] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 2263.839843] scsi6 : usb-storage 1-1:1.0
[ 2690.156250] usb 3-2: USB disconnect, device number 2
[ 2693.410156] usb 1-2: new high-speed USB device number 4 using ehci-pci
[ 2696.066406] usb 1-2: device descriptor read/all, error -71
[ 2696.179687] usb 1-2: new high-speed USB device number 5 using ehci-pci
[ 2701.289062] usb 1-2: device descriptor read/all, error -71
[ 2701.402343] usb 1-2: new high-speed USB device number 6 using ehci-pci
[ 2707.968750] usb 1-2: string descriptor 0 read error: -71
[ 2707.968750] usb 1-2: New USB device found, idVendor=058f, idProduct=6387
[ 2707.968750] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2707.984375] usb 1-2: can't set config #1, error -71
[ 2707.984375] usb 1-2: USB disconnect, device number 6
[ 2709.660156] usb 1-2: new high-speed USB device number 7 using ehci-pci
[ 2712.000000] usb 1-2: device descriptor read/all, error -71
[ 2712.113281] usb 1-2: new high-speed USB device number 8 using ehci-pci
[ 2734.050781] usb 1-6: new high-speed USB device number 9 using ehci-pci
[ 2734.183593] usb 1-6: New USB device found, idVendor=058f, idProduct=6387
[ 2734.183593] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2734.183593] usb 1-6: Product: Mass Storage
[ 2734.183593] usb 1-6: Manufacturer: Generic
[ 2734.183593] usb 1-6: SerialNumber: 25711930
[ 2734.187500] usb-storage 1-6:1.0: USB Mass Storage device detected
[ 2734.187500] scsi7 : usb-storage 1-6:1.0
[root@localhost 桌面]# ls /dev/sd*
/dev/sda /dev/sda2 /dev/sda4 /dev/sda6 /dev/sdb1 /dev/sdc1
/dev/sda1 /dev/sda3 /dev/sda5 /dev/sdb /dev/sdc
ls -l /dev/sd*
[root@localhost 桌面]# ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 8月 7 08:31 /dev/sda
brw-rw---- 1 root disk 8, 1 8月 7 08:31 /dev/sda1
brw-rw---- 1 root disk 8, 2 8月 7 08:31 /dev/sda2
brw-rw---- 1 root disk 8, 3 8月 7 08:31 /dev/sda3
brw-rw---- 1 root disk 8, 4 8月 7 08:31 /dev/sda4
brw-rw---- 1 root disk 8, 5 8月 7 08:31 /dev/sda5
brw-rw---- 1 root disk 8, 6 8月 7 08:31 /dev/sda6
brw-rw---- 1 root disk 8, 16 8月 7 09:09 /dev/sdb
brw-rw---- 1 root disk 8, 17 8月 7 09:09 /dev/sdb1
brw-rw---- 1 root disk 8, 32 8月 7 09:17 /dev/sdc
brw-rw---- 1 root disk 8, 33 8月 7 09:17 /dev/sdc1
[root@localhost 桌面]# ls /dev/input/
by-id/ by-path/ event0 event1 event2 event3 mice mouse0
[root@localhost 桌面]# ls /dev/input/by-id/usb-Logitech_USB_
usb-Logitech_USB_Keyboard-event-if01
usb-Logitech_USB_Keyboard-event-kbd
usb-Logitech_USB_Optical_Mouse-event-mouse
usb-Logitech_USB_Optical_Mouse-mouse
[root@localhost 桌面]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: KINGSTON SA400S3 Rev: SBFK
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: PIONEER Model: DVD-RW DVR-S21 Rev: PA00
Type: CD-ROM ANSI SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
Vendor: General Model: UDisk Rev: 5.00
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi7 Channel: 00 Id: 00 Lun: 00
Vendor: Generic Model: Flash Disk Rev: 8.07
Type: Direct-Access ANSI SCSI revision: 04
[root@localhost 桌面]# ls /proc/scsi/usb-storage/
6 7
[root@localhost 桌面]# cat /proc/scsi/usb-storage/6
Host scsi6: usb-storage
Vendor: General
Product: UDisk
Serial Number: Љ
Protocol: Transparent SCSI
Transport: Bulk
Quirks:
[root@localhost 桌面]# cat /proc/scsi/usb-storage/7
Host scsi7: usb-storage
Vendor: Generic
Product: Mass Storage
Serial Number: 25711930
Protocol: Transparent SCSI
Transport: Bulk
Quirks:
[root@localhost 桌面]# cat /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="ACPI Power Button"
P: Phys=acpi/button/input0
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=3
B: KEY=10000000000000 0
I: Bus=0003 Vendor=046d Product=c31c Version=0110
N: Name="Logitech USB Keyboard"
P: Phys=usb-0000:00:13.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:13.0/usb5/5-1/5-1:1.0/input/input1
U: Uniq=
H: Handlers=sysrq kbd event1
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=1f
I: Bus=0003 Vendor=046d Product=c31c Version=0110
N: Name="Logitech USB Keyboard"
P: Phys=usb-0000:00:13.0-1/input1
S: Sysfs=/devices/pci0000:00/0000:00:13.0/usb5/5-1/5-1:1.1/input/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=1b
B: KEY=2010000 397ad801d001 1e000000000000 0
B: ABS=100000000
B: MSC=10
I: Bus=0003 Vendor=046d Product=c077 Version=0111
N: Name="Logitech USB Optical Mouse"
P: Phys=usb-0000:00:12.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:12.0/usb3/3-2/3-2:1.0/input/input4
U: Uniq=
H: Handlers=mouse0 event3
B: PROP=0
B: EV=17
B: KEY=ff0000 0 0 0 0
B: REL=103
B: MSC=10
[root@localhost 桌面]# ls /run/media/root/
2A0C790D0C78D573/ 94DA-2312/
lspci | grep ‘USB’
[root@localhost 桌面]# lspci | grep 'USB'
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
lspci -tv
[root@localhost 桌面]# lspci -tv
-[0000:00]-+-00.0 Advanced Micro Devices, Inc. [AMD] RS780 Host Bridge
+-01.0-[01]----05.0 Advanced Micro Devices, Inc. [AMD/ATI] Device 9615
+-02.0-[02]--
+-04.0-[03]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
+-11.0 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
+-12.0 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
+-12.1 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
+-12.2 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
+-13.0 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
+-13.1 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
+-13.2 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
+-14.0 Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller
+-14.1 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller
+-14.2 Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)
+-14.3 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
+-14.4-[04]--
\-14.5 Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
[root@localhost 桌面]# cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
10 misc
13 input
14 sound
21 sg
29 fb
89 i2c
116 alsa
128 ptm
136 pts
180 usb
189 usb_device
226 drm
247 hidraw
248 usbmon
249 megaraid_sas_ioctl
250 megadev_legacy
251 bsg
252 ptp
253 pps
254 rtc
Block devices:
1 ramdisk
259 blkext
7 loop
8 sd
11 sr
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
254 device-mapper
[root@localhost 桌面]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/root 30G 12G 17G 43% /
devtmpfs 4.0G 0 4.0G 0% /dev
tmpfs 4.0G 272K 4.0G 1% /dev/shm
tmpfs 4.0G 4.3M 4.0G 1% /run
tmpfs 4.0G 0 4.0G 0% /sys/fs/cgroup
/dev/sda6 16G 131M 15G 1% /diskE
/dev/sda5 31G 23G 7.0G 77% /home
tmpfs 803M 16K 803M 1% /run/user/0
/dev/sdb1 63G 7.4G 56G 12% /run/media/root/2A0C790D0C78D573
/dev/sdc1 15G 10G 5.1G 67% /run/media/root/94DA-2312
[root@localhost 桌面]# cat /proc/scsi/device_info | grep 'USB'
'BELKIN' 'USB 2 HS-CF' 0x402
'CBOX3' 'USB Storage-SMC' 0x402
'Generic' 'USB SD Reader' 0x402
'Generic' 'USB Storage-SMC' 0x402
'Generic' 'USB Storage-SMC' 0x402
'SMSC' 'USB 2 HS-CF' 0x440
'USB2.0' 'SMARTMEDIA/XD' 0x402
[root@localhost usb]# dmesg | grep "disk"
[ 1.851562] sd 0:0:0:0: [sda] Attached SCSI disk
[ 7515.746093] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 7666.242187] sd 8:0:0:0: [sdc] Attached SCSI removable disk
[ 7910.433593] sd 11:0:0:0: [sdc] Attached SCSI removable disk
[ 9760.265625] sd 12:0:0:0: [sdb] Attached SCSI removable disk
[10103.425781] sd 13:0:0:0: [sdb] Attached SCSI removable disk
[15865.320312] sd 15:0:0:0: [sdb] Attached SCSI removable disk
[16250.164062] sd 16:0:0:0: [sdb] Attached SCSI removable disk
[16543.656250] sd 17:0:0:0: [sdb] Attached SCSI removable disk
[16712.433593] sd 18:0:0:0: [sdb] Attached SCSI removable disk
[17389.316406] sd 19:0:0:0: [sdb] Attached SCSI removable disk
[18616.003906] sd 20:0:0:0: [sdb] Attached SCSI removable disk
[23024.652343] sd 21:0:0:0: [sdb] Attached SCSI removable disk
[23369.500000] sd 22:0:0:0: [sdc] Attached SCSI removable disk
[root@localhost usb]# dmesg | grep "Disk"
[ 0.425781] VFS: Disk quotas dquot_6.5.2
[ 7514.726562] usb 1-1: Product: UDisk
[ 7515.730468] scsi 6:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[ 7566.109375] scsi 8:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
[ 7817.453125] scsi 11:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
[ 9759.250000] usb 1-1: Product: UDisk
[ 9760.253906] scsi 12:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[10102.406250] usb 1-1: Product: UDisk
[10103.410156] scsi 13:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[15864.300781] usb 1-1: Product: UDisk
[15865.304687] scsi 15:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[16249.144531] usb 1-1: Product: UDisk
[16250.148437] scsi 16:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[16542.640625] usb 1-1: Product: UDisk
[16543.644531] scsi 17:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[16711.414062] usb 1-1: Product: UDisk
[16712.417968] scsi 18:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[17388.300781] usb 1-1: Product: UDisk
[17389.304687] scsi 19:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[18614.984375] usb 1-1: Product: UDisk
[18615.988281] scsi 20:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[23023.632812] usb 1-1: Product: UDisk
[23024.636718] scsi 21:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
[23369.484375] scsi 22:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
[root@localhost usb]# cat /proc/scsi/scsi | grep 'Disk'
Vendor: General Model: UDisk Rev: 5.00
Vendor: Generic Model: Flash Disk Rev: 8.07
查看主次设备
[root@localhost dev]# ls -l | grep sdb1
brw-rw---- 1 root disk 8, 17 8月 19 14:47 sdb1
[root@localhost perf]# smartctl -i /dev/sdb1
smartctl 6.2 2014-07-16 r3952 [mips64-linux-3.10.0] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: General
Product: UDisk
Revision: 5.00
User Capacity: 67,108,864,000 bytes [67.1 GB]
Logical block size: 512 bytes
scsiModePageOffset: response length too short, resp_len=12 offset=12 bd_len=8
scsiModePageOffset: response length too short, resp_len=12 offset=12 bd_len=8
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.