SMART实现取决于制造商,有时可通过smart -a
命令获得大量日志。这是我从日立(Hitachi)获得的自我加密驱动器之一:
SMART Error Log Version: 1
ATA Error Count: 3
Error 3 occurred at disk power-on lifetime: 2543 hours (105 days + 23 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
10 51 08 00 08 00 00 Error: IDNF at LBA = 0x00000800 = 2048
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 68 00 08 00 40 00 00:00:06.139 READ FPDMA QUEUED
27 00 00 00 00 00 e0 00 00:00:06.126 READ NATIVE MAX ADDRESS EXT
ec 00 00 00 00 00 a0 00 00:00:06.125 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 00 00:00:06.125 SET FEATURES [Set transfer mode]
27 00 00 00 00 00 e0 00 00:00:06.125 READ NATIVE MAX ADDRESS EXT
...
本白皮书为日志中出现的错误代码提供了一些启示。常见的错误缩写是:
- AMNF-找不到地址标记
- TONF-找不到音轨0
- ABRT-命令中止
- IDNF-找不到扇区ID
- UNC-无法更正的数据
- BBK-坏块标记
就我而言,IDNF错误(未找到ID)可以追溯到通过USB到SATA适配器插入驱动器且电源不足而导致的故障,从而无法正常查找。