Run a short self-test

Start a short SMART self-test, then read its log. The test runs in the background and does not touch data

smartctl -t short /dev/sda && sleep 120 && smartctl -l selftest /dev/sda

tool
smartctl3 commands
tags
smartctldiskmonitoringtroubleshooting

More smartctl commands

  • 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

  • smartctl -x -d auto /dev/sda | less

    Full -x report: health, attributes, error log, temperature history. -d auto detects RAID and USB

all 3 smartctl commands