smartctl Linux Check Disk: Step-by-Step SMART Health Test

smartctl linux check disk - custom-smartchk-featured.png

GSC shows heavy volume for smartctl linux and smartctl linux check disk — this is the hands-on checklist before RAID alerts fire. Deep dive: smartctl -x and SMART overview.

Pick the device

Use lsblk — never scan the wrong spindle on a hypervisor.

bashlist
lsblk -o NAME,SIZE,TYPE,MODEL
sudo smartctl -i /dev/sda
lsblk
device

Quick health

smartctl -H returns PASSED or FAILED.

bashhealth
sudo smartctl -H /dev/sda
-H
health

Attribute snapshot

-a for counters before/after stress.

bashattrs
sudo smartctl -A /dev/sda | egrep 'Realloc|Pending|Uncorrect'
-a
attributes

Short test

Schedule -t short in maintenance; read results with -l selftest.

bashtest
sudo smartctl -t short /dev/sda
sudo smartctl -l selftest /dev/sda
-t short
selftest

Quick Reference

  • smartctl -H /dev/DISK
  • Details: smartctl -a
  • Test: smartctl -t short

Related tutorials

Diagrams are original illustrations by Gnome IT Solutions. Tutorial text © Gnome IT Solutions.