2017-11-25 11:44:30 +00:00
|
|
|
# smartctl
|
|
|
|
|
2022-10-05 08:04:52 +01:00
|
|
|
> Monitor disk health including SMART data.
|
|
|
|
> More information: <https://www.smartmontools.org>.
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2022-10-05 08:04:52 +01:00
|
|
|
- Display SMART health summary:
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`sudo smartctl --health {{/dev/sdX}}`
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2022-10-05 08:04:52 +01:00
|
|
|
- Display device information:
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`sudo smartctl --info {{/dev/sdX}}`
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2022-10-05 08:04:52 +01:00
|
|
|
- Start a short self-test in the background:
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`sudo smartctl --test short {{/dev/sdX}}`
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2022-10-05 08:04:52 +01:00
|
|
|
- Display current/last self-test status and other SMART capabilities:
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`sudo smartctl --capabilities {{/dev/sdX}}`
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2022-10-05 08:04:52 +01:00
|
|
|
- Display exhaustive SMART data:
|
2017-11-25 11:44:30 +00:00
|
|
|
|
2022-10-05 08:04:52 +01:00
|
|
|
`sudo smartctl --all {{/dev/sdX}}`
|