PDA

View Full Version : make "knoppix nodma" permanent on hard disk instal



lothario
08-15-2004, 07:42 PM
Just did a hard disk install.

Now, how do I make the boot: arguments
knoppix nodma
permanent so that each time Knoppix boots from the
hard disk then nodma is applied.

mzilikazi
08-15-2004, 10:26 PM
From
man hdparm



hdparm [ flags ] [device]
/snip/

-d Disable/enable the "using_dma" flag for this drive.

So....

su
hdparm -d0 /dev/hda

Now have a look:

hdparm /dev/hda

I do not know if Knoppix does this or not BUT it is common to turn DMA on w/ a script. Likely it would be /etc/init.d/bootmisc.sh. Have a look and if there's an hdparm command you'll likely want to get rid of it. You can simply comment it out.

A. Jorge Garcia
08-15-2004, 11:30 PM
Just add


hdparm -d0 /dev/hda

in bootmisc.sh, using your favorite text editor from a root console.

Regards,
AJG

CrashedAgain
08-16-2004, 03:34 AM
Are you using lilo? Then just add 'nodma' to the append=list in /etc/lilo.conf & rerun lilo.

lothario
08-16-2004, 11:00 AM
Thanks for all the tips.

I used the lilo suggestion. It was easy.