smartctl -x on Linux: Read Extended SMART in One Command

smartctl -x - custom-smtx55-featured.png

smartctl -x is the extended report — one scroll for health, capabilities, and attribute table. Command reference: smartctl linux reference. Hands-on test flow: check disk health.

Pick the device

Use lsblk -d -o NAME,MODEL,SIZE,ROTA — note whole-disk path, not a partition.

bashdevice
lsblk -d -o NAME,MODEL,SIZE,TYPE
# example: /dev/sda or /dev/nvme0n1
lsblk
device

Run extended dump

sudo smartctl -x /dev/sdX — combines info, health, and attributes.

bash-x
sudo smartctl -x /dev/sda | less
-x
dump

Health line first

Scan for SMART overall-health self-assessment or NVMe critical warning.

bashhealth
sudo smartctl -H /dev/sda
sudo smartctl -x /dev/sda | grep -iE 'health|critical_warning'
health
PASS FAIL

Act on red flags

Growing Reallocated/Pending sectors or failing self-test → plan replace before pool outage.

bashshort test
sudo smartctl -t short /dev/sda
sudo smartctl -l selftest /dev/sda
test
self-test

Quick Reference

Related tutorials

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