1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/smartctl.md

29 lines
652 B
Markdown
Raw Normal View History

2017-11-25 22:44:30 +11:00
# smartctl
> Monitor disk health including SMART data.
> More information: <https://manned.org/smartctl>.
2017-11-25 22:44:30 +11:00
- Display SMART health summary:
2017-11-25 22:44:30 +11:00
`sudo smartctl {{[-H|--health]}} {{/dev/sdX}}`
2017-11-25 22:44:30 +11:00
- Display device information:
2017-11-25 22:44:30 +11:00
`sudo smartctl {{[-i|--info]}} {{/dev/sdX}}`
2017-11-25 22:44:30 +11:00
- Start a short/long self-test in the background:
2017-11-25 22:44:30 +11: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
- Display current/last self-test status and other SMART capabilities:
2017-11-25 22:44:30 +11:00
`sudo smartctl {{[-c|--capabilities]}} {{/dev/sdX}}`
2017-11-25 22:44:30 +11:00
- Display exhaustive SMART data:
2017-11-25 22:44:30 +11:00
`sudo smartctl {{[-a|--all]}} {{/dev/sdX}}`