Maintaining your hard drive within its optimal temperature range is crucial for extending its lifespan. By keeping an eye on its temperature, you can ensure the longevity of your hard drive.
Modern hard drives, including both traditional magnetic and Solid State Drives (SSDs), usually feature built-in temperature sensors. These sensors are managed by the hard drive's S.M.A.R.T. (Self-Monitoring, Analysis, and Reporting Technology) system, which allows for temperature monitoring.
In Linux, you can use the hddtemp command-line utility to monitor your hard drive's temperature.
Steps to monitor harddrive temperature in Linux:
- Open a terminal application.
- Install the hddtemp utility.
$ sudo apt update && sudo apt install --assume-yes hddtemp
- Start the hddtemp service.
$ sudo systemctl start hddtemp
- Configure the 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
- Identify available disk drives.
$ lsblk | grep disk sda 8:0 0 465.8G 0 disk
- Monitor the temperature of a chosen disk drive.
$ sudo hddtemp /dev/sda /dev/sda: TOSHIBA MQ01ACF050: 39°C
Author: Mohd
Shakir Zakaria
Mohd Shakir Zakaria is an experienced cloud architect with a strong development and open-source advocacy background. He boasts multiple certifications in AWS, Red Hat, VMware, ITIL, and Linux, underscoring his expertise in cloud architecture and system administration.
Mohd Shakir Zakaria is an experienced cloud architect with a strong development and open-source advocacy background. He boasts multiple certifications in AWS, Red Hat, VMware, ITIL, and Linux, underscoring his expertise in cloud architecture and system administration.
Discuss the article:
Comment anonymously. Login not required.