Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
read the temperature with serial ata drives
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Mon Apr 04, 2005 10:55 pm    Post subject: read the temperature with serial ata drives Reply with quote

Hi, do you own a s-ata disk and wanna know the temperature? yeah, me, too, so let's find out how we can do this...
first, patch your kernel with the latest libata-dev patches from here http://www.kernel.org/pub/linux/kernel/people/jgarzik/libata/
Code:
cd /usr/src/linux
wget http://www.kernel.org/pub/linux/kernel/people/jgarzik/libata/2.6.11-bk6-libata-dev1.patch.gz
gzip -d 2.6.11-bk6-libata-dev1.patch.gz
patch -p1 < 2.6.11-bk6-libata-dev1.patch.gz
make && make modules_install
copy kernel to boot and don't forget something like nvidia-kernel :-)

after reboot:
emerge hddtemp
/usr/sbin/hddtemp -q -w /dev/sda

the only new thing here is the libata patch which make smart reading possible.
if you wanna read with smartctl, use smartctl -a -d ata /dev/sda, because ata works like libata should do, but libata isn't available.
if somebody know how to get s-ata II-speeds to work, it would be fine.
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Wed Apr 27, 2005 5:00 pm    Post subject: Reply with quote

Awesome! Finally I'm able to read SMART from my SATA drives.

Thanks.
Back to top
View user's profile Send private message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Wed Apr 27, 2005 5:36 pm    Post subject: Reply with quote

now this is really awsome!
thanks for making this howto...
I have always wondered why that damn hddtemp thing couldn't read my sata temps ;)


edit hehe... it seems like the love-sources already have this patch installed... temp is working great here! I just needed the right cmd...
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Wed Apr 27, 2005 5:50 pm    Post subject: Reply with quote

Zyne wrote:
now this is really awsome!
thanks for making this howto...
I have always wondered why that damn hddtemp thing couldn't read my sata temps ;)


edit hehe... it seems like the love-sources already have this patch installed... temp is working great here! I just needed the right cmd...

The s-ata io cmd patch will definitly come into the official kernel tree in the next time. This patch is just for those which can't wait ;)
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Mon May 02, 2005 6:25 am    Post subject: Reply with quote

The patch is now built-in in morph-sources, too.
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
supermihi
Guru
Guru


Joined: 09 Feb 2005
Posts: 348

PostPosted: Sat Nov 12, 2005 7:53 am    Post subject: Reply with quote

How do I get hddtemp working with newer kernels? The libata-dev patch is only available till somewhat like 2.6.11, but I'm using 2.6.14 now, and the patch fails to apply!
With 2.6.14 I don't get a ioctl error or something like that, but it says:
Code:
dev/sda: ATA SAMSUNG SP2504C:  known drive, but it doesn't have a temperature sensor.


Though with the 2.6.11 with libata-dev it worked and showed me the right temperature.
_________________
"You may say I'm a dreamer, but I'm not the only one."
Back to top
View user's profile Send private message
cwest
n00b
n00b


Joined: 13 Jun 2005
Posts: 72
Location: Oslo, Norway

PostPosted: Mon Nov 21, 2005 10:07 pm    Post subject: Reply with quote

Cannot show my temps on an up-to-date ~amd64.
My box only contains Samsung hd's, so maybe the problem resides with some differences in SMART-communications with Samsung-hd's compared to other brands?

I can read hdtemp fine off my pata Samsung-hd's. No smartinfo comes off the Samsung sata's though :(
_________________
freelight wrote:
Any society that can be destroyed by the free flow of information probably should be.
Back to top
View user's profile Send private message
supermihi
Guru
Guru


Joined: 09 Feb 2005
Posts: 348

PostPosted: Tue Nov 22, 2005 2:58 pm    Post subject: Reply with quote

I solved the problem by using 2.6.15-rc1 or rc2 with the matching libata-(not dev) patches from kernel.org
_________________
"You may say I'm a dreamer, but I'm not the only one."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum