smartctl -x on Linux: Full SMART Report and smartctl Commands

smartctl linux - custom-smartx-featured.png

smartctl linux traffic often lands on our SMART health overview — this guide focuses on smartctl -x and the smartctl commands operators run in incidents (103 impressions on GSC for smartctl linux).

Hypervisor storage: Proxmox Ceph.

Health summary

-H prints PASSED/FAILED quickly.

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

Full extended report

-x combines capabilities, attributes, and logs — best single paste for tickets.

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

Run self-tests

Short offline/online tests before declaring a disk good.

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

NVMe

Use nvme smart-log or smartctl on /dev/nvme0 with correct device type.

TipMatch device names from lsblk — do not scan the wrong LUN on a VM host.
NVMe
SSD

Quick Reference

  • Quick: smartctl -H /dev/DISK
  • Full: smartctl -x /dev/DISK
  • Tests: smartctl -t short /dev/DISK

Related tutorials

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