Tag Archives: hddtemp

See CPU and harddrive temperature from the command line in Ubuntu

Install lm-sensors and then configure it. You’ll be asked to try different ways to interface with the hardware that interfaces with the temperature sensors.

sudo apt-get install lm-sensors
sudo sensors-detect
sudo service module-init-tools start

When finished run this to see the CPU temperatures:


And you’ll see something like this:

Adapter: Virtual device
temp1:        +41.0°C  (crit = +110.0°C)

Adapter: ISA adapter
Core 0:       +33.0°C  (high = +85.0°C, crit = +85.0°C)
Core 1:       +35.0°C  (high = +85.0°C, crit = +85.0°C)

To see the temperature of the hard drives:

sudo apt-get install hddtemp
sudo hddtemp /dev/sda

You’ll see something like this:

/dev/sda: HTS541060G9SA00: 38°C

Ref: http://askubuntu.com/questions/15832/how-do-i-get-the-cpu-temperature