在准备替换或加装硬盘时,如何得到硬盘信息?可以用smartctl,hdparm等命令来查询。在日志中显示硬盘有坏扇区 1tail /var/log/messages 2Mar 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Currently unreadable (pending) sectors 3Mar 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Offline uncorrectable sectors dmesg中也有错误信息 1dmesg 2ide: failed opcode was: unknown 3hda: no DRQ after issuing WRITE 4ide0: reset: success 5hda: status timeout: status=0xd0 { Busy } 对硬盘做一下健康检查 1smartctl -H /dev/hda 2smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen 3Home……
Continue reading