Here’s how to monitor HDD temperature from Linux terminal in Linux Mint / Ubuntu:
1. Issue the following command at the terminal to install hddtemp -
sudo apt-get install hddtemp
2. Select ‘<Yes>’.
3. Leave the interface IP at 127.0.0.1 and select ‘<Ok>’.
4. Leave the port at 7634 and select ‘<Ok>’. This will complete the installation of hddtemp.
5. Now to find out / monitor temperature of a HDD, issue the following command at the terminal -
sudo hddtemp /dev/hdx —> Replace x with suitable variable like a,b,c.. for you HDD
In our case to find out / monitor temperature of the first HDD of the system, we will need to issue the following command -
sudo hddtemp /dev/sda
You won’t be able to see HDD temperature inside a virtual machine. Hence, here’s a sample output of the command from a physical machine where the command was run by a root user -