Installing SMART tools on Ubuntu

I eventually got round to installing SMART tools on my home Linux server, so now if one of the hard disks decides to start playing up or fails, I should get a nice little e-mail telling me there’s a problem. I’ve already set up e-mail on my server so I won’t go into how to set it up here, you can read all about it yourself on the Official Ubuntu Documentation pages.

First thing you need to do is install smarttools

Before configuring your hard disk(s) for SMART monitoring, make sure your hard disk is SMART capable:

You should get output similar to this

In the above output the lines:

Indicates that it is SMART capable and it is enabled.

At this point you need to read the manual page and decide what you want smartctl to do for you, I initially set mine up to do a long test and a short test and upon finding any problems to e-mail me.

Below is what was in my /etc/smartd.conf file, I used this to test smartd and ensure that the e-mail part was working correctly.

After I tested, I removed the “-M test part below.

Below is the e-mail I received in my inbox from the smartd daemon.

After removing the “-M test” from /etc/smartd.conf, you would only get this e-mail if there was a genuine problem. 🙂

References:
Clarks Connect Website
Nixcraft Website
Linux Journal

2 thoughts on “Installing SMART tools on Ubuntu

  1. Thanks for the info! You made a spelling error however, “sudo apt-get installsmartmontools”… There should be a space after “install” 🙂

Leave a Reply