You are not logged in or registered. Please login or register to use the full functionality of this board...



Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using smartmontools / smartctl to test for a faulty drive in Linux
11-08-2011, 12:54 PM (This post was last modified: 01-24-2013 10:10 AM by Unkoerl.)
Post: #1
Using smartmontools / smartctl to test for a faulty drive in Linux
Smartmontools is a utility that allows to monitor the status of your storage devices by using the S.M.A.R.T (Self-Monitoring, Analysis, and Reporting Technology) monitoring system.

In this guide, we will see how to install Smartmontools on Debian

run this command to install Smartmontools:

sudo apt-get install smartmontools

yum install smartmontools


After you finish the installation of Smartmontools, you have to enable S.M.A.R.T on your hard drive. Therefore, launch the terminal as root, then issue this command:

smartctl --saveauto=on --smart=on --offlineauto=on /dev/sda

To launch a quick check of your hard drive status, run simply this command:

smartctl -t short /dev/sda

To launch a deep check of your hard drive status, run this command:

smartctl -t long /dev/sda

To view results of the test, run this command:

smartctl -l selftest /dev/sda

You can also issue this command to view information about your hard disk:

smartctl -a /dev/sda
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)