LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-16-2004, 11:30 AM   #16
wiresquire
Member
 
Registered: Dec 2003
Posts: 57

Rep: Reputation: 15

I think I have a solution worked out. I set the log file to /dev/null by editing the /etc/init.d/acpid file.

I changed the lines
Code:
                echo -n "Starting acpid "
                startproc $ACPID_BIN
to
Code:
                echo -n "Starting acpid "
                #Modified to redirect log file to /dev/null
                startproc $ACPID_BIN -l /dev/null
No more useless logging!
 
Old 02-28-2005, 07:00 PM   #17
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Rep: Reputation: 30
I like this solution and I had high hopes... But unfortunately there doesn't seem to be a /etc/init.d/acpid file on my system.

Any ideas where else to look for the cause of the 5-second scratch?
 
Old 02-28-2005, 07:20 PM   #18
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Rep: Reputation: 30
Halleluja. This worked:

Quote:
The thing is some process(es) in your system constantly read some file(s). That is normal and is not the problem in itself, because if a file is read often, the kernel will keep it in memory, but Linux file systems keep track of file access times. Every time a file is read, the kernel will change the access time stamp. That means every disk read turns into a disk write.

To make it stop type

Code:
mount -o remount,noatime /
as root. If you have more than one partition mounted, you may need to give the command for them as well.
Thanks to Lakefall posting in the following thread - http://www.linuxquestions.org/questi...04#post1500604
 
Old 02-28-2005, 08:25 PM   #19
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
wiresquire:
sending the acpi=force to the kernel at boot would have fixed your problem.
 
Old 02-28-2005, 09:50 PM   #20
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Rep: Reputation: 30
Alright, quick newbie question as follow-up...

How do I get the system to do the

Code:
mount -o remount,noatime /
at each startup?

Because I need to do this to make this solution permanent, right? (The problem is back since the last boot.)

I suppose it's a matter of tweaking an 'init' file somewhere..?

Thanks for ideas.
 
Old 02-28-2005, 11:11 PM   #21
nsk078
LQ Newbie
 
Registered: Jul 2004
Location: VA, USA
Distribution: Fedora Core 4
Posts: 28

Rep: Reputation: 15
Worked for me too!!!

Adding noatime to my fstab file for / stopped the 5 sec flashes of my hard drive. I'm using SUSE 9.2 Pro.

before: /dev/hdc7 / reiserfs acl,user_xattr 1 1
after: /dev/hdc7 / reiserfs noatime,acl,user_xattr 1 1

nsk
 
Old 03-02-2005, 02:05 PM   #22
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Rep: Reputation: 30
Thanks nsk. This worked perfectly in Suse 9.1 too.
 
Old 04-10-2005, 09:02 AM   #23
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
Originally posted by rollo
Alright, quick newbie question as follow-up...

How do I get the system to do the

Code:
mount -o remount,noatime /
at each startup?

Because I need to do this to make this solution permanent, right? (The problem is back since the last boot.)

I suppose it's a matter of tweaking an 'init' file somewhere..?

Thanks for ideas.
You can add run any command at start-up by adding it to your local start-up file (usually /etc/rc.d/rc.local).

In this case, you can also just add the noatime option to the end of the appropriate lines in /etc/fstab, which is where the filesystem options are read from when you mount filesystems during boot-up (the lines for your /var/log, /var or / partition). For more information on the fstab file, type:
Code:
man fstab
into a console.
 
  


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
convert total no of seconds in the format hour minutes and seconds suchi_s Programming 15 03-15-2011 11:34 AM
Can a Harddisk-installed Debian(not a Live CD) be used on different server? Akhran Debian 5 09-15-2005 02:59 PM
can RHEL- 3 can be installed on the PC having Serial ATA Harddisk Tushar Bhopi Linux - Hardware 2 08-13-2005 07:16 PM
why the light of my harddisk be lighted every 5 seconds?(I installed the FedoraCore2) theapp Fedora 8 08-09-2004 03:56 AM
When i run Linux, the red light on the casing which shows harddisk access becomes on Kashif Ahmed Linux - Newbie 3 12-14-2002 10:52 PM

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

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