An alternative way to find out the HDD temperature in linux
Is there an alternative way to find out the HDD temperature without using utilities like hddtemp
? For example, to find out the CPU load, you can call top
, and you can read the file /proc/cpuinfo
. By analogy, I want to "read" the HDD temperature from somewhere, if possible.
3
3 answers
Uh, directly ask S. M. A. R. T for a disk?
194 Temperature_Celsius 0x0022 124 100 000 Old_age Always - 38
Using, smartctl, for example smartctl -a /dev/sda
...
2
Author: nobody, 2016-11-11 08:29:36
Use lm_sensor There you can call utilities and use the library in your programs.
1
Author: Sergey, 2016-11-11 08:23:43
Not allowed. To read the S. M. A. R. T. disk, you will need one of the additional utilities (smartctl
or hddtemp
). The S. M. A. R. T. core does not read.
0
Author: Slipeer, 2016-11-11 09:10:58