ovelny

Smartctl usage

No-nonsense guide to monitor the health of HDDs and SSDs with smartctl.

Run and check tests

# Run a short test
sudo smartctl -t short /dev/sd[x]
# Run a long test
sudo smartctl -t long /dev/sd[x]
# Check progress of running test
sudo smartctl -a /dev/sd[x] | grep "of test"
# List test results
sudo smartctl -l selftest /dev/sd[x]

Monitor health

# Check SMART reports
sudo smartctl -H /dev/sd[x]
# Check detailed info and all SMART attributes
sudo smartctl -a /dev/sd[x]

Suggested attributes that might indicate a failing HDD:

Suggested attributes that might indicate a failing SSD:

References