smartctl linux and smartctl linux check disk are top impressions — this page is a one-screen command reference before the labs: check disk walkthrough and smartctl -x.
Pick the device
Use lsblk; on NVMe path is /dev/nvme0n1.
bashdevice
lsblk -o NAME,SIZE,TYPE,MODEL
sudo smartctl -i /dev/sda

Health and attributes
-H PASSED/FAILED; -A or -a for counters.
bashhealth
sudo smartctl -H /dev/sda
sudo smartctl -A /dev/sda | egrep 'Realloc|Pending|Wear'

Extended -x
Vendor pages and logs when support asks for dumps.
bash-x
sudo smartctl -x /dev/sda | head -80

Run a short test
Non-destructive; read log after.
bashtest
sudo smartctl -t short /dev/sda
sudo smartctl -l selftest /dev/sda

Quick Reference
- Walkthrough: check disk test
- Overview: SMART guide
Related tutorials
Diagrams are original illustrations by Gnome IT Solutions. Tutorial text © Gnome IT Solutions.