Changes between Initial Version and Version 1 of jazz/10-07-16


Ignore:
Timestamp:
Jul 16, 2010, 9:26:54 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/10-07-16

    v1 v1  
     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{{{
     11jazz@Wdebian:~$ sudo apt-get install hdparm
     12jazz@Wdebian:~$ sudo hdparm -I /dev/sda | grep "Model Number"
     13        Model Number:       ST31500341AS
     14}}}
     15   * [工具二] smartctl - [http://packages.debian.org/smartmontools Debian 有 smartmontools 套件]
     16{{{
     17jazz@Wdebian:~$ sudo apt-get install smartmontools
     18jazz@Wdebian:~$ sudo smartctl -a /dev/sda | grep "Device Model:"
     19Device Model:     ST31500341AS
     20}}}
     21   * [低階指令一] 如果是 SCSI 或 SATA 硬碟,可以查 /proc/scsi/scsi
     22{{{
     23jazz@Wdebian:~$ cat /proc/scsi/scsi
     24Attached devices:
     25Host: scsi0 Channel: 00 Id: 00 Lun: 00
     26  Vendor: ATA      Model: ST31500341AS     Rev: CC1H
     27  Type:   Direct-Access                    ANSI  SCSI revision: 05
     28Host: 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
     31Host: 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{{{
     37jazz@lenny:~$ sudo cat /proc/ide/hda/model
     38VBOX HARDDISK
     39}}}