Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 11-29-2006, 07:55 AM   #1
Registered: Jan 2006
Location: France
Distribution: Debian Wheezy, Webmin + Virtualmin (remote dedi)
Posts: 214

Rep: Reputation: 30
Making hdparm parameters permanent

Hello !

On another LQ thread, I have learned that my Mandriva2007 had not activated DMA for my hard disks, except for the one with ext2 partitions, so I have to manually activate DMA using hdparm.

for instance : hdparm -d1 /dev/hdf (and the same on my five hard disks)

However, I need to set DMA back with every reboot.
Is there a way to make changes applied thanks to hdparm permanent ?

Or else (sorry to ask but i'm still a bit new to linux), is there a precise place where to put scripts meant to be ran as root at startup, or a precise file where to add our command lines ?
I don't know if there is one, so far the only solution I can find myself is to add this to /usr/bin/ and link it to my KDE's Autostart folder.

If you have suggestions, i'll appreciate the help, thanks if you can
Old 11-29-2006, 08:45 AM   #2
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,299

Rep: Reputation: Disabled
add a line to your /etc/rc.local it is the last script to be actioned so your hardware is already detected...with root password of course


hdparm -d1 /dev/hdf
Old 11-29-2006, 09:07 AM   #3
Registered: Jan 2006
Location: France
Distribution: Debian Wheezy, Webmin + Virtualmin (remote dedi)
Posts: 214

Original Poster
Rep: Reputation: 30
Thank you Aus9

I have also received (in PM, I wonder why) another possibily, /etc/sysconfig/harddisks

Thanks again


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
How do I make my hdparm settings permanent? zmaint Mandriva 2 11-17-2006 01:44 PM
Making Ndiswrapper Permanent faref Slackware 6 05-29-2006 03:18 PM
making chmod permanent Beckerjr Linux - General 5 05-11-2005 01:08 PM
Making Changes Permanent T-u-N-i-X Linux - General 1 09-01-2003 06:47 AM
Making SMBMOUNT Permanent unclebyron Linux - General 2 01-31-2002 06:24 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:59 PM.

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