Thursday, June 9, 2011

How to use smartctl to probe SATA disk?

■ Requirement : Use of smartctl to probe SATA
■ OS Environment : Linux[RHEL, Centos]
■ Application: smartctl
■ Resolution  : 

        To check hardware on linux(HW diagnosis tool): smartctl tool can't properly read SMART parameters from SATA devices. However, recent development of libata package makes it easy to read the data. You should use "ata" option while you probe the hardware. So, exact command will be

$ smartctl -d ata -A /dev/sdb 

To enable SMART on the SATA device you should use the following command :

$ smartctl -s on -d ata /dev/sdb

Then enable SMART :

$smartctl -s on -d ata /dev/sdb

Now run overall-health self-assessment test:

$ smartctl -d ata -H /dev/sdb

You can read more data from hard disk by typing following command:

$ smartctl -d ata -a /dev/sdb

No comments:

Post a Comment