It is important to monitor hard drive temperature to ensure it's within the optimal operating temperature to ensure it's longevity.
Harddrive or harddisk normally has built in temperature sensor. Thermal information of the hard drive is managed by the harddrive's built-in
S.M.A.R.T. (Self-Monitoring, Analysis, and Reporting Technology) system.
Harddisk temperature information can be viewed using
hddtemp utility at the terminal in
$ sudo apt update && sudo apt install --assume-yes hddtemp
$ sudo systemctl start hddtemp
hddtempservice to automatically start during system boot.
$ sudo systemctl enable hddtemp hddtemp.service is not a native service, redirecting to systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable hddtemp
$ lsblk | grep disk sda 8:0 0 465.8G 0 disk
$ sudo hddtemp /dev/sda /dev/sda: TOSHIBA MQ01ACF050: 39°C
Comment anonymously. Login not required.