USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

hddtemp

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands
View previous topic :: View next topic  
Author Message
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Mon Jan 18, 2024 1:09 pm    Post subject: hddtemp Reply with quote

Wasn't sure whether to put this in hardware or not, anyways, the following might be useful for laptop owners or people running servers (cronjob + mail?)
Code:
hddtemp /dev/sd{a,b,c}
/dev/sda: WDC WD1500ADFD-00NLR1: 30°C
/dev/sdb: WDC WD1500HLFS-01G6U0: 28°C
/dev/sdc: WDC WD6401AALS-00L3B2: 29°C

needs to be run as root / sudo, letters in the brackets correspond to the hdds you have - in my case sda, sdb, sdc

* found on the arch forums


Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DocZayus
Ultimate Member


Joined: 15 Feb 2024
Posts: 2199
Location: Fredericton, New Brunswick

PostPosted: Mon Jan 18, 2024 2:26 pm    Post subject: Reply with quote

Do all HDD's have temp gauges?



_________________
Sabayon
Vista
Back to top
View user's profile Send private message Visit poster's website
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Mon Jan 18, 2024 5:33 pm    Post subject: Reply with quote

most modern ones do.

i think they became standard around 99...

if the hard drive supports Self-Monitoring Analysis and Reporting Technology (S.M.A.R.T.) hddtemp can tell you the temperature (if a temperature sensoe is also included)



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
DocZayus
Ultimate Member


Joined: 15 Feb 2024
Posts: 2199
Location: Fredericton, New Brunswick

PostPosted: Mon Jan 18, 2024 7:48 pm    Post subject: Reply with quote

Sweet.

Gonna have to try that out tonight.

Thanks !



_________________
Sabayon
Vista
Back to top
View user's profile Send private message Visit poster's website
melloe
Ultimate Member


Joined: 20 Mar 2024
Posts: 2262
Location: Southern Illinois

PostPosted: Mon Jan 18, 2024 9:54 pm    Post subject: Reply with quote

This is a good thing..outstanding even.

I have pulled SATA drives out of OEM.s, and one hot swap I had where the fan died, so hot I almost dropped them.

Even newer 7200rpn PATA drives can get quite warm if they don't have adequate ventilation.

In either case this shorten the life at the least.



_________________
mell0: 1. Kubuntu, XP, Sabayon 2. Mandriva,Mint, Mephis
Thor: 1. VISTA, Fedora 2. Chakra, Debian
Sam:XP, SuSE Zues: win7, SuSE testing
Back to top
View user's profile Send private message
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Tue Jan 19, 2024 6:13 am    Post subject: Reply with quote

This doesn't work on my Dell Latitude D600 running Dreamlinux (Debian Clone) --- just to let you know:

Code:
jp@NOMSOS:~$ hddtemp /dev/sda
bash: hddtemp: command not found
jp@NOMSOS:~$ hddtemp /dev/sda
bash: hddtemp: command not found
jp@NOMSOS:~$


I ran it twice just in case I mis-spelled, typo'ed or something Sad



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
lynch
Moderator


Joined: 15 Nov 2024
Posts: 2659
Location: The Diamond State

PostPosted: Tue Jan 19, 2024 9:33 am    Post subject: Reply with quote

JP, were you root or sudo'd?
jester wrote:
needs to be run as root / sudo, letters in the brackets correspond to the hdds you have - in my case sda, sdb, sdc



_________________
Mandriva 2024 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2024 -2.6.26.8.tex3
Back to top
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Tue Jan 19, 2024 1:35 pm    Post subject: Reply with quote

@jp: hddtemp is a utility that is often not included in distributions by default. you will probably have to install it from your repositories.



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Tue Jan 19, 2024 2:57 pm    Post subject: Reply with quote

Code:
$  hddtemp /dev/sda
/dev/sda: open: Permission denied

the above (run as user) seems to bear out Lord's comment



_________________
Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Tue Jan 19, 2024 3:18 pm    Post subject: Reply with quote

jester wrote:
Code:
$  hddtemp /dev/sda
/dev/sda: open: Permission denied

the above (run as user) seems to bear out Lord's comment


Actually i think you meant Lynch... My comment was "is it installed?" (which in your case it was but in JP's it appears it was not or was not in $PATH)



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Tue Jan 19, 2024 3:23 pm    Post subject: Reply with quote

@Lord.DragonFly.of.Dawn: no I meant you Smile
Lord.DragonFly.of.Dawn wrote:
@jp: hddtemp is a utility that is often not included in distributions by default. you will probably have to install it from your repositories.

if it's installed and you run it as user you get my error message rather than what JP posted (i.e. command not found), so I'm just saying I think you were right to suggest installing from repos



_________________
Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Tue Jan 19, 2024 3:51 pm    Post subject: Reply with quote

hmm.... my bad. although your error did show that hddtemp was installed.... thats probably what confused me.



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
lynch
Moderator


Joined: 15 Nov 2024
Posts: 2659
Location: The Diamond State

PostPosted: Tue Jan 19, 2024 9:52 pm    Post subject: Reply with quote

I figured it wasn't installed in a directory in the user's PATH.
It is in some, like PCLinuxOS; it's in /usr/bin as well as /usr/sbin.
In some distros it may not be.



_________________
Mandriva 2024 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2024 -2.6.26.8.tex3
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands 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
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse