Skip to content

Debian Wheezy (Raspberry) Smartmontools 5.42 Installation

Eric Zarnosky edited this page Jun 25, 2015 · 1 revision

The stable Debian Wheezy repo only has version 5.41 of Smartmontools.

Updating to a newer version (currently Smartmontools 6.3) can be completed in 4 steps:

The following commands must be executed by a root user

NOTE: sudo might need to be used at the beginning of each command

(simply copy and paste into your favorite ssh terminal)

  1. Add the backport repo (this creates a file that can be deleted later if desired, but not required)
echo "deb http://http.debian.net/debian wheezy-backports main" > /etc/apt/sources.list.d/wheezy-backports.list
  1. Add a preferences file so that the backport server is only ever used when it specified in the command line (this creates a file that can be deleted later if desired, but not required)
echo "Package: *\nPin: release n=wheezy-backports\nPin-Priority: -1" > /etc/apt/preferences.d/wheezy-backports.pref
  1. Update the computer's repo list
apt-get update
  1. Install smartmontools ('-t wheezy-backports' specifies to use the backports version, *same label as in the preferences file we created)
apt-get install -t wheezy-backports smartmontools -y

After that, estart the HTPC Manager daemon and enable the S.M.A.R.T. option in the Computer Stats setting.

Provided that smartctl in the path of the user the HTPC Manager daemon is configured to run as information will be available in the Computers Stats - if there are any harddrives supporting S.M.A.R.T.

(See: http://www.troubleshooters.com/linux/prepostpath.htm for directions on how to modify a linux path setting)