LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-08-2007, 05:17 PM   #1
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Rep: Reputation: 30
Hard drive spins up for no obvious reason


I have a desktop system running Slack 11.0. I have a "main" drive, a SATA 250GB, and a "backup" drive, an IDE 80GB. I use `hdparm -y` to spin down the IDE drive when I'm not using it. I backup certain files from the SATA drive to the IDE drive about once a month. The problem is that the IDE drive spins back up quite often when there isn't any reason to access it. When any user logs out of KDE, it spins up. Sometimes it just spins up at random.

The IDE drive is as noisy as they come and I'd like it to remain in a spun-down standby state at ALL times unless I explicitly use hdparm to spin it up or issue a `mount` command. I have no idea why it is spinning up so often. It isn't mounted, nothing should need to access it, yet it spins up.

Is there a way to effectively prevent the drive from spinning up unless I explicitly issue a command to cause it to spin up? Or perhaps make it "invisible" to the system as a whole until I need to use it?
 
Old 01-08-2007, 05:25 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I'm wondering if a powersave type daemon is spinning down both drives after a certain period of inactivity and then later spinning them both back up, when you do something that would cause writing to one of them. Logging out of KDE or your shell might cause a sync command to empty out the caches. Another possibility is a background process like updatedb indexing the files. You might try adding "noauto" as a mount option in /etc/fstab to prevent the partitions on the drive from being mounted when you boot up. You will need to mount them manually then.
Another possibility is the udev or hal daemons access the drives for some reason.
 
Old 01-08-2007, 05:35 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not sure if it means anything but is it set to automount in /etc/fstab.
Other thought rem out the mount line in /etc/fstab file for the line.
Might cause the system to not see it at all.
Might add the -s or is it -S for standy time. Make it as low as possible so if it spins up and no access it should be down quickly. Not a solution but to see if it is not being accessed by something.

Brian
 
Old 01-08-2007, 07:32 PM   #4
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Original Poster
Rep: Reputation: 30
I'm not using any daemons, in fact I'm using devfs with a 2.4.33.3 kernel. I'm not using neither dbus, hal, udev, laptop-type powersave systems, nor pmount-type tools. Its a dead-stock Slackware 11.0 install.

I haven't set up any powersave-type processes either. The drive is not even listed in /etc/fstab.

I simply use `mount` manually to mount it when I need it (about once a month) and `hdparm -y` to spin it down when I don't need it since it is quite loud.

There isn't anything on the drive's filesystem that should need to be accessed, I spin it up, mount it, use rsync to back up certain files, umount, and spin down. The problem is that it occasionally spins back up at random, when a user logs out of KDE, etc.
 
Old 01-09-2007, 07:42 AM   #5
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Original Poster
Rep: Reputation: 30
It is possible that KDE may be doing something that causes the drive to spin up. The system has been sitting at the KDM login prompt for a couple days now, and the drive hasn't spun up. I've done a few things at console without logging into KDE and that didn't cause the drive to spin up either.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HDD Spins down for no reason - solution? kkathman Linux - Hardware 1 10-04-2006 01:22 PM
Why Is My Hard Disk Busy For No Reason? Baryonic Being Linux - Hardware 9 09-27-2004 05:14 PM
How could this have happened to me?! Hard locks and kernel panics for no good reason! jamespetts Linux - General 8 08-05-2004 07:45 AM
Cdrom drive won't work - been through "obvious" lrt2003 Linux - Newbie 11 05-17-2004 07:01 AM
Newer Dvds won't play - drive just spins and cuts out lrt2003 Linux - Software 4 04-17-2004 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration