smartctl
Command‑line utility for monitoring SMART data, disk health, and drive diagnostics.
"Usage"
smartctl [options] device
"--identify"
smartctl --identify /dev/sda
"-g NAME, --get=NAME"
smartctl --get=all /dev/sda
"-q TYPE, --quietmode"
smartctl --quietmode=errorsonly /dev/sda
"-d TYPE, --device"
smartctl --device=scsi /dev/sda
"-T TYPE, --tolerance"
smartctl --tolerance=permissive /dev/sda
"-b TYPE, --badsum"
smartctl --badsum=warn /dev/sda
"-r TYPE, --report"
smartctl --report=ioctl /dev/sda
"-n MODE, --nocheck"
smartctl --nocheck=standby /dev/sda
"-s VALUE, --smart"
smartctl --smart=on /dev/sda
"-o VALUE, --offlineauto"
smartctl --offlineauto=on /dev/sda
"-S VALUE, --saveauto"
smartctl --saveauto=on /dev/sda
"--set=NAME[,VALUE]"
smartctl --set=apm,off /dev/sda
"-H, --health"
smartctl --health /dev/sda
"-c, --capabilities"
smartctl --capabilities /dev/sda
"-A, --attributes"
smartctl --attributes /dev/sda
"-f FORMAT, --format"
smartctl --format=brief --attributes /dev/sda
"-l TYPE, --log"
smartctl --log=selftest /dev/sda
"-v N,OPTION"
smartctl --vendorattribute=1,raw8 /dev/sda
"-F TYPE, --firmwarebug"
smartctl --firmwarebug=samsung /dev/sda
"-P TYPE, --presets"
smartctl --presets=show /dev/sda
"-B FILE, --drivedb"
smartctl --drivedb=/etc/smart_drivedb.h
"-t TEST, --test"
smartctl --test=long /dev/sda
"-C, --captive"
smartctl --captive --test=short /dev/sda
"-X, --abort"
smartctl --abort /dev/sda
"Print all SMART information"
"Enable SMART + autosave"
smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda
"Run extended test"
smartctl --test=long /dev/sda
"Self-test + attributes + quietmode"
smartctl --attributes --log=selftest --quietmode=errorsonly /dev/sda
"3ware RAID controller"
smartctl --all --device=3ware,2 /dev/sda
"HighPoint RAID controller"
smartctl --all --device=hpt,1/1/3 /dev/sda
"Areca RAID controller"
smartctl --all --device=areca,3/1 /dev/sg2