Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
This may already be installed in your system. If not, as '''root''' user do:
{{Code| sudo apt-get install smartmontools}}
smartmontools comes with two programs; smartctl which is meant for interactive use and smartd which continuously monitors S.M.A.R.T.
You can do a quick test to see if it recognizes your drives (replace /dev/sda by the drive(s) present on your system):
{{Code| sudo smartctl -i /dev/sda}}
To setup smartd to monitor your system automatically, edit the file '''/etc/smartd.conf''' and check for a line that begins with ''DEVICESCAN''. Comment it out by adding a ‘#’ to the beginning of the line something like this:
{{Text|Text= #DEVICESCAN -d removable -n standby -m root -M exec /usr/share/smartmontools/smartd-runner}}
Add the following line to /etc/smartd.conf:
{{Text|Text= /dev/sda -n standby -a -I 194 -W 6,45,55 -R 5 -M daily -M test -m root}}
This an example from the config file:
Start the daemon with:
{{Code| sudo service smartd start}}
'''NOTE:''' You may receive a test email each day or so, one for each drive you identify to be monitored.
12,424

edits