LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 06-21-2005, 07:11 AM   #1
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
laptop hard drive won't stay down


i have my laptop hard drive set to spin down with hdparm -S 120. it works great. the problem is it spins back up after 10 minutes, and then starts the sequence all over again. how can i find out what is causing it to wake up every ten minutes without... waking it up?!
 
Old 06-21-2005, 07:20 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Wow.. there are many programmes that could be starting.. screensavers etc..
But I suspect you'll find it in the /etc/cron.d directory.

Most distros have a cron job that runs every 10 minutes..
 
Old 06-21-2005, 07:39 AM   #3
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
There is a daemon that periodically syncs the disks. For more inspiration take a look at this

Groetjes,

Kees-Jan
 
Old 06-22-2005, 09:13 AM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
excellent, thanks for the link and replies. the rundown is i tried turning off swap, but that didn't work. cron.hourly has kmod in it, which i guess is a process to remove modules that aren't being used. that seems okay, as the problem is not once per hour, but every ten minutes after the disk spins down. crontab lists a /usr/bin/run-parts command that just seems to be telling the /etc/cron.d/ stuff to run.

the update/bdflush daemon looks promising, but there is no entry that i can see in either /etc/inittab or /etc/rc.d/rc.S for update. could it be somewhere else (slack 10.1)? syslog.conf already has the - sign preceding all the entries.

regarding the init command section, i have no idea what the author is talking about when he mentions removing the sync () call and recompiling the source code. what source code? source code for init? also, that procedure sounds a little extreme, and possibly even risky. wouldn't there be a whole bunch of stuff building up in some buffer somewhere if things aren't synced? anyway, it seems like an extreme measure to take for what might not even be the problem. maybe i would consider it as a last resort.

perhaps it's something to do with X, but i don't use a screensaver and dpms shuts off the screen after 10 minutes, so it's not screensaver related at least. maybe X is writing something to the disk every 10 minutes? seems unlikely, but i guess maybe.

finally i don't use emacs, and i don't have apache running.

i wish i could report that one of those was the answer (it could still be init, i guess) but so far no success. any other ideas before i start messing with init?


>>edit: i also have noatime as an option for all my disk mounts.
 
Old 06-22-2005, 09:45 AM   #5
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
I had the same problem of not being able to find the call to update. So I did some more googling and came up with this.

Init is the process that starts all others. It does so following the instructions from inittab. Apparently, it calls sync before starting a process. However, it shouldn't be starting processes all that often (depending on inittab contents)

Having said that, its actually fairly safe to remove the sync, provided your system doesn't crash or shut down. This is because data gets written to disk periodically (for example by init), or when memory becomes full. So removing the sync will cause data to be written later, but it will be written. On the other hand: before doing a shutdown, you should do a sync (which is also described in the document) because init won't be doing it for you, and you still want to have the data written to disk before the system goes down.

Groetjes,

Kees-Jan
 
Old 06-24-2005, 08:33 AM   #6
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
Thumbs up update

problem solved (partially solved -- problem identified, i should say ). i believe it was in fact syslogd, even though the dash is in front of the entries in /etc/syslog.conf. i turned off that and something called pdflush, and the hard drive did not spin up again. when i looked at ps ax, pdflush was back, so it must be syslogd. i'll just have to find some other way to disable that, or change the settings or something. i really don't like the idea of not having things logged, but i also don't see any need to write to the log every ten minutes even when the computer is in standby. maybe i can find a script somewhere that turns it on and off along with dpms or some other workaround. thx for your help.
 
  


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
upgrading laptop hard-drive microsoft/linux Linux - Laptop and Netbook 28 03-01-2006 09:34 AM
Unable to find hard drive - laptop rolamento SUSE / openSUSE 6 08-17-2005 02:39 PM
laptop hard drive upgrade Arnaud_B Linux - Hardware 6 06-26-2005 01:27 AM
Laptop noises - possible hard drive problem? fatman Linux - Hardware 9 01-19-2005 08:19 PM
Laptop Hard drive modules jdozarchuk Linux - Hardware 5 12-29-2004 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:22 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