On Wed, 15 Mar 2006, Michael Behrens
Why do people insist on inventing any single type of wheel again and again?
Because it's a fun thing to do?
The distribution already has means to configure DMA.
And that was the method that I showed. That doesn't mean that showing other ways isn't useful. Adding stuff to boot.local is another way of achieving the same results and it's quite useful to know about especially if you're (possibly going to be) using other distributions.
Put this in boot.local (adjust for your local hardware): hdparm -A1 -c1 -d1 -m16 -u1 /dev/hda hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdb hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdc hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdd hdparm -A1 -c1 -d1 -m16 -u1 /dev/hde hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdf hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdg hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdh hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdi hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdj
printf "%s\n%s\n%s\n%s\n" "hdparm -A1 -c1 -d1 -m16 -u1 "/dev/hd{a,b,c,d} >>/etc/init.d/boot.local Or echo -e "hdparm -A1 -c1 -d1 -m16 -u1 "/dev/hd{a,b,c,d}"\n" >>/etc/init.d/boot.local Both add multiple lines to boot.local, and neither even need an editor. Using "echo" is slightly shorter, since you don't need to remember a "%s\n" for each line, but using "echo" adds a space at the beginning of the line like so: hdparm -A1 -c1 -d1 -m16 -u1 /dev/hda hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdb hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdc hdparm -A1 -c1 -d1 -m16 -u1 /dev/hdd not that having the space there matters. Regards, David Bolt -- Member of Team Acorn checking nodes at 50 Mnodes/s: http://www.distributed.net/ AMD1800 1Gb WinXP/SUSE 9.3 | AMD2400 256Mb SuSE 9.0 | A3010 4Mb RISCOS 3.11 AMD2400(32) 768Mb SUSE 10.0 | RPC600 129Mb RISCOS 3.6 | Falcon 14Mb TOS 4.02 AMD2600(64) 512Mb SUSE 10.0 | A4000 4Mb RISCOS 3.11 | STE 4Mb TOS 1.62