Linux

從 df 設備名稱到物理驅動器名稱(供應商/類型)

  • March 18, 2019

通過 df 查看設備名稱,是否有可能將其解析為物理驅動器名稱,例如vendor / type

/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,所以那裡的情況可能會有所不同。

– 加入 Steven 的回答 –

[~] # 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

引用自:https://unix.stackexchange.com/questions/39886