Test your hard drive using SMART
Friday, May 26, 2006
This is a very useful technique that a fellow linux user showed me. It involves SMART, or Self-Monitoring, Analysis and Reporting Technology. SMART is controlled through smartctl. To read the full SMART/ smartcld manual type the following at a terminal:
man smartctl
Then, to let SMART perform a short test of your hard drive, type:
/usr/sbin/smartctl -t short /dev/hda
The last part of this command (hda)signifies which hard drive is to be tested. The test takes a few minutes, so be patient. After the test is finished, view the results by typing:
/usr/sbin/smartctl -a /dev/hda
If all goes well, you will see a message like this:
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 325 -
This message confims that the test ran well, and your hard drive is fine, and if it detects any errors, you will know what you are up against.
Hope this helps!
man smartctl
Then, to let SMART perform a short test of your hard drive, type:
/usr/sbin/smartctl -t short /dev/hda
The last part of this command (hda)signifies which hard drive is to be tested. The test takes a few minutes, so be patient. After the test is finished, view the results by typing:
/usr/sbin/smartctl -a /dev/hda
If all goes well, you will see a message like this:
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 325 -
This message confims that the test ran well, and your hard drive is fine, and if it detects any errors, you will know what you are up against.
Hope this helps!