| 232 | * 在 Linux 底下查硬碟型號(hard disk model and serial number) |
| 233 | * [參考一] [http://taiwanwolf.blogspot.com/2009/02/linux.html 查看 Linux 系統資訊常用指令] |
| 234 | * [參考二] [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] |
| 235 | * [參考三] [http://dbaspot.com/forums/linux-misc/245398-hard-disk-model-manufacturer.html Hard-disk model and manufacturer - linux-misc] |
| 236 | * [工具一] hdparm - [http://packages.debian.org/hdparm Debian 有 hdparm 套件] - 可以拿來測試硬碟效能 |
| 237 | {{{ |
| 238 | jazz@Wdebian:~$ sudo apt-get install hdparm |
| 239 | jazz@Wdebian:~$ sudo hdparm -I /dev/sda | grep "Model Number" |
| 240 | Model Number: ST31500341AS |
| 241 | }}} |
| 242 | * 如果要測試硬碟 I/O 速度,可以用 '''hdparm -t''' |
| 243 | {{{ |
| 244 | jazz@Wdebian:~$ sudo hdparm -t /dev/sda |
| 245 | }}} |
| 246 | * [工具二] smartctl - [http://packages.debian.org/smartmontools Debian 有 smartmontools 套件] - [http://unixfoo.blogspot.com/2007/11/disk-information-using-smartctl.html 也可以拿來測試硬碟效能] |
| 247 | {{{ |
| 248 | jazz@Wdebian:~$ sudo apt-get install smartmontools |
| 249 | jazz@Wdebian:~$ sudo smartctl -a /dev/sda | grep "Device Model:" |
| 250 | Device Model: ST31500341AS |
| 251 | }}} |
| 252 | * [低階指令一] 如果是 SCSI 或 SATA 硬碟,可以查 /proc/scsi/scsi |
| 253 | {{{ |
| 254 | jazz@Wdebian:~$ cat /proc/scsi/scsi |
| 255 | Attached devices: |
| 256 | Host: scsi0 Channel: 00 Id: 00 Lun: 00 |
| 257 | Vendor: ATA Model: ST31500341AS Rev: CC1H |
| 258 | Type: Direct-Access ANSI SCSI revision: 05 |
| 259 | Host: scsi1 Channel: 00 Id: 00 Lun: 00 |
| 260 | Vendor: TSSTcorp Model: DVD-ROM TS-H353B Rev: D500 |
| 261 | Type: CD-ROM ANSI SCSI revision: 05 |
| 262 | Host: scsi2 Channel: 00 Id: 00 Lun: 00 |
| 263 | Vendor: ATA Model: ST3640323AS Rev: SD35 |
| 264 | Type: Direct-Access ANSI SCSI revision: 05 |
| 265 | }}} |
| 266 | * [低階指令二] 如果是 IDE 硬碟,可以查 /proc/ide/hd*/model |
| 267 | {{{ |
| 268 | jazz@lenny:~$ sudo cat /proc/ide/hda/model |
| 269 | VBOX HARDDISK |
| 270 | }}} |
| 271 | |