Linux, Unix, BSD, and Cywgin-on-Windows users can use the excellent smartmontools package, which includes the smartctl and smartd commands, for monitoring and controlling PATA, SATA, and SCSI hard disks. smartmontools works on drives that have the Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T.) system built into them. With smartmontools, you can test drive health and set it up to monitor drives so early warnings of possible drive failures are issued.
Got S.M.A.R.T. drives? Consider adding smartmontools to test and monitor drive health as well as issue early warnings of possible failures.
S.M.A.R.T. is usually not enabled by default. There are two ways to turn it on: via the BIOS options in many PCs or with the smartctl command. But first, see if it’s supported:
|
|---|
Leave off -d ata for PATA drives. This command enables S.M.A.R.T.:
|
|---|
Now, run a quick health check:
|
|---|
This is good news. One more quick check — read the drive’s error log:
|
|---|
If there are no errors, or just a few old errors, it’s probably OK, assuming you are backing up regularly. If the drive fails the health test and shows many errors, the disk is doomed.
You can also run more extensive as well as set it up for continual monitoring. man smartctl and Monitoring Hard Disks with SMART tell all.