Linux/hddtemp

hddtemp
hddtemp is a tool that gives you the temperature of your hard drive by reading S.M.A.R.T. information.

"'hddtemp is a small utility that gives you the temperature of your hard drive by reading S.M.A.R.T. informations (for drives that support this feature). Note: only recent hard drives have a temperature sensor.'"

yum install hddtemp

Or if you system does not have the package (ie. CentOS5):

cd /usr/src wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp-0.3-beta15.tar.bz2 tar -jxvf hddtemp-0.3-beta15.tar.bz2 cd hddtemp-0.3-beta15
 * 1) hddtemp site: http://www.guzu.net/linux/hddtemp.php
 * 1) READ 'INSTALL'

INSTALLATION ============ Run ./configure (see --help for options), then just type 'make' and don't forget to get the last hddtemp.db file on the site : $ wget http://www.guzu.net/linux/hddtemp.db By default, the hddtemp.db will we searched in /usr/share/misc directory but you can change this at compilation time with the --with-db-path option: $ ./configure --with-db-path=/etc/hddtemp.db

yum install gcc ./configure make make install cd /usr/share/misc wget http://www.guzu.net/linux/hddtemp.db
 * 1) wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db

/usr/local/sbin/hddtemp /dev/hda /dev/hda: HDS728080PLAT20: 37°C