← 전체로 돌아가기
스킬 linux

Linux HDD 온도 확인

`sensors`로 HDD 온도 안 보일 때 `drivetemp` 모듈 로드 또는 `smartctl` 사용법.

linuxhddtemperaturesensorssmartctldrivetempmodprobe

sensors 명령으로 HDD 온도가 안 보일 때가 많지? drivetemp 모듈을 로드하거나 smartctl을 활용해서 HDD 온도를 쉽게 확인할 수 있어.

  • drivetemp 모듈 사용
    • 일시적 로드: bash sudo modprobe drivetemp
    • 영구 적용: /etc/modules에 추가 bash echo drivetemp | sudo tee -a /etc/modules
    • 그 후 sensors로 확인하면 HDD 온도도 보일 거야.
  • smartctl 사용
    • 디스크 목록 확인: bash lsblk
    • 개별 디스크 온도 확인 (/dev/sdX는 실제 디스크명): bash sudo smartctl -A /dev/sdX | grep Temp

여기서 배울 것

  1. `sensors`가 모든 장치 온도를 보여주지 않을 수 있음.
  2. `drivetemp` 커널 모듈로 HDD 온도 센서 활성화 가능.
  3. `modprobe`로 모듈을 일시적으로 로드하고, `/etc/modules`로 영구 적용 가능.
  4. `smartctl`은 HDD/SSD의 S.M.A.R.T. 정보를 확인하는 강력한 도구임.
원본 파일 보기 (.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
```