LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   DMA settings won't save (https://www.linuxquestions.org/questions/slackware-14/dma-settings-wont-save-54705/)

willywonka 04-12-2003 11:26 AM

DMA settings won't save
 
I'm running Slackware 9.0, and I have:

hdparm -X66 -c3 -d1 /dev/hda
in my /etc/rc.d/rc.local

When linux loads, it works reads that DMA is on, but when I log in and type:
hdparm -Tt /dev/hda
I get really crappy speed, and when I type
hdparm /dev/hda
DMA is turned off, but when i turn it back on again, then it works fine.

Anybody know why I would have to type 'hdparm -X66 -c3 -d1 /dev/hda' again when linux starts? or if there is a better way to enable DMA and hard drives?

bynaar 04-12-2003 11:46 AM

This is my setting in rc.local:

hdparm -c 1 -d 1 -k 1 /dev/hdb

You have to use the switch -k, in order to keep the settings.

good luck !

willywonka 04-12-2003 12:07 PM

I have tried that at one point, although I did it with '-k1' instead of '-k 1'. At work right now, I will try again.

pablob 04-12-2003 12:55 PM

Maybe your PATH is not set at the time rc.local is executed.
Try /sbin/hdparm ......

If not, recompile kernel with "Use DMA by default" turned on.
(But that's a major mess for such a problem).
Try making a /etc/rc.d/rc3.d/S90dma

willywonka 04-12-2003 07:38 PM

Problem solved, I just did -X69 instead of -X66, and now it works

Don't know why I did -X66, 2X faster now anyway

Did '-k1' also, BTW


All times are GMT -5. The time now is 08:46 PM.