2025-03-14 21:59:59 -06:00
|
|
|
# smartctl
|
|
|
|
|
|
|
|
|
|
> Monitor disk health including SMART data.
|
2025-04-03 20:36:56 -06:00
|
|
|
> More information: <https://manned.org/smartctl>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display SMART health summary:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo smartctl {{[-H|--health]}} {{/dev/sdX}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display device information:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo smartctl {{[-i|--info]}} {{/dev/sdX}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Start a short/long self-test in the background:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo smartctl {{[-t|--test]}} {{short|long}} {{/dev/sdX}}`
|
|
|
|
|
|
|
|
|
|
- Display the self-test log:
|
|
|
|
|
|
|
|
|
|
`sudo smartctl {{[-l|--log]}} selftest`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display current/last self-test status and other SMART capabilities:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo smartctl {{[-c|--capabilities]}} {{/dev/sdX}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display exhaustive SMART data:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo smartctl {{[-a|--all]}} {{/dev/sdX}}`
|