Show full health and error log
Full -x report: health, attributes, error log, temperature history. -d auto detects RAID and USB
smartctl -x -d auto /dev/sda | less
- tool
- smartctl3 commands
More smartctl commands
-
smartctl -t short /dev/sda && sleep 120 && smartctl -l selftest /dev/sdaStart a short SMART self-test, then read its log. The test runs in the background and does not touch data
-
smartctl -A /dev/sda | awk '$1~/^[0-9]+$/{printf "%-3s %-24s raw=%s\n",$1,$2,$10}'Print raw SMART attribute values. Watch Reallocated_Sector_Ct and Current_Pending_Sector