Measuring HDD Temp in Ubuntu

Silencing hard drives, optical drives and other storage devices

Moderators: NeilBlanchard, Ralf Hutter, sthayashi, Lawrence Lee

Post Reply
Jeff Cutsinger
Posts: 48
Joined: Wed May 23, 2007 9:48 am

Measuring HDD Temp in Ubuntu

Post by Jeff Cutsinger » Fri Nov 02, 2007 5:38 am

I've been doing this for a while now and I thought some of you might be interested. It's really simple. Just go to the command line and type "sudo apt-get install hddtemp". It'll ask if you want it to be run as a daemon, but I declined-- choose however you want, it doesn't matter. Now all you need to do is run "sudo hddtemp /dev/sda" (or /dev/hda, /dev/hdb, /dev/sdb, etc...) and it'll give you the hard drive's temperature. I've even run it in a loop dumping the result into a csv file so I could import the result into OpenOffice and get a chart.

I've managed to keep my data drive at around 30 degrees celsius. :D

Posts: 82
Joined: Wed Oct 29, 2003 5:55 pm

Post by shadestalker » Fri Nov 02, 2007 8:23 am

I'm running debian etch, works great there too. Nice tip, hddtemp is more simple and direct than dealing with smartmontools just for temps.

Posts: 316
Joined: Thu Aug 10, 2006 11:07 am

Post by nightmorph » Fri Nov 02, 2007 1:26 pm


Post Reply