It is currently Sat, 04 Feb 2023 11:29:34 GMT

Author Message
 hdparm doesn't "stick"


        I had/have problems since upgrading to a stock Redhat 7.1
2.4.2 kernel with my system{*filter*} when I try and mount a cdrom.
Now, if I turn DMA off (hdparm -d0 /dev/hdc) it no longer seems to
hang.  That'd be fine EXCEPT, despite putting the above call to
hdparm in rc.local after some period of time DMA gets turned back
on.  I've killed the autofs daemon, etc.. so I can't see quite why
or where this happens.  ANy help would be appreciated.


        ken gibbs



     Kenneth Gibbs / VERITAS / Fred Lawrence Whipple Observatory
                  PO Box 97 / Amado, AZ / 85645-0097
  (520)-670-5719   (520)-670-5713 fax
              18001 S Placita Mayo / Sahuarita, AZ 85629
          18001 S Placita Mayo / Green Valley, AZ 85614-4427
              (802)-860-9946 (VT)   (520)-360-2995 (cel)


 Wed, 24 Dec 2003 06:44:39 GMT   
 hdparm doesn't "stick"

Make a shell-script calling hdparm and place it in /etc/init.d then give it a
symbolic link from the startup directory (usually rc2.d). I use this for
setting the  opposite on each boot (dma=66 and io=32bit).


 Mon, 29 Dec 2003 21:19:59 GMT   
 hdparm doesn't "stick"

If all you want is DMA to be disabled permanently, add this to
and re-run lilo.  

Also, you can modify IDE parameters (on redhat 7.1) in
(It's a text file that is pretty self explanatory).

If you want hdparm's stuff to "stick" you need to use some combination of
the -k1 & -K1 flags.  man hdparm for details.

Rex A. Dieter         
Computer System Administrator   http://www.**-**.com/ ~rdieter/
Mathematics and Statistics              
University of Nebraska Lincoln

 Mon, 29 Dec 2003 22:32:59 GMT   
 hdparm doesn't "stick"

Hi Allan,

        I did do something similar in rc.local.  The curious thing is that
while I can set -d0 switch it doesn't stay set.  For now I've resorted to
crontab and just make the call to hdparm every minute.  Not elegant but it
has the desired effect.

        Thanks for the tip though.


        Ken gibbs



     Kenneth Gibbs / VERITAS / Fred Lawrence Whipple Observatory
                  PO Box 97 / Amado, AZ / 85645-0097
  (520)-670-5719   (520)-670-5713 fax


 Tue, 30 Dec 2003 00:16:41 GMT   
 hdparm doesn't "stick"

That's one way of doing it, but a better way is to use RH7.1's own mechanism
for making the settings permanent.  

You'll see a file in /etc/sysconfig called "harddisks".  Copy that file to
/etc/sysconfig/harddisk<dev>  where dev is the device name of your CDROM.
For example, if your CDROM is /dev/hdc, make a copy of the file
to /etc/sysconfig/harddiskhdc

then edit that specific file and uncomment the DMA line but make sure it's set
to 0 not 1.  When you reboot use hdparm to check that the device does not have
DMA enabled.

RH7.1's stock kernel selected "Use PCI DMA by default" which makes all devices
use DMA by default.  I recompile my kernel to NOT use this feature and then enable
it using the harddisk file...


 Tue, 30 Dec 2003 00:31:19 GMT   
 hdparm doesn't "stick"

There's a good chance that it gets disabled for a reason - check the output
of the 'dmesg' command.

Frank Sweetser fs at, fs at        | $ x 15
Full-time WPI Network Tech, Part time Linux/Perl guy |
Woody: What's going on, Mr. Peterson?
Norm:  A flashing sign in my gut that says, ``Insert beer here.''
                -- Cheers, Call Me, Irresponsible

 Tue, 30 Dec 2003 03:57:35 GMT   
 hdparm doesn't "stick"

if you want the IDE settings to stay the way you configured them with
hdparm, use this:
hdparm -k1 /dev/<harddisk>

i.e. hdparm -c1 -d1 -m8 -k1 /dev/hda will set hda in 32 bit mode with
DMA on and multiple sector count at 8. the -k1 option will results in
restoring these settings upon a IDE reset.

hope this helps


 Tue, 30 Dec 2003 17:33:42 GMT   
   [ 7 post ] 

Similar Threads

1. $PATH doesn't "stick"

2. append ="128M" doesn't work

3. "make" doesn't work

4. klogd "doesn't" anymore

5. shutdown doesn't "shutdown"

6. INN on Linux, "Transfer permission denied", FAQ answer doesn't work

7. "Ping" doesn't work properly

8. "host" doesn't work

9. "Cabletronic 21xx" doesn't work

10. ELM doesn't open "mailbox"?

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software