in

LinuxLinux

How To View Your Hard Disk Temperature on Linux!

View Hard disk temperature on Linux

HDD Temperature Linux

H

DD Temperature in Linux: Is it possible to find the temperature of the HDD in Linux? The answer is Yes. In this article, we provided different methods to find the HDD temperature and HDD complete details. Increase in the HDD temperature may affect your system exponentially. High HDD temperature causes slow processing, system freeze & may lead to Hardware failure. I personally suggest you use the below commands and monitor your HDD temperature always.

Jump To:

Find HDD Temperature using hddtemp Command:

The hddtemp command in Linux. Follow the instruction to find the HDD Temperature of your Linux PC.\

  • Open the Terminal
  • Install the hddtemp utility using the below command
$sudo apt-get install hddtemp
hddtemp Installation Command
hddtemp Installation Command
  • Enter the password and execute the installation process
  • Wait for a few seconds and the installation process will finish.
  • Now you need to use the below command to find the HDD temperature of your Linux
$sudo hddtemp /dev/sda

The output of the above command shows your HDD temperature.

HDDtemp Command usage
HDDtemp Command usage

From the above image, The HDDtemp command provides the HDD manufacturer name and its current temperature in Celcius. In this way, you can monitor your HDD temperature. The easiest and fastest way to check your HDD temperature of Linux PC.

Find HDD details using Smart Mon Tools Package:

The hddtemp command, provides only the HDD manufacturer name and HDD temperature. If you want to know more about your HDD that installed in your Linux PC, then Smart Mon Tools will satisfy your requirement. Follow the instruction below to install this Smart Mon Tools package and use it on your Linux PC to find the details about your HDD.

  • Open the Terminal
  • Paste the following command to install the Smartmon tools packages.
$sudo apt-get install smartmontools
Smartmontools packages installation
Smartmontools packages installation

Enter your system password and execute the installation process. Once it got completed you can access the smartmon tools packages using the following command.

$sudo smartctl -a /dev/sda

The output of the above command is,

Check this too  Rider Ubuntu: Install Rider Ubuntu 18.04 LTS and 19.04[Latest]
Output
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-5.0.0-21-generic] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi/HGST Travelstar Z5K500
Device Model:     APPLE HDD HTS545050A7E362
Serial Number:    TNS519GY2SVJSH
LU WWN Device Id: 5 000cca 842e7072c
Firmware Version: GG2AB990
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sat Aug  3 20:21:14 2019 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(   45) seconds.
Offline data collection
capabilities: 			 (0x5b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 107) minutes.
SCT capabilities: 	       (0x003d)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   062    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   212   212   033    Pre-fail  Always       -       1
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       1180
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   093   093   000    Old_age   Always       -       3502
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       1180
160 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   099   099   000    Old_age   Always       -       203
193 Load_Cycle_Count        0x0012   098   098   000    Old_age   Always       -       23638
194 Temperature_Celsius     0x0002   142   142   000    Old_age   Always       -       42 (Min/Max 19/48)
195 Hardware_ECC_Recovered  0x000a   100   100   000    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0
254 Free_Fall_Sensor        0x0032   100   100   000    Old_age   Always       -       34

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

From the above output, you will come to know the complete details of your HDD installed in your PC. In the ID number 194, provides the current temperature of your HDD. Your HDD should be maintained in between the 19 degrees to 48 degrees Celcius.

Check this too  VSCodium Ubuntu- Install VSCodium on Linux Ubuntu 18.04/ 19.04 & More

The list of details of your HDD provided by Smart Mon Tools Packages:

  • Model Family
  • Device Model
  • Serial Number
  • LU WWN Device Id
  • Firmware Version
  • User Capacity in bytes
  • Sector Sizes
  • Rotation Rate in rpm
  • Form Factor: 2.5 inches
  • The device is: In smartctl database or anything else
  • ATA Version
  • SATA Version
  • Local Time
  • SMART support is available or not.

Verdict:

That’s it. The above tutorial will help you find the HDD details which includes temperature, manufacturer, device model, serial number, rotation rate in rpm and many more details. Maintain your HDD temperature between the 19 degrees to 48 degrees. If your HDD exceed 48 degrees then kindly turn off your pc to cool it down. If you have any queries in this topic and then feel free to comment us below.

Article Explnation
  • Content Explanation
  • Commands Provided
  • Images Explanation
  • Alternate Methods
4.8

Summary

For more articles, Kindly visit our HomePage

Leave a Reply

Your email address will not be published. Required fields are marked *

Written by Rachel

I'm Rachel, From Arizona. Am playing the "Content Management" Role in Tec Robust. I started working in TR from Jan 2019. Big Marvel Fan.

Contact me:
tecrobust [@] gmail.com
Sub: Message to Rachel

Plex Media Server Linux Ubuntu

Plex Media Server Ubuntu: How To Install Plex Media Server on Ubuntu 18.04 LTS &19.04

Ubuntu Cleaner

How to Install Ubuntu Cleaner in Ubuntu Linux Unity 18.04,16.04 & 14.04