On 03/28/2011 10:35 AM, Mick wrote:
> On Monday 28 March 2011 09:11:51 Coert Waagmeester wrote:
>> Hello all,
>>
>> Running a box with 2x1TB software raid disks.
>> A while back I read up about disk write caching and it's pros/cons.
>>
>> I then decided to disable it on my box.
>> Edited /etc/conf.d/hdparm and added -W0 for sata_all_args.
>> And added it to the default runlevel.
>>
>> It works, on bootup it turns off write caching.
>> But a while later when KDE is up and running and I check with hdparm -W
>> /dev/sd? write caching is on again.
>>
>> Now, I have two questions,
>> How can I find out what turned it back on, and how can I prevent it?
>>
>> Is it necessary/prudent to turn it off in the first place?
>>
>> At the moment I run a cron job that checks every 10 minutes and turns it
>> off if it is enabled. But that feels like a somewhat ugly solution...
> 
> Try touch /etc/pm/power.d/harddrive to see if it works.  Also read this 
> thread 
> and the bugs mentioned in there:
> 
> http://thread.gmane.org/gmane.linux.gentoo.user/232788/focus=233098

Great! Thanks.
That did indeed solve the problem.


Reply via email to