stop writing logs on harddisk
Hello.
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! |
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) |
cron
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! |
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.
|
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. |
All times are GMT -5. The time now is 06:42 AM. |