可以在linux系统上查找硬盘信息,例如硬盘型号,然后使用smartctl、hdparm等命令进行查找。
1、在日志中显示硬盘有坏扇区
代码示例:的副本
tail /var/log/messages
mar 109336042336055 C1 gsmartd [ 1848 ] : device :/dev/hda,2当前不可拆卸(pending ) sectors
mar 109336042336055 C1 gsmartd [ 1848 ] : device :/dev/hda,2 Offline uncorrectable sectors
2,dmesg中也有错误信息
代码示例:的副本
德默斯
ide :故障诊断程序: unknown
hda: no DRQ after issuing WRITE
ide 0:重置: success
hda : status time out : status=0xd0{ busy }
3、硬盘体检
代码示例:的副本
smartctl -H /dev/hda
smartctl 5.33版[ i386-red hat-Linux-GNU ]版权所有(c ) 2002-4 Bruce Allen
home page is http://smartmontools.source forge.net /
===startofreadsmartdatasection===
智能健康自助评估测试结果:通过
检查合格了。 为了慎重起见,我打算更换硬盘。
4、从目前硬盘型号来看,硬盘接口为SATAII,大小为3.5’
代码示例:的副本
smartctl -a /dev/hda
smartctl 5.33版[ i386-red hat-Linux-GNU ]版权所有(c ) 2002-4 Bruce Allen
home page is http://smartmontools.source forge.net /
===startofinformationsection===
设备型号: ST 3160815 as
串行编号: 6ra 7d wm4
firmware版本:4. aab
用户容量:160,040,803,840字节
device is : notinsmartctldatabase [ fordetailsuse :-pshow all ]
ATA版本is : 7
atastandardis : exactataspecificationdraftversionnotindicated
local time is : mon mar 1103360363360552010 CST
smartsupportis :可用设备体系结构。
智能支持is :启用
===startofreadsmartdatasection===
智能健康自助评估测试结果:通过
5,hdparm也可以获得硬盘机型
代码示例:的副本
hdparm -i /dev/hda
/dev/hda:
Model=ST3160815AS,FwRev=4.AAB,SerialNo=6RA7DWM4
config={ hardsectnotmfmhdsw 15 usecfixeddtr 10 mbsrotspdtol.5 % }
RawCHS=16383/16/63、TrkSize=0、SectSize=0、ECCbytes=4
BuffType=unknown,BuffSize=8192kB,MaxMultSect=16,MultSect=off
CurCHS=16383/16/63,CurSects=16514064,LBA=yes,LBAsects=268435455
IORDY=on/off,tPIO={min:120,w/IORDY:120},tDMA={min:120,rec:120}
Pio modes : Pio0Pio1Pio2Pio3Pio 4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2
高级pm=nowritecache=已启用
driveconformsto 3360 devicedoesnotreportversion :
*签名the current active mode
6、当然,也可以知道主板型号支持的硬盘,使用命令dmidecode。
代码示例:的副本
dmidecodesysteminformationmanufacturer : gigabytetechnologyco .Ltd. Product Name: 945GCM-S2L本文原始链接: 3http://ww.jww