Commands
| Command | What it does |
|---|---|
smartdisk |
Numbered disk list; choose by number (several separated by spaces, Enter = all) |
smartdisk list |
Short overview: device, size, type, connection, model |
smartdisk info disk4 |
Health report for one disk (also disk4s2, /dev/disk4) |
smartdisk check |
One line per disk; the exit code is the worst rating. See Scripts and cron |
smartdisk watch |
Check every 30 minutes and report disks that get worse |
sudo smartdisk test disk4 |
Read test: 4 GiB at start and end + 120 samples of 128 MiB |
sudo smartdisk test disk4 -full |
Read the entire surface |
smartdisk selftest disk4 |
The drive’s short self-test; -extended, -wait, -status, -abort |
sudo smartdisk usb disk4 |
SMART over USB (Mac) |
sudo smartdisk inspect disk4 |
Used-drive check with advice |
sudo smartdisk bench disk4 |
Benchmark: sequential and random 4K read and write |
sudo smartdisk rescue disk4 <image> |
Rescue copy to an image file |
sudo smartdisk repair disk4 |
Rewrite unreadable sectors |
smartdisk format disk6 -fs exfat -name Untitled |
Erase an external disk into one volume |
sudo smartdisk wipe disk6 -o cert.pdf |
Secure erase with an erasure certificate |
sudo smartdisk capacity disk6 |
Real capacity of a stick or card (erases it) |
smartdisk pdf |
PDF report; -usb, -cloud, -o file.pdf, -from report.json |
smartdisk upload |
Store reports in the SmartDisk Cloud; -usb, -y, -from report.json |
smartdisk lookup HA-XXXXX-XXXXX |
Show a stored report |
smartdisk lookup HD-XXXXX-XXXXX |
Show a drive’s report history (by drive ID) |
smartdisk lookup "<model>" <serial> |
Show a drive’s report history (by model and serial) |
smartdisk install |
Install smartmontools and libusb (optional helpers) |
smartdisk update |
Update to the latest release; -check only checks |
smartdisk --info |
Version, copyright, system, component status and disks |
smartdisk --version |
Version |
Most commands also accept --json.