LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-11-2003, 02:38 AM   #1
willywonka
LQ Newbie
 
Registered: Apr 2003
Location: Kansas
Distribution: Slackware 9.0
Posts: 12

Rep: Reputation: 0
Question DMA setting 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?
 
Old 04-11-2003, 04:59 AM   #2
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
How did you enter the command in /etc/rc.d/rc.local?
Post a copy of the file.
lynch
 
Old 04-11-2003, 06:21 AM   #3
Shak
Member
 
Registered: May 2002
Location: Huddersfield
Distribution: Redhat (7.2, 7.3, 8.0), Debian, Slackware, Gentoo, FreeBSD
Posts: 169

Rep: Reputation: 30
You might want to add the -k switch on that line for hdparm to make sure it lasts over the drives resets. This will prevent any resets in the course of the system running.

Shak
 
Old 04-11-2003, 06:28 AM   #4
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Rep: Reputation: 30
-k1 even, but i guess that's obvious.
 
Old 04-11-2003, 06:34 AM   #5
Shak
Member
 
Registered: May 2002
Location: Huddersfield
Distribution: Redhat (7.2, 7.3, 8.0), Debian, Slackware, Gentoo, FreeBSD
Posts: 169

Rep: Reputation: 30
Well a "man hdparm" would have sorted that out anyway, which I trust he's done

Shak
 
Old 04-11-2003, 01:55 PM   #6
willywonka
LQ Newbie
 
Registered: Apr 2003
Location: Kansas
Distribution: Slackware 9.0
Posts: 12

Original Poster
Rep: Reputation: 0
I have tried -k1 option, so that it will keep in rc.local, but this is what I have now in rc.local
-------------------------
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:

mount -t smbfs -o username=guest -o password=none, //server/server /server
hdparm -d1 /dev/hdc
hdparm -d1 /dev/hdd
hdparm -X66 -d1 /dev/hda
------------------------

Might also mention that the DMA on the CD-RW and DVD drive work just fine
 
Old 04-12-2003, 07:37 PM   #7
willywonka
LQ Newbie
 
Registered: Apr 2003
Location: Kansas
Distribution: Slackware 9.0
Posts: 12

Original Poster
Rep: Reputation: 0
Problem solved, I just did -X69 instead of -X66, and now it works

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Q1: Setting DMA Mode with hdparm mattz40 Debian 3 03-15-2005 04:52 PM
setting DMA on Samsung ts-h552b Beauzeau Linux - Hardware 2 01-31-2005 08:19 AM
Freeze at boot - when setting DMA mcle Linux - General 2 12-24-2004 06:58 PM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 04:58 AM
DMA settings won't save willywonka Slackware 4 04-12-2003 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration