3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

LinuxでHDDの温度を計る

Last updated at Posted at 2019-11-26

#はじめに
ubuntuでcpuの温度を取得する方法を調べていたらhddの温度も
取得できるらしいことを知った

環境は Ubuntu18.0.4だがCentOS系や他ディストリも基本的にやり方は同じ

#hddtempを使う

$ apt install hddtemp
(省略)
$ hddtemp /dev/sda
/dev/sda: HGST HTS545025A7E380: 35°C

hddtemp の引数でドライブを指定。*ドライブを指定しないと使えない
/dev/以下は環境により読み替えが必要。

#inxiを使う

$ apt install inxi
(省略)
$ inxi -xD
Drives:    HDD Total Size: 250.1GB (16.8% used)
           ID-1: /dev/sda model: HGST_HTS545025A7 size: 250.1GB temp: 35C

#psensorを使う(GUI)
これはCPUの温度計測でつかったものと同じやつ

$ apt install psensor
(省略)
$ psensor

Screenshot from 2019-11-26 18-55-20.png

#参考にしたサイト
https://linuxconfig.org/obtain-hard-drive-temperature-information-using-linux
https://www.2daygeek.com/view-check-cpu-hard-disk-temperature-linux/

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?