2010-07-16
Linux
- 在 Linux 底下查硬碟型號(hard disk model and serial number)
- [參考一] 查看 Linux 系統資訊常用指令
- [參考二] Linux: Find out serial / model number and vendor information for SATA and IDE hard disk
- [參考三] Hard-disk model and manufacturer - linux-misc
- [工具一] hdparm - Debian 有 hdparm 套件 - 可以拿來測試硬碟效能
jazz@Wdebian:~$ sudo apt-get install hdparm jazz@Wdebian:~$ sudo hdparm -I /dev/sda | grep "Model Number" Model Number: ST31500341AS
- [工具二] smartctl - Debian 有 smartmontools 套件 - 也可以拿來測試硬碟效能
jazz@Wdebian:~$ sudo apt-get install smartmontools jazz@Wdebian:~$ sudo smartctl -a /dev/sda | grep "Device Model:" Device Model: ST31500341AS
- [低階指令一] 如果是 SCSI 或 SATA 硬碟,可以查 /proc/scsi/scsi
jazz@Wdebian:~$ cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: ST31500341AS Rev: CC1H Type: Direct-Access ANSI SCSI revision: 05 Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: TSSTcorp Model: DVD-ROM TS-H353B Rev: D500 Type: CD-ROM ANSI SCSI revision: 05 Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: ST3640323AS Rev: SD35 Type: Direct-Access ANSI SCSI revision: 05
- [低階指令二] 如果是 IDE 硬碟,可以查 /proc/ide/hd*/model
jazz@lenny:~$ sudo cat /proc/ide/hda/model VBOX HARDDISK
Last modified 14 years ago
Last modified on Feb 9, 2011, 11:16:50 PM