Philippe Simard

Menu Principal
Home
Liens externes
Photos
Ressources
Météo
Password Generator
Sujets
Musique
Bricolage
Informatique
SherBroue
Related Items



Accueil Informatique HOWTO Monitor your hard disk(s) with smartmontools
HOWTO Monitor your hard disk(s) with smartmontools PDF Print E-mail
Written by Philippe Simard   
Monday, 29 September 2008 12:13
Article Index
HOWTO Monitor your hard disk(s) with smartmontools
Using smartctl
Automatically monitor your drive(s)
All Pages

Introduction

Aim of this howto is to exploit SMART technology (nowadays every hard disk has got it) to check if it is ok or not. SMART-enabled hard disks are able to continuously monitor their own health and alert the user if any anomaly is detected, and most of them are also able to carry out specific tests for better analysis.

Warning: An important thing before going on: always backup your important data, regardless of what SMART says! Even though SMART is very reliable, sometimes it may be wrong; also, hard disks often die in an unexpected way and even if SMART has told you something was wrong you may not have enough time to put your data in a safe place.

Installation Procedure

First of all make sure SMART is enabled in the BIOS. For example, in my BIOS I have this:

Code: BIOS
S.M.A.R.T. for Hard Disk: Enabled

Some BIOSes don't have the option, and report S.M.A.R.T. as disabled, but don't worry, smartctl can enable it (see below). Carefully read the SMART instructions for your motherboard. Sometimes this option maybe intentionally hidden, as shown in this example.

Now let's install the smartmontools package:

# emerge -av smartmontools

Finally, you have to check if your hard disk(s) support SMART:

# smartctl -i /dev/hda

For SATA drives:

# smartctl -i -d ata /dev/sda

To enable SMART on IDE drives:

# smartctl -s on /dev/hda

To enable SMART on SATA drives:

# smartctl -s on -d ata /dev/sda
 


 


(C) 2008 philippesimard.com. Tous droits réservés. Powered by Webboréal hébergement Web.
Your IP: 193.47.80.45

Valid XHTML 1.0 Transitional Valid CSS!