| 1 | = 2010-07-16 = |
| 2 | |
| 3 | == Linux == |
| 4 | |
| 5 | * 在 Linux 底下查硬碟型號(hard disk model and serial number) |
| 6 | * [參考一] [http://taiwanwolf.blogspot.com/2009/02/linux.html 查看 Linux 系統資訊常用指令] |
| 7 | * [參考二] [http://www.cyberciti.biz/faq/linux-getting-scsi-ide-harddisk-information/ Linux: Find out serial / model number and vendor information for SATA and IDE hard disk] |
| 8 | * [參考三] [http://dbaspot.com/forums/linux-misc/245398-hard-disk-model-manufacturer.html Hard-disk model and manufacturer - linux-misc] |
| 9 | * [工具一] hdparm - [http://packages.debian.org/hdparm Debian 有 hdparm 套件] |
| 10 | {{{ |
| 11 | jazz@Wdebian:~$ sudo apt-get install hdparm |
| 12 | jazz@Wdebian:~$ sudo hdparm -I /dev/sda | grep "Model Number" |
| 13 | Model Number: ST31500341AS |
| 14 | }}} |
| 15 | * [工具二] smartctl - [http://packages.debian.org/smartmontools Debian 有 smartmontools 套件] |
| 16 | {{{ |
| 17 | jazz@Wdebian:~$ sudo apt-get install smartmontools |
| 18 | jazz@Wdebian:~$ sudo smartctl -a /dev/sda | grep "Device Model:" |
| 19 | Device Model: ST31500341AS |
| 20 | }}} |
| 21 | * [低階指令一] 如果是 SCSI 或 SATA 硬碟,可以查 /proc/scsi/scsi |
| 22 | {{{ |
| 23 | jazz@Wdebian:~$ cat /proc/scsi/scsi |
| 24 | Attached devices: |
| 25 | Host: scsi0 Channel: 00 Id: 00 Lun: 00 |
| 26 | Vendor: ATA Model: ST31500341AS Rev: CC1H |
| 27 | Type: Direct-Access ANSI SCSI revision: 05 |
| 28 | Host: scsi1 Channel: 00 Id: 00 Lun: 00 |
| 29 | Vendor: TSSTcorp Model: DVD-ROM TS-H353B Rev: D500 |
| 30 | Type: CD-ROM ANSI SCSI revision: 05 |
| 31 | Host: scsi2 Channel: 00 Id: 00 Lun: 00 |
| 32 | Vendor: ATA Model: ST3640323AS Rev: SD35 |
| 33 | Type: Direct-Access ANSI SCSI revision: 05 |
| 34 | }}} |
| 35 | * [低階指令二] 如果是 IDE 硬碟,可以查 /proc/ide/hd*/model |
| 36 | {{{ |
| 37 | jazz@lenny:~$ sudo cat /proc/ide/hda/model |
| 38 | VBOX HARDDISK |
| 39 | }}} |