MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently installed Mandriva 2008.1 on a new computer and so far everything seems to have gone great, except for one minor issue. I noticed that there seemed to be a lot of idle drive activity, as though something were accessing the harddrive every few seconds. The activity light is almost always blinking but I couldn't seem to find anything running that would account for it. Finally I happened to catch a process start and stop while looking at htop today and I think I have found the "problem," but I'm not sure how to fix it.
It seems that hddtemp (a harddrive temperature monitoring package) is constantly being started in the background. My auth.log contains evidence like this:
Code:
May 10 16:43:20 mycomputer userhelper[28052]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
May 10 16:43:25 mycomputer userhelper[28055]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
May 10 16:43:30 mycomputer userhelper[28059]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
May 10 16:43:35 mycomputer userhelper[28062]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
May 10 16:43:40 mycomputer userhelper[28065]: running '/usr/sbin/hddtemp -q /dev/sda' with root privileges on behalf of 'username'
As you can see, something is running hddtemp every 5 seconds. Aside from the fact that it is filling up my logs, it's really annoying and I'd rather not have the drive constantly being accessed like this. Hddtemp is also run as a service at start-up, but stopping the service (service hddtemp stop) doesn't seem to help. For reference, my harddrive is a Western Digital Caviar RE WD1600YS, 160Gb SATA drive. Does anyone have any ideas/suggestions? Thanks!
I checked in /etc/sysconfig and there was a config file for hddtemp, but it didn't contain any information on timing or anything similar. And it turns out I don't have smartd installed. The hddtemp settings in sysconfig only seem to pertain to the hddtemp daemon and to me it looks like some other program is constantly trying to run it manually. I haven't been able to find out where the command to run it is coming from though.
In any event, I just decided to uninstall it. I'd still be interested in finding out what was causing this problem if anyone knows, since it is a neat little program. Thanks.
DESCRIPTION
hddtemp will give you the temperature of your hard drive by reading
Self-Monitoring Analysis and Reporting Technology (S.M.A.R.T.) infor‐
mation on drives that support this feature. Only modern hard drives
have a temperature sensor. hddtemp supports reading S.M.A.R.T. infor‐
mation from SCSI drives too. hddtemp can work as simple command line
tool or as a daemon.
You can specify one or more device drive path, where each path can be
prefixed with a type like PATA, SATA or SCSI to force hddtemp too use
one of these type (because detection can fail).
As with most of these type of package, we need to configure it before it works.
Anyway, I think you could set it up, you'll need to research some more.
Thanks for all the replies and I really appreciate the help, and I don't want to sound rude, but I think some of the replies have missed the point. I had hddtemp installed and configured correctly. The daemon would run at start-up and would report drive temps just fine. The problem is that some other program kept trying to run hddtemp via a command line every 5 seconds. This is annoying, and is compounded by the fact that these repeated run attempts are being logged in places like auth.log because whatever is running it is using userhelper to do it.
I suspect this is some bizarre problem with the Mandriva implementation of hddtemp. Hddtemp was installed with my new installation of 2008.1 and everything appeared to be set up correctly until I noticed that my auth.log file was huge. It looks to me like something similar to a cron job keeps running it every 5 seconds (but I checked all my scheduled cron jobs and no luck). The reason I think this is because stopping the hddtemp service does not fix the problem (I also stopped it from loading at boot time and that still didn't work).
Perhaps the better question is does anyone know what services typically use uerhelper to execute jobs? I know userhelper is a service that writes out all sorts of stuff to the standard out when you use it to execute commands, but I'm not sure why it would be used to run hddtemp in this case.
After about 2 days, my auth.log was about 10mb or so in size. I know it's not a huge problem or anything, but it's really annoying. I'm also a little paranoid about log sizes since I once misconfigured a program to log way too much stuff in a very short period of time and ended up filling all the free space on my root drive -- there wasn't even enough space left to start x and since I was a big newbie at the time I wasn't sure what to do. So ever since then I've been trying to keep better track of all my logging services.
Quote:
so I am wondering if you have changed your log to hide your username or is that the true message?
That's correct, I am hiding my username and my computer name.
Quote:
use root powers to directly add your user name to /usr/sbin/hddtemp reboot and see if there is any change
I will try this to see if anything happens. This might solve the logging problem since it's obviously userhelper that's logging to auth.log and not hddtemp.
I also had the opportunity to install hddtemp on a machine running Mandriva 2008.0. I used urpmi to install it and it runs just fine -- and nothing is attempting to run it every 5 seconds. So I'm even more suspicious that somewhere in the 2008.1 distro is a program that is configured to continuously execute hddtemp instead of just letting the daemon do its job.
Last edited by 81bones; 05-16-2008 at 03:33 PM.
Reason: grammar
I just noticed the same problem on my machine (Fedora10), and - for my case - found the solution:
I was running ksensors, to display the CPU temp and Fan speed in the system dock. If I kill ksensors, the log messages go away; if I increase the checking interval there (default is 5 seconds), then the time interval of the log messages increases.
I have not yet found a way to use ksensors without it checking HDD temp - still looking into that.
UPDATE:
It seems that ksensors starts periodically checking HDD-temp after configuring HDD-temp readout for the first time. This creates configuration sections in /home/<username>/.kde/share/config/ksensorsrc.
I have not found any way to stop periodic HDD-temp checking from within ksensors. However, after I stopped ksensors, manually deleted all sections pertaining to HDD-temp from the configuration file, and then restarted ksensors, periodic checking has stopped.
So far I have found no way of teaching ksensors to query a running hddtemp daemon instead of doing the checking itself - the hddtemp daemon does not seem to create offending log entries.
As you can see, something is running hddtemp every 5 seconds. Aside from the fact that it is filling up my logs, it's really annoying and I'd rather not have the drive constantly being accessed like this. Hddtemp is also run as a service at start-up, but stopping the service (service hddtemp stop) doesn't seem to help. For reference, my harddrive is a Western Digital Caviar RE WD1600YS, 160Gb SATA drive. Does anyone have any ideas/suggestions? Thanks!
in my case it was webminstat module for webmin. this software has one of graph - hddtemp. when i stoped this sensor in this software - that kind messages in auth.log disapeared
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.