Exit codes
| Code | Meaning |
|---|---|
0 |
GOOD |
3 |
BAD, read errors, or unreadable sectors left in a rescue |
4 |
CAUTION |
1 |
Error |
2 |
Invalid usage |
130 |
A test or rescue was stopped (Ctrl-C) |
Disks without SMART data do not change the exit code of smartdisk check.
smartdisk inspect uses its own: 0 recommended, 4 caution, 3 avoid,
1 unknown.