<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d23884446\x26blogName\x3dJust+Another+Tech+Blog\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://justanothertechblog.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://justanothertechblog.blogspot.com/\x26vt\x3d-484221019928432923', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>

Just Another Tech Blog

Anything and everything having to do with technology, computers, science, and most of all... Linux! The documentation of my Linux endeavor.



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!
posted by linnerd40, Friday, May 26, 2006


0 Comments:

Add a comment