S.M.A.R.T.

Intro

According to wikipedia, S.M.A.R.T. stand for Self-Monitoring, Analysis and Reporting Technology, which is a monitoring system included in computer hard disk drives (HDDs) and solid-state drives (SSDs) that detects and reports on various indicators of drive reliability, with the intent of enabling the anticipation of hardware failures.

We will see how to read the smart attributes thanks to smartctl tool.

Configuration

Installing

root@host:~# atp-get install smartmontools

Commands

Basic commands

check if SMART is enabled

root@host:~# smartctl -i /dev/<device>

enable SMART

root@host:~# smartctl -s on /dev/<device>

prints all SMART information about the disk

root@host:~# smartctl -a /dev/<device>

check critical information

root@host:~# smartctl -a /dev/<device> | grep -Ei "Reallocated|Spin.*Retry|SATA*Downshift|End-to-End|Reported.*Uncorrectable|Timeout|Reallocation|Current.*Pending|Uncorrect|TA.*Counter|Drive.*Life.*Protection"

Run Tests

Here we will see how to perform SMART self tests on disk.

short test

root@host:~# smartctl -t short /dev/<device>

long test

root@host:~# smartctl -t long /dev/<device>

conveyance test

root@host:~# smartctl -t conveyance /dev/<device>

check current test

root@host:~# smartctl -l selftest /dev/<device>

see results

root@host:~# smartctl -H /dev/<device>

check if errors

root@host:~# smartctl -l selftest /dev/<device>
root@host:~# smartctl -l error /dev/<device>
Licence Creative Commons
This website http://shebangthedolphins.net is licensed to the public under a licence Creative Commons Attribution licence.
Contact :