smartctl --scan
List devices smartctl can see
smartctl -i <dev>
Model, serial, firmware, capacity
smartctl -H <dev>
Overall health: PASSED or FAILED
smartctl -A <dev>
Vendor attributes (NVMe: health log)
smartctl -a <dev>
Info, health, attributes, error and test logs
For ATA this adds -c and the selective self-test log too.
smartctl -x <dev>
Extended: all of -a plus device stats, SCT data
smartctl -c <dev>
Drive SMART capabilities
smartctl -H -q errorsonly <dev>
Print only on problems (for scripts)
smartctl -j -a <dev>
JSON output for tools like jq
smartctl -a -q noserial <dev>
Hide serial number before sharing output
smartctl -s on <dev>
Enable SMART on the drive
Self-tests
smartctl -t short <dev>
Quick test, usually a few minutes
smartctl -t long <dev>
Full surface test, minutes to hours
smartctl -l selftest <dev>
Show self-test results
smartctl -t conveyance <dev>
Check for shipping damage (ATA)
smartctl -t offline <dev>
Run offline data collection (ATA)
smartctl -t select,<start>-<end>
<dev>
Test one LBA range (ATA)
smartctl -C -t short <dev>
Captive: run in foreground, drive is busy
Never use on a mounted or in-use drive.
smartctl -X <dev>
Abort a running self-test
Logs and errors
smartctl -l error <dev>
Drive error log
smartctl -l xerror <dev>
Extended error log, more entries (ATA)
smartctl -l xselftest <dev>
Extended self-test log (ATA)
smartctl -l error,<n> <dev>
Show n error entries (NVMe)
smartctl -l scterc <dev>
Show error recovery timeouts (ATA)
smartctl -l scterc,70,70 <dev>
Set read/write timeout to 7.0 s
Units are 100 ms. Usually resets at power cycle; useful for
RAID members.
smartctl -l scttemp <dev>
Temperature stats and limits (ATA)
smartctl -l devstat <dev>
Device statistics: writes, wear (ATA)
Devices and NVMe
smartctl -d <type> <dev>
Force the device type
smartctl -d sat <dev>
USB or SATA bridge (SCSI-to-ATA)
If auto-detect fails on a USB enclosure, try sat first, then
usbjmicron, usbcypress or usbprolific.
smartctl -d scsi <dev>
Treat as SCSI/SAS drive
smartctl -d ata <dev>
Treat as ATA/SATA drive
smartctl -d nvme <dev>
NVMe device explicitly
smartctl -a /dev/nvme0
NVMe health log: spare, wear, temperature
smartctl -d megaraid,<n> /dev/sda
Disk n behind a MegaRAID controller
smartctl -d sntjmicron <dev>
USB-to-NVMe bridge, JMicron
smartctl -d sntrealtek <dev>
USB-to-NVMe bridge, Realtek
smartctl -d sntasmedia <dev>
USB-to-NVMe bridge, ASMedia