hddtemp - hot drives die early

hddtemp prints the temperature for each specified hard drive in degrees Celsius.  The hard drive must support S.M.A.R.T.  Just about all hard drives sold in the past 5 years do.


hddtemp device [,device2, ...]


hddtemp /dev/sda

or for all drives:

hddtemp $(for i in $(cat /proc/partitions | \
egrep sd[abcdefgh]$ | sed -e 's/^.*s/s/'); do \
echo -n "/dev/$i "; done)

or using multiple hddtemp calls:

for i in $(cat /proc/partitions | egrep sd[abcdefgh]$ | \
sed -e 's/^.*s/s/'); do hddtemp /dev/$i

As an added bonus, you can also get a bit of additional information from hddtemp beyond the drive temp(s). Many times you can get information about the dive such as the device node associated with each drive, the drive model number and manufacturor information. Here is an example of the output from one of my boxes showing the drive temps and additional model number information that you can get:

18:36 ecstasy:~> hdtemp
/dev/sda: ST3500630AS: 35°C
/dev/sdb: ST3500630AS: 39°C
/dev/sdc: ST3500630AS: 35°C


Heat is the arch enemy of hard drives. Increasing hard drive temperatures by 5°C has the same effect on reliability as switching from 10% to 100% drive workload. Each one-degree drop of HDD temperature is equivalent to a 10% increase of service life. Temperature readings should not exceed 47 degrees to insure maximum service life. If your temps do exceed 47 degrees, then consider changing the drive location within the case or adding a fan to provide additional air flow that will increase heat dissipation.

The optimum S.M.A.R.T.-reported temperature range of 36 °C to 47 °C. [see ref.] Manufacturer acceptable ranges are generally between 10 and 55.

"Failure Trends in a Large Disk Drive Population"[1] in 5th USENIX Conference on File and Storage Technologies (FAST 2007)[2]. USENIX Conference on File and Storage Technologies.