Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hdparm -- 2 questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Cerement
Guru
Guru


Joined: 14 Jun 2003
Posts: 404

PostPosted: Sat Nov 08, 2003 8:27 pm    Post subject: hdparm -- 2 questions Reply with quote

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
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Sat Nov 08, 2003 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Sat Nov 08, 2003 8:42 pm    Post subject: Re: hdparm -- 2 questions Reply with quote

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
View user's profile Send private message
Cerement
Guru
Guru


Joined: 14 Jun 2003
Posts: 404

PostPosted: Sat Nov 08, 2003 10:32 pm    Post subject: In Summary Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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