Linux HDD 온도 확인
sensors로 HDD 온도 안 보일 때 drivetemp 모듈 로드해서 해결
sensors hdd temperature
sensors 돌려도 HDD 온도 안 나옴.
sudo modprobe drivetemp
drivetemp 모듈 로드. 이러면 sensors에 HDD 온도 나옴.
영구 적용하려면:
echo drivetemp | sudo tee -a /etc/modules
재부팅해도 자동 로드됨.
smartctl로도 확인 가능.
디스크 이름 확인부터:
lsblk
sudo fdisk -l
확인 후:
sudo smartctl -A /dev/sd[x] | grep Temp
[x]는 디스크명 (a, b, c 등)
여기서 배울 것
- sensors로 HDD 온도 안 보일 때 drivetemp 모듈 로드
- modprobe로 모듈 임시 로드, tee로 영구 적용
- smartctl로도 HDD 온도 확인 가능
- 디스크명은 lsblk나 fdisk -l로 찾음
원본 파일 보기 (.claude/skills/tn-linux-hdd-temperature/SKILL.md)
---
name: Linux HDD 온도 확인
description: This skill should be used when the user asks to check the temperature of hard disk drives (HDDs) on a Linux system, or when `sensors` command does not initially show HDD temperatures and needs to be configured (e.g., by loading `drivetemp` module).
version: 1.0.0
source: /home/son/prj/resume/backup_notes_260317/notion/Tech Note/sensors hdd temperature 2efd7efd824b801cb37ce82ba74b2ff9.md
---
# sensors hdd temperature
before
```bash
son@son-x99:~$ sensors
nvme-pci-0600
Adapter: PCI adapter
Composite: +26.9°C (low = -273.1°C, high = +76.8°C)
(crit = +78.8°C)
Sensor 1: +26.9°C (low = -273.1°C, high = +65261.8°C)
Sensor 2: +29.9°C (low = -273.1°C, high = +65261.8°C)
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +24.0°C (high = +90.0°C, crit = +100.0°C)
Core 0: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 1: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 2: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 3: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 4: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 5: +21.0°C (high = +90.0°C, crit = +100.0°C)
Core 6: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 8: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 9: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 10: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 11: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 12: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 13: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 14: +19.0°C (high = +90.0°C, crit = +100.0°C)
```
to check drive temp
```bash
sudo modprobe drivetemp
```
after
```bash
son@son-x99:~$ sensors
drivetemp-scsi-34-0
Adapter: SCSI adapter
temp1: +29.0°C (low = +0.0°C, high = +65.0°C)
(crit low = -40.0°C, crit = +70.0°C)
(lowest = +25.0°C, highest = +29.0°C)
drivetemp-scsi-32-0
Adapter: SCSI adapter
temp1: +32.0°C (low = +0.0°C, high = +60.0°C)
(crit low = -40.0°C, crit = +70.0°C)
(lowest = +27.0°C, highest = +32.0°C)
drivetemp-scsi-2-0
Adapter: SCSI adapter
temp1: +31.0°C (low = +0.0°C, high = +60.0°C)
(crit low = -40.0°C, crit = +70.0°C)
(lowest = +27.0°C, highest = +32.0°C)
drivetemp-scsi-0-0
Adapter: SCSI adapter
temp1: +33.0°C (low = +0.0°C, high = +60.0°C)
(crit low = -40.0°C, crit = +70.0°C)
(lowest = +27.0°C, highest = +34.0°C)
nvme-pci-0600
Adapter: PCI adapter
Composite: +26.9°C (low = -273.1°C, high = +76.8°C)
(crit = +78.8°C)
Sensor 1: +26.9°C (low = -273.1°C, high = +65261.8°C)
Sensor 2: +29.9°C (low = -273.1°C, high = +65261.8°C)
drivetemp-scsi-35-0
Adapter: SCSI adapter
temp1: +30.0°C (low = +0.0°C, high = +65.0°C)
(crit low = -40.0°C, crit = +70.0°C)
(lowest = +25.0°C, highest = +30.0°C)
drivetemp-scsi-33-0
Adapter: SCSI adapter
temp1: +29.0°C (low = +0.0°C, high = +60.0°C)
(crit low = -41.0°C, crit = +85.0°C)
(lowest = +26.0°C, highest = +29.0°C)
drivetemp-scsi-3-0
Adapter: SCSI adapter
temp1: +29.0°C (low = +0.0°C, high = +60.0°C)
(crit low = -41.0°C, crit = +85.0°C)
(lowest = +27.0°C, highest = +29.0°C)
drivetemp-scsi-1-0
Adapter: SCSI adapter
temp1: +34.0°C (low = +0.0°C, high = +60.0°C)
(crit low = -40.0°C, crit = +70.0°C)
(lowest = +27.0°C, highest = +34.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +25.0°C (high = +90.0°C, crit = +100.0°C)
Core 0: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 1: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 2: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 3: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 4: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 5: +22.0°C (high = +90.0°C, crit = +100.0°C)
Core 6: +21.0°C (high = +90.0°C, crit = +100.0°C)
Core 8: +21.0°C (high = +90.0°C, crit = +100.0°C)
Core 9: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 10: +20.0°C (high = +90.0°C, crit = +100.0°C)
Core 11: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 12: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 13: +19.0°C (high = +90.0°C, crit = +100.0°C)
Core 14: +19.0°C (high = +90.0°C, crit = +100.0°C)
```
permanant adaption
```bash
echo drivetemp | sudo tee -a /etc/modules
```
or smartctl
```bash
#check disks
lsblk
sudo fdisk -l
```
and check it
```bash
sudo smartctl -A /dev/sd* | grep Temp
```