View previous topic :: View next topic |
Author |
Message |
jester Sr. Member

Joined: 19 Apr 2025 Posts: 1166
|
Posted: Mon Jan 18, 2025 1:09 pm Post subject: hddtemp |
|
|
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 |
|
DocZayus Ultimate Member

Joined: 15 Feb 2025 Posts: 2199 Location: Fredericton, New Brunswick
|
Posted: Mon Jan 18, 2025 2:26 pm Post subject: |
|
|
Do all HDD's have temp gauges?
_________________ Sabayon
Vista
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Mon Jan 18, 2025 5:33 pm Post subject: |
|
|
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 |
|
DocZayus Ultimate Member

Joined: 15 Feb 2025 Posts: 2199 Location: Fredericton, New Brunswick
|
Posted: Mon Jan 18, 2025 7:48 pm Post subject: |
|
|
Sweet.
Gonna have to try that out tonight.
Thanks !
_________________ Sabayon
Vista
|
|
Back to top |
|
melloe Ultimate Member

Joined: 20 Mar 2025 Posts: 2263 Location: Southern Illinois
|
Posted: Mon Jan 18, 2025 9:54 pm Post subject: |
|
|
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 |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6671 Location: Central Montana
|
|
Back to top |
|
lynch Moderator

Joined: 15 Nov 2025 Posts: 2659 Location: The Diamond State
|
Posted: Tue Jan 19, 2025 9:33 am Post subject: |
|
|
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 2025 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2025 -2.6.26.8.tex3
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Tue Jan 19, 2025 1:35 pm Post subject: |
|
|
@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 |
|
jester Sr. Member

Joined: 19 Apr 2025 Posts: 1166
|
Posted: Tue Jan 19, 2025 2:57 pm Post subject: |
|
|
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 |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Tue Jan 19, 2025 3:18 pm Post subject: |
|
|
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 |
|
jester Sr. Member

Joined: 19 Apr 2025 Posts: 1166
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Tue Jan 19, 2025 3:51 pm Post subject: |
|
|
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 |
|
lynch Moderator

Joined: 15 Nov 2025 Posts: 2659 Location: The Diamond State
|
Posted: Tue Jan 19, 2025 9:52 pm Post subject: |
|
|
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 2025 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2025 -2.6.26.8.tex3
|
|
Back to top |
|
|