ついでに HDD の温度

せっかくだから? HDD の温度も確認してみた。smartmontoolsってので一発 OK らしい。

sudo apt-get install smartmontools

ん? でもこんな事言われてる…

Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools

どうやら、最初の状態だと自動的には起動しないらしい。/etc/default/smartmontools の次の行をコメントアウトするとシステム起動時に自動的に起動するようになるらしい。

# uncomment to start smartd on system startup
start_smartd=yes

オプションも設定できる。

# uncomment to pass additional options to smartd on startup
smartd_opts="--interval=1800"

で、温度を見てみた結果は…

paraches@debian:~$ sudo smartctl -a /dev/hda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     IBM Deskstar 25GP and 22GXP family
Device Model:     IBM-DJNA-351520
Serial Number:    G80GLW49886
Firmware Version: J56OA30K
User Capacity:    15,377,080,320 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   4
ATA Standard is:  ATA/ATAPI-4 T13 1153D revision 17
Local Time is:    Sat Dec 29 17:56:28 2007 JST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Total time to complete Offline 
data collection: 		 (1975) seconds.
Offline data collection
capabilities: 			 (0x0b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					No Self-test supported.
					No Conveyance Self-test supported.
					No Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x00)	Error logging NOT supported.
					No General Purpose Logging support.

SMART Attributes Data Structure revision number: 5
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   060    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   130   100   024    Pre-fail  Always       -       261 (Average 290)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       151
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   020    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       24
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       151
197 Current_Pending_Sector  0x0020   100   100   000    Old_age   Offline      -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
230 Head_Amplitude          0x0012   100   100   000    Old_age   Always       -       281470680629248
231 Temperature_Celsius     0x0002   203   100   000    Old_age   Always       -       27

Warning: device does not support Error Logging
Error SMART Error Log Read failed: 入力/出力エラーです
Smartctl: SMART Error Log Read Failed
Warning: device does not support Self Test Logging
Error SMART Error Self-Test Log Read failed: 入力/出力エラーです
Smartctl: SMART Self Test Log Read Failed
Device does not support Selective Self Tests/Logging
paraches@debian:~$ 

ちょっと付けてみた古い HDD だけど、27℃??? そんなに冷たいの?
それにしても、あれこれたくさん情報出てきて面白いな。