How do I disable drive write cache at boot with hdparm?

I’m testing OpenSUSE 11.3 on a server and I’d like to disable the write cache on all of my drives. In Ubuntu Server I was able to accomplish this with hdparm by adding the appropriate settings to /etc/hdparm.conf

As far as I can find the only thing that OpenSUSE offers is /etc/sysconfig/ide which allows you to force particular DMA modes. I could just put the hdparm commands in /etc/init.d/boot.local but I’d prefer to do it the right way if there is a right way to do this in OpenSUSE.

As far as I know this is as right as you can get with openSUSE. At least it works for sure.

jdmulloy wrote:

> I could just put the hdparm commands in /etc/init.d/boot.local but I’d
> prefer to do it the right way if there is a right way to do this in
> OpenSUSE.

boot.local is fine.


Per Jessen, Zürich (21.4°C)
http://en.opensuse.org/User:Pjessen