smartctl
Installation
SKILL.md
Identity
| Property | Value |
|---|---|
| Binary | smartctl |
| Config | /etc/smartd.conf (for the background monitoring daemon smartd) |
| Logs | Syslog / journald via smartd; self-test results stored on device |
| Type | CLI tool (part of smartmontools) |
| Install | apt install smartmontools / dnf install smartmontools |
Key Operations
| Task | Command |
|---|---|
| Overall health check (pass/fail summary) | sudo smartctl -H /dev/sda |
| All SMART attributes and device info | sudo smartctl -a /dev/sda |
| Device identity only (model, serial, firmware) | sudo smartctl -i /dev/sda |
| Start a short self-test (~2 minutes) | sudo smartctl -t short /dev/sda |
| Start a long self-test (hours, depends on size) | sudo smartctl -t long /dev/sda |
Related skills