Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 162458

Summary: hddtemp does not detect my drives sensor
Product: [Fedora] Fedora Reporter: drago01
Component: hddtempAssignee: Ville Skyttä <scop>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 4Keywords: MoveUpstream
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-27 07:14:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description drago01 2005-07-05 06:52:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de-DE; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
I have a hitachi desktar 250GB SATA HDD wich have a winbond sensors (windows displays it).
But when I try to use hddtemp to see the temp I get:
/dev/sda: ATA HDS722525VLSA80:  known drive, but it doesn't have a temperature sensor.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. try to see the temp of /dev/sda

Actual Results:  /dev/sda: ATA HDS722525VLSA80:  known drive, but it doesn't have a temperature sensor.

Expected Results:  temp should be displayed

Additional info:

Comment 1 Michael Schwendt 2005-07-05 12:09:19 UTC
Please attach the output of " smartctl -A /dev/sda " as superuser root.

Comment 2 Michael Schwendt 2005-07-05 12:28:29 UTC
Also interesting (since the database file lists the drive as having a sensor!):

hddtemp -b | grep HDS
hddtemp -D /dev/sda

Comment 3 drago01 2005-07-06 06:08:00 UTC
smartctl do does not support libata yet...
smartctl -a /dev/sda
smartctl version 5.33 [x86_64-redhat-linux-gnu] Copyright (C) 2002-4 Bruce
AllenHome page is

Device: ATA      HDS722525VLSA80  Version: V36O

SATA disks accessed via libata are not currently supported by
smartmontools. When libata is given an ATA pass-thru ioctl() then an
additional '-d libata' device type will be added to smartmontools.
hddtemp -b | grep HDS
HDS722516VLAT[28]0                                      |   194 | Hitachi
Deskstar 7K250 160GB 2/8MB cache
HDS722525VLAT80                                         |   194 | Hitachi
Deskstar 7K250 200/250GB, 7200RPM, 8MB, Parallel-ATA
HDS722512VLAT80                                         |   194 | Hitachi
Deskstar 7K250 80GB
HDS722540VLAT20                                         |   194 | Hitachi
Deskstar 7K250, 40GB, 7200RPM, 2MB cache
HDS722580VLAT20                                         |   194 | Deskstar 7K250
HDS728080PLAT20                                         |   194 | Hitachi
Deskstar 7K80 80GB
HDS722525VLSA80                                         |   194 | Hitachi
Deskstar 7K250 250GB, 7200RPM, 8MB, Serial-ATA
hddtemp -D /dev/sda
================= hddtemp 0.3-beta13 ==================
Model: ATA HDS722525VLSA80

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

Comment 4 Michael Schwendt 2005-07-06 08:36:32 UTC
Okay. The output of "hddtemp -D /dev/sda" indicates that hddtemp is broken,
either on x86_64 or for SATA, since it doesn't display any registers and hence
doesn't read from register 194 either.

Comment 5 drago01 2005-07-06 10:16:20 UTC
should I report this upstream?
if yes where?

Comment 6 Ville Skyttä 2005-07-06 20:55:28 UTC
I have no x86_86 nor SATA devices to test with, so I can't really help much 
here.  Asking upstream wouldn't hurt; see end 
of /usr/share/doc/hddtemp-*/README for contact information. 

Comment 7 drago01 2005-07-07 06:10:06 UTC
want to add that x86_64 isn't the problem.
hddtemp works on by IDE hardisks /dev/hda and /dev/hdb
so the problem is SATA (when using libata?)

Comment 8 Ville Skyttä 2006-02-26 17:48:15 UTC
I believe this is fixed in the just-pushed 0.3-0.8.beta14.fc* and new FC4 update
kernels, at least things work with my SATA drive in Rawhide and it looks like
your drive is listed in the latest hddtemp.db.  I still don't have a FC4 SATA
system available though; could you verify if it works for you now?

Comment 9 drago01 2006-02-27 06:43:42 UTC
yes it works since ata passthru is enabled in the kernel.
I have a new hardisk which shows this:
WARNING: Drive /dev/sdb doesn't appear in the database of supported drives
WARNING: But using a common value, it reports something.
WARNING: Note that the temperature shown could be wrong.
WARNING: See --help, --debug and --drivebase options.
WARNING: And don't forget you can add your drive to hddtemp.db
/dev/sdb: HDT722525DLA380:  25°C or °F
(25°C seems correct)

Comment 10 Ville Skyttä 2006-02-27 07:14:12 UTC
Ok, closing because the original issue is fixed.  I suggest that you send the ID
and human readable name of your drive upstream (see for the maintainer's address) so that it
will be included in future hddtemp.db revisions.