是否有监测UbuntuServer22.04中HDD温度的工具?我知道有像hddtemp
、smartmontools
、lsm-sensors
和inxi
这样的工具,但是没有一个显示我的硬盘温度。
用sudo apt-get install hddtemp
安装它表明它在我的Ubuntu版本中是不可用的。
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package hddtemp is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'hddtemp' has no installation candidate
此软件包在我的版本中可用,但不输出我的hdd温度。我的假设是某些传感器需要配置才能得到hddtemp。
我所做的是:
inxi
:sudo apt-get install inxi
lsm-sensors
:sudo sensors-detect
sudo inxi -xD
输出:
Local Storage: total: 11.83 TiB used: 17.17 GiB (0.1%)
ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB
ID-2: /dev/sdb vendor: Western Digital model: WD6NPURX-64JC5Y0 size: 5.46 TiB
ID-3: /dev/sdc vendor: Western Digital model: WD6NPURX-64JC5Y0 size: 5.46 TiB
即使运行smartmontools
,如图所示,这里也不提供hdd。
我也在这里做过研究,但没有结果。
示例
发布于 2022-09-07 19:56:07
用于GUI
sudo apt install gsmartcontrol
或在终点站
sudo smartctl -A /dev/sd(your drive letter) | grep -i temperature
这将向您显示出SDD/HDD的正确温度。
发布于 2022-09-05 16:03:08
要读取Ubuntu22.04中的HDD温度,您需要使用hwmon
,在加载drivetemp
模块时可以使用sensors
访问它。
sudo apt install lm-sensors
sudo modprobe drivetemp
sensors
要使drivetemp
在每次引导时自动加载,将其添加到/etc/模块,如下所示:
echo drivetemp | sudo tee -a /etc/modules
https://askubuntu.com/questions/1426482
复制相似问题