linux – 从df设备名称到物理驱动器名称(供应商/类型)
作者:互联网
通过df查看设备名称,是否可以将其解析为物理驱动器名称,例如供应商/类型.
/dev/sda3 915.4G 34.9G 880.0G 4% /share/HDA_DATA
/dev/sdd3 1.8T 668.1G 1.1T 36% /share/HDD_DATA
我了解到我在sys/block中找到了一些信息,但我没有在那里找到供应商的类型名称?
– 添加 –
我的系统是基于Linux的QNAP NAS,所以事情可能会有所不同.对于我来说,作为非Linux专家很难说,什么是“标准”,什么不是.
– 自史蒂文的回答中添加 –
[~] # hdparm -I /dev/sdb3
/dev/sdb3:
HDIO_DRIVE_CMD(identify) failed: Invalid argument
解决方法:
sudo lshw -class disk
*-cdrom
description: DVD-RAM writer
product: CDDVDW SH-S223Q
vendor: TSSTcorp
physical id: 0
bus info: scsi@0:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/sr0
version: SB02
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=ready
*-medium
physical id: 0
logical name: /dev/cdrom
*-disk
description: ATA Disk
product: WDC WD1600AAJS-0
vendor: Western Digital
physical id: 1
bus info: scsi@1:0.0.0
logical name: /dev/sda
version: 01.0
serial: WD-WMAV2P964464
size: 149GiB (160GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=000c0805
*-disk
description: SCSI Disk
physical id: 0.0.0
bus info: scsi@6:0.0.0
logical name: /dev/sdb
size: 931GiB (1TB)
capabilities: partitioned partitioned:dos
configuration: signature=a39eabc7
标签:linux,block-device,hard-disk,df 来源: https://codeday.me/bug/20190812/1643597.html