Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-12-2003, 11:26 AM
|
#1
|
LQ Newbie
Registered: Apr 2003
Location: Kansas
Distribution: Slackware 9.0
Posts: 12
Rep:
|
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?
|
|
|
04-12-2003, 11:46 AM
|
#2
|
Member
Registered: Jul 2002
Posts: 141
Rep:
|
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 !
|
|
|
04-12-2003, 12:07 PM
|
#3
|
LQ Newbie
Registered: Apr 2003
Location: Kansas
Distribution: Slackware 9.0
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
04-12-2003, 12:55 PM
|
#4
|
Member
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382
Rep:
|
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
|
|
|
04-12-2003, 07:38 PM
|
#5
|
LQ Newbie
Registered: Apr 2003
Location: Kansas
Distribution: Slackware 9.0
Posts: 12
Original Poster
Rep:
|
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 04:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|