9/17/2023 0 Comments Linux check temperatureSo, if we want to change it to Celsius, we must divide it by 1,000. Note that the temperature is reported in milli-degrees Celsius. $ cat /sys/class/hwmon/hwmon4/temp1_input The following instructions works on CentOS/RHEL version 7 and 8. This tool provides some essential command line utilities for monitoring the hardware health of Linux systems containing hardware health monitoring hardware including CPU and fan speed. In this case, to see the drive model and the current temperature, we must print the content of /sys/class/hwmon/ hwmon4/device/model and /sys/class/hwmon/ hwmon4/temp1_input directories: $ cat /sys/class/hwmon/hwmon4/device/model You need to install Linux hardware monitoring tool called lmsensor. To find out which directory contains that, we can use the grep command with the -l option: $ grep -l "drivetemp" /sys/class/hwmon/hwmon*/name This is accomplished by pressing the sensors command in the terminal window. If the GPU temperature is desired, use the LmSensors command. This is accomplished by opening a terminal window and selecting the sensors option. Or, if we’re only interested in the first three devices that start with /dev/sd, we could use /dev/sd as the device name parameter.Īs we can see, only one of them belongs to drive temperature. Users can use the Lm-Sensors command to measure the CPU temperature in Arch Linux. For example, we could use a ? wildcard to check all drives whose names are /dev/sd followed by a single character: $ sudo hddtemp /dev/sd? If we want the temperature of all or multiple drives, we can use wildcards in the device name. dev/sdb: General USB Flash Disk: S.M.A.R.T. For example, most USB flash drives don’t support SMART: $ sudo hddtemp /dev/sdb Notice that some drives may not support SMART at all, or their SMART information may not contain temperature. So, we must run it with sudo or as a root user: $ sudo hddtemp /dev/sda Like smartctl, hddtemp needs root privileges. We just pass the device address as an argument and it prints the temperature in Celcius. Hddtemp is a special command for reading drive temperature.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |