標簽的制做很簡單,用貝迪的tls2200配合合適的標簽,很容易打印出漂亮的硬盤標識。
sda,sdb,sdc,sdd,hda,hdb,hdc,hdd
但是怎麼能夠快速的知道機箱裡諸多硬盤各自的編號呢?
我們可以使用hdparm命令來查詢硬盤的序列號.然後根據每個硬盤盤體上面標注的序列號,就可以定位到每個硬盤。
使用hdparm查詢序列號的參數是這樣的:
#hdpatm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Model Number: ST3320620AS
Serial Number: 5QF0337C
Firmware Revision: 3.AAC
Standards:
Supported: 7 6 5 4
Likely used: 7
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 625142448
device size with M = 1024*1024: 305245 MBytes
device size with M = 1000*1000: 320072 MBytes (320 GB)