WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: hddtemp  (Read 2628 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14804
hddtemp
« on: May 18, 2009, 10:42:26 AM »
hddtemp extensions posted:
Code: [Select]
Title:          hddtemp.tce
Description:    hddtemp
Version:        0.3-beta15
Author:         see list of sites below
Original-site:  see list of sites below
Copying-policy: see list of sites below
Size: 17KB
Extension_by:   juanito
Comments:       hddtemp utility to read hd temperature from smart enabled hd..
                ..will only work with modern hd and/or scsi hd
                ----------
                howto:
                $ sudo hddtemp /dev/hda
                $ sudo hddtemp -D /dev/hda
                ----------
                This extension contains:
                hddtemp-0.3-beta15 - GPLv1 - http://download.savannah.nongnu.org/releases/hddtemp/hddtemp-0.3-beta15.tar.bz2
                hddtemp.db - http://www.guzu.net/linux/hddtemp.db
Change-log:     First version
Current:        2009/05/18

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: hddtemp
« Reply #1 on: May 18, 2009, 11:22:48 AM »
The SMART temp readings often can't be trusted, about half of the hd's I've seen claim to have the current temperature of 253 C :P
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14804
Re: hddtemp
« Reply #2 on: May 18, 2009, 11:28:06 AM »
I got 37degC, which seems reasonable.

On the old desktop, despite the scsi hd's being SMART enabled, they didn't want to share the temperature with me.

..also compiled smartmontools, working on the smartmontools gui  :)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14804
Re: hddtemp
« Reply #3 on: May 19, 2009, 12:18:29 AM »
The SMART temp readings often can't be trusted, about half of the hd's I've seen claim to have the current temperature of 253 C :P

BTW, you can get all of the available SMART info for your hd and, having chosen the temperature output, you can modify the hddtemp.db like this:
Code: [Select]
$ sudo hddtemp -D /dev/hda

================= hddtemp 0.3-beta15 ==================
Model: SAMSUNG HS122JC

field(1)         = 0    (0x00)
field(3)         = 195  (0xc3)
field(4)         = 36   (0x24)
field(5)         = 0    (0x00)
field(9)         = 217  (0xd9)
field(12)        = 204  (0xcc)
field(191)       = 147  (0x93)
field(192)       = 52   (0x34)
field(194)       = 37   (0x25)
field(196)       = 100  (0x64)
field(197)       = 169  (0xa9)
field(198)       = 106  (0x6a)
field(199)       = 59   (0x3b)
field(200)       = 26   (0x1a)

If one of the field value seems to match the temperature, be sure to read
the hddtemp man page before sending a report (section REPORT). Thanks.

Add following to hddtemp.db

"SAMSUNG HS122JC" 194  C "Samsung D430"

$ sudo hddtemp /dev/hda   
/dev/hda: SAMSUNG HS122JC: 37

Report bugs or new drives to <hddtemp@guzu.net>