You are not logged in.

#1 2009-10-23 20:01:43

RetroX
Member
Registered: 2009-10-17
Posts: 106

HDDTemp won't access drive?

I can use sudo to get the temperature for both of my 2 hard drives, although the hddtemp daemon can only load the first hard drive (/dev/sdb gets an open error).  Is there a way to fix this?

Offline

#2 2009-10-23 20:09:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: HDDTemp won't access drive?

You're running the daemon?  Why?  Add your user to your /etc/sudoers and:

$ sudo hddtemp /dev/sda
/dev/sda: ST31000528AS: 28°C

$ sudo hddtemp /dev/sdb
/dev/sda: ST31000528AS: 27°C

Example entry for sudo:

%users ALL=NOPASSWD: /usr/sbin/hddtemp

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2010-03-03 08:33:06

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: HDDTemp won't access drive?

Thank you so much for the solution given smile To bad hddtemp needs to be run as root.

Offline

#4 2010-03-03 09:11:56

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: HDDTemp won't access drive?

Did you set up the daemon through its configuration file?

If not, you might wanna try that first. I remember having no problem running the daemon with multiple hard disks.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-03-03 21:41:23

RetroX
Member
Registered: 2009-10-17
Posts: 106

Re: HDDTemp won't access drive?

graysky wrote:

You're running the daemon?  Why?  Add your user to your /etc/sudoers and:

$ sudo hddtemp /dev/sda
/dev/sda: ST31000528AS: 28°C

$ sudo hddtemp /dev/sdb
/dev/sda: ST31000528AS: 27°C

Example entry for sudo:

%users ALL=NOPASSWD: /usr/sbin/hddtemp

I should have probably done that; either way, I have a new computer, now, and no longer have this problem.

Offline

Board footer

Powered by FluxBB