How to know the Hard disk and CPU temperatures in elementary OS

Knowing the hard disk and CPU temperatures is one of the best ways to determine how smooth your PC is performing. Hard disk temperatures play a vital role in determining the life of the hard disk. It is also equally important to check the CPU temperature as well, especially on older PCs and laptops to know if the cooling is efficient or not. If fan is not working or the air vent outlets are blocked, the temperatures could go high and damage the CPU. Let’s see how to get these temperatures fished out on the elementary OS.

elementary os

Add Canonical Partners Repository

First thing to do is enable the canonical partners repository.

Launch ‘Software Updater’ and wait for it to scan the updates.

Launch Software Updater

Launch Software Updater

Then click on ‘Settings’ to open the Software Updater settings.

Software Update Settings

Software Update Settings

In the software tab, check the box that says ‘Canonical Partners’ ‘Software packaged by Canonical for their partners’. You will be asked to enter the administrator password and then agree to reload so that it downloads the update from the just added new repository.

Turn ON Canonical Partners Repository Soruces

Turn ON Canonical Partners Repository Soruces

Find out Hard disk Temperature in elementary OS

Install hddtemp using the following apt-get command:

sudo apt-get install hddtemp

Now type the following command to get the hard disk temperature. Note that if you have SSD installed, there is a high chance that sensor is not available. SSDs don’t have moving parts, so manufacturer’s don’t install sensors on it. If you have a traditional hard disk, you will surely see the temperature in deg C.

sudo hddtemp /dev/sda

Find out CPU Temperature in elementary OS

Install lm sensors using apt-get command:

sudo apt-get install lm-sensors

Next enter this command for detecting the temperatures:

sudo sensors-detect

Start the kmod service using the following command. You will have to enter ‘Y’ several times.

sudo service kmod start


You should be able to see the temperature of CPU now.

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!


Please enter your comment!
Please enter your name here




Test drive linux online
Enter, a website that allows Linux users to test various distros online, without downloading the ISO or installing the distro. With, you can check a distro with no muss, no fuss.
Free up hard disk space ubuntu
Hard disk space can easily get filled up with cached package files, old kernels, and other obsolete files that occupy unwanted hard disk space. Here are top five best and safer ways to clean and free up hard disk space in Ubuntu. We show you Terminal and GUI way of cleaning up system.
Uninstall Programs in Ubuntu
Uninstallation of programs can be done by graphical way using the Ubuntu Software Center, and the Synaptic Package manager. Command-line way of doing it is also possible using apt-get and aptitude commands. We shall discuss each one of them in detail.