当驱动器不健康时 smartctl 会输出什么文本

当驱动器不健康时 smartctl 会输出什么文本

我运行此命令来检查驱动器运行状况:

smartctl -H /dev/sda

输出:

smartctl 5.43 2012-06-30 r3573 [i686-linux-4.2.0-rc3+] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

如果磁盘不健康,输出会是什么?我没有这样的磁盘,无法学习这个。

答案1

像这样(SSD 已经报告此情况 6 个多月了):

# smartctl -H /dev/sdb
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.16.0-4-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
Failed Attributes:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
184 End-to-End_Error        0x0033   043   043   090    Pre-fail  Always   FAILING_NOW 57

相关内容