Wednesday, April 16, 2008

S.M.A.R.T HDD Monitoring Commands

Drive: WDC WD1600JS-00NCB1
OS: Ubuntu 6.10 (Edgy Eft)

To install:
apt-get install smartmontools

To activate SMART on the HDD:
smartctl -s on -T permissive -d ata /dev/sda

Print all SMART information about the disk:
smartctl -a -d ata /dev/sda

Run a long test on /dev/sda:
smartctl -t long -d ata /dev/sda

Output:

smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 64 minutes for test to complete.
Test will complete after Thu Apr 17 09:55:21 2008

Use smartctl -X to abort test.

No comments: