Harddrive or harddisk normally has built in temperature sensor and the information could be viewed in Linux using the hddtemp utility via the 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 Linux.

Tutorial video:

View harddrive temperature in Linux:

  1. Launch a terminal application.
  2. Install hddtemp utility.
    $ sudo apt update && sudo apt install --assume-yes hddtemp 
  3. Start hddtemp service.
    $ sudo systemctl start hddtemp
  4. Configure hddtemp service 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
  5. View available disk drives.
    $ lsblk | grep disk
    sda      8:0    0 465.8G  0 disk
  6. View temperature of selected disk drive.
    $ sudo hddtemp /dev/sda
    /dev/sda: TOSHIBA MQ01ACF050: 39°C
Discuss the article:

Share your thoughts, suggest corrections or just say Hi. Login not required.

Share!