View previous topic :: View next topic |
Author |
Message |
Cerement Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/7033193784c8086693c9f7.jpg)
Joined: 14 Jun 2003 Posts: 404
|
Posted: Sat Nov 08, 2003 8:27 pm Post subject: hdparm -- 2 questions |
|
|
From the gentoo install guide and from various comments in forums, I've settled on a set of fairly conservative options for hdparm:
hdparm -d1 -A1 -m16 -u1 -a64 /dev/hdX
1) once I set these options, are they permanent or do I need to add them to one of the bootscripts or rc-update somewhere?
2) can I use these same settings on my CD and DVD drive? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TheCoop Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/50962178541c2cd784cf26.jpg)
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Sat Nov 08, 2003 8:34 pm Post subject: |
|
|
have a look at /etc/init.d/hdparm and /etc/conf.d/hdparm
I dont think the -a, -A or -m options will work with cd drives, but you can always try it and see _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nephros Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/145383245043ee5edfbdaa3.png)
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Sat Nov 08, 2003 8:42 pm Post subject: Re: hdparm -- 2 questions |
|
|
Cerement wrote: |
1) once I set these options, are they permanent or do I need to add them to one of the bootscripts or rc-update somewhere?
|
They are not permanent, and you can add them to /etc/conf.d/hdparm and do a "rc-update add hdparm default"
Cerement wrote: |
2) can I use these same settings on my CD and DVD drive? |
Some options do apply to CDROMs, some do not. Just try it out.
In my expierience, they get set up automatically to their best values by the BIOS. Also, they are slow anyway (max. UDMA2), not much sense in tuning. Setting -d1 if DMA isn't enabled automatically would be a good idea though. You can also set the maximum speed with -S, which for some drives has the advantage that they get more silent, and take less time to spin up before they are read from.
cheers, nephros
EDIT: note to self, post faster. _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cerement Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/7033193784c8086693c9f7.jpg)
Joined: 14 Jun 2003 Posts: 404
|
Posted: Sat Nov 08, 2003 10:32 pm Post subject: In Summary |
|
|
To summarize: (after playing around this morning)
see nephros reply
arguments are in /etc/conf.d/hdparm, can configure disk by disk or use all_args variable, then add to bootup with rc-update add hdparm default.
Code: | all_args="<arguments>"
# ex. all_args="-d1 -A1 -m16 -u1 -a64" |
since these are "safe" options, if they aren't valid, hdparm will ignore them
note that if you are using scsi emulation for your cd drives (currently I am) then you will get a warning at boot time, something like hdparm not enabled for scsi devices
Thanks to nephros and TheCoop for the info |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|