Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-23-2006, 01:05 PM   #1
LQ Newbie
Registered: Oct 2004
Distribution: Debian, Arch
Posts: 28

Rep: Reputation: 16
stop writing logs on harddisk

I have old PC as router. It's K6 Athlon, noname motherboard with VIA chipset (AMI Bios and APM support). I needed power off, so I enabled APM and compiled modules in kernel. It works, but I have another problem. In router is old harddisk (quite loud) and I set in BIOS disk suspend after 3 minutes. Disk turn off, but after approximately 20 minutes starts run again, writes something (I can hear it) and after 3 minutes turns off again and after 20 min all again... I killed all daemons, but it didn't work. Somebody told me it's because linux write his logs and this stuff and gave me advice that I can put all logs into ramdisk. But I'm linux lame and make ramdisk is too difficult for me. I would spend a lot of time on it

Have any idea how let harddisk in suspend mode for longer time (and wake disk up only when I e.g. accessing computer via SSH or halting it)?

I hope I explain my problem clearly and exactly. Thank you for all ideas!

Last edited by lajner; 08-23-2006 at 02:19 PM.
Old 08-23-2006, 04:13 PM   #2
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 756

Rep: Reputation: 144Reputation: 144
Look at file /etc/crontab. My system executes 'run-parts' every hour. Maybe your system has additional commands.

You can modify the times it runs in that file.
The time fields are: minute, hour, day, month, day-of-week (0 or 7 is Sun)
Old 08-24-2006, 10:35 AM   #3
LQ Newbie
Registered: Oct 2004
Distribution: Debian, Arch
Posts: 28

Original Poster
Rep: Reputation: 16

Thank you for idea. I simply killed cron process, but it didn't help. Then I killed almost all "suspicious" process and now it seems good - now is disk in suspend mode maybe 45 minutes. So I must probably figure out, which daemon(s) waking my disk up.

Is in linux some easy way, how find out which files were last modified?

And one by the way: I'm maybe old-fashioned, but it's still so amazing (and great) - I am somebody from Czech, I have some problem and somebody from Maryland in USA try to help me. Internet is really cool stuff Thank you KenJackson for idea again!

Last edited by lajner; 08-24-2006 at 10:36 AM.
Old 08-24-2006, 01:06 PM   #4
spirit receiver
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
Sorry for being from Germany only (and even pretty close to the Czech Republic), but "find -mmin -3" will find all files in the current directory and above that have been modified at most 3 minutes ago. See "man find" for further options to that command.
Old 08-24-2006, 02:57 PM   #5
LQ Newbie
Registered: Oct 2004
Distribution: Debian, Arch
Posts: 28

Original Poster
Rep: Reputation: 16
I hope you were kidding about "German only". Aber Ich denke Ihnen für den Ratschlag. (I guess I made some mistake in it ;P)

Find is powerfull utility - I don't know about it. I used "find -mmin -3" in /var/log/ and changes were in ksymoops. I guess I must tune kernel logging.

Thank you for advices, gentlemen. Hope I can do it now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logs stop working redice Fedora 3 04-24-2006 10:49 AM
4-6 logs from kernel Per SECOND! How to stop? m15a4 Linux - General 7 02-01-2006 06:05 AM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM
Logs full of hits to; how to stop logging? mac_phil Mandriva 2 02-23-2004 10:25 AM
apache is writing empty logs ocularbob Linux - Software 1 07-03-2003 02:26 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:57 PM.

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