2017-11-25 22:44:30 +11:00
|
|
|
# smartctl
|
|
|
|
|
2022-10-05 09:04:52 +02:00
|
|
|
> Monitor disk health including SMART data.
|
2025-03-19 04:20:32 +00:00
|
|
|
> More information: <https://manned.org/smartctl>.
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2022-10-05 09:04:52 +02:00
|
|
|
- Display SMART health summary:
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2025-03-19 04:20:32 +00:00
|
|
|
`sudo smartctl {{[-H|--health]}} {{/dev/sdX}}`
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2022-10-05 09:04:52 +02:00
|
|
|
- Display device information:
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2025-03-19 04:20:32 +00:00
|
|
|
`sudo smartctl {{[-i|--info]}} {{/dev/sdX}}`
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2025-03-19 04:20:32 +00:00
|
|
|
- Start a short/long self-test in the background:
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2025-03-19 04:20:32 +00:00
|
|
|
`sudo smartctl {{[-t|--test]}} {{short|long}} {{/dev/sdX}}`
|
|
|
|
|
|
|
|
- Display the self-test log:
|
|
|
|
|
|
|
|
`sudo smartctl {{[-l|--log]}} selftest`
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2022-10-05 09:04:52 +02:00
|
|
|
- Display current/last self-test status and other SMART capabilities:
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2025-03-19 04:20:32 +00:00
|
|
|
`sudo smartctl {{[-c|--capabilities]}} {{/dev/sdX}}`
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2022-10-05 09:04:52 +02:00
|
|
|
- Display exhaustive SMART data:
|
2017-11-25 22:44:30 +11:00
|
|
|
|
2025-03-19 04:20:32 +00:00
|
|
|
`sudo smartctl {{[-a|--all]}} {{/dev/sdX}}`
|