Re: hdparms question

2004-01-14 Thread David Baron
This little goody has calls to hdparms to set dma. So I arrogantly added 32bit 
access as well! See what happens on reboot :-)

vi /etc/rcS.d/S55bootmisc.s


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Andreas Janssen
Hello

Nate Duehr (<[EMAIL PROTECTED]>) wrote:

> On Tuesday 13 January 2004 06:20 am, Akira Kitada wrote:
> 
>> Edit /etc/hdparm.conf file.
>> It's the file that hdparm script, which is in /etc/init.d,
>> read from to configure your hdd status.
>>
>> If you want to know more about it,
>> see /etc/init.d/hdparm script.
> 
> Doh.  Open mouth insert foot.  Disregard previous rant about not
> having an rc script.
> 
> /me smacks his forehead.

No need to hurt yourself. In Woody, hdparm does not have an startup
script. You can however install the hwtools package and change
/etc/init.d/hwtools to suit your needs.

best regards
Andreas Janssen

-- 
Andreas Janssen
[EMAIL PROTECTED]
PGP-Key-ID: 0xDC801674
Registered Linux User #267976


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Stephen Cormier
On January 13, 2004 12:58 pm, Nate Duehr wrote:
> On Tuesday 13 January 2004 06:20 am, Akira Kitada wrote:
> > Edit /etc/hdparm.conf file.
> > It's the file that hdparm script, which is in /etc/init.d,
> > read from to configure your hdd status.
> >
> > If you want to know more about it,
> > see /etc/init.d/hdparm script.
>
> Doh.  Open mouth insert foot.  Disregard previous rant about not
> having an rc script.
>
> /me smacks his forehead.
>
> --
> Nate Duehr, [EMAIL PROTECTED]

Oops, I should have read the rest of the thread myself before replying 
to your previous post.

Stephen Cormier


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Stephen Cormier
On January 13, 2004 12:57 pm, Nate Duehr wrote:
> On Tuesday 13 January 2004 05:36 am, Christian Schnobrich wrote:
> > What you can do is add you hdparm command to the system startup
> > scripts, so it will be executed at boot time.
>
> Some distros add an rc script for hdparm whenever it's installed. 
> Debian doesn't.
>
> Others have hdparm or "harddisk" settings in their configuration
> directories where you can add switch options that will get passed to
> hdparm during boot.
>
> Perhaps the package maintainer for hdparm could consider similar
> things for Debian.
>
> On the systems that do this, no settings are changed or anything done
> to the hdparm settings without the user changing these files, there's
> just a nice place to put all of it pre-configured to accept the
> hdparm info that gets installed with hdparm.
>
> It's more convenient but not a necessity...
>
> --
> Nate Duehr, [EMAIL PROTECTED]

On my system I have a file /etc/hdparm.conf that is used for this until 
recently it used to be /etc/default/hdparm both files are called from 
the /etc/init.d/hdparm and were installed from the Debian package.


[01:12 PM Tue Jan 13: stephen @ ~]
>$ dpkg -S hdparm.conf
hdparm: /etc/hdparm.conf
[01:13 PM Tue Jan 13: stephen @ ~]
>$ dpkg -L hdparm
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/hdparm
/usr/share/doc/hdparm/README.acoustic
/usr/share/doc/hdparm/README.Debian
/usr/share/doc/hdparm/copyright
/usr/share/doc/hdparm/changelog.gz
/usr/share/doc/hdparm/contrib
/usr/share/doc/hdparm/contrib/idectl
/usr/share/doc/hdparm/contrib/README
/usr/share/doc/hdparm/contrib/ultrabayd
/usr/share/doc/hdparm/changelog.Debian.gz
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/hdparm.8.gz
/etc
/etc/init.d
/etc/init.d/hdparm
/etc/apm
/etc/apm/event.d
/etc/apm/event.d/20hdparm
/etc/hdparm.conf
/sbin
/sbin/hdparm


Stephen Cormier



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Colin Watson
On Tue, Jan 13, 2004 at 09:57:35AM -0700, Nate Duehr wrote:
> On Tuesday 13 January 2004 05:36 am, Christian Schnobrich wrote:
> > What you can do is add you hdparm command to the system startup
> > scripts, so it will be executed at boot time.
> 
> Some distros add an rc script for hdparm whenever it's installed.  Debian 
> doesn't.  

There's the hwtools package ...

Cheers,

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Wayne Topa
David Baron([EMAIL PROTECTED]) is reported to have said:
> Thanks. What = 3?
> 

See man hdparm  (look for -c)

-- 
Any program that runs right is obsolete.
___


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Nate Duehr
On Tuesday 13 January 2004 06:20 am, Akira Kitada wrote:

> Edit /etc/hdparm.conf file.
> It's the file that hdparm script, which is in /etc/init.d,
> read from to configure your hdd status.
>
> If you want to know more about it,
> see /etc/init.d/hdparm script.

Doh.  Open mouth insert foot.  Disregard previous rant about not having an 
rc script.  

/me smacks his forehead.

-- 
Nate Duehr, [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Nate Duehr
On Tuesday 13 January 2004 05:36 am, Christian Schnobrich wrote:

> What you can do is add you hdparm command to the system startup
> scripts, so it will be executed at boot time.

Some distros add an rc script for hdparm whenever it's installed.  Debian 
doesn't.  

Others have hdparm or "harddisk" settings in their configuration 
directories where you can add switch options that will get passed to 
hdparm during boot.

Perhaps the package maintainer for hdparm could consider similar things 
for Debian.  

On the systems that do this, no settings are changed or anything done to 
the hdparm settings without the user changing these files, there's just a 
nice place to put all of it pre-configured to accept the hdparm info that 
gets installed with hdparm. 

It's more convenient but not a necessity...

-- 
Nate Duehr, [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread David Baron
Thanks. What = 3?

On Tuesday 13 January 2004 15:23, Akira Kitada wrote:
> On Tue, Jan 13, 2004 at 03:44:49PM +0100, David Baron wrote:
> > Thanks for your reply. I do not have an /etc/hdparm.conf
> > I do have an /etc/default/hdparm which is a very verbose file with
> > everything!! commented out. This is the file called out in the script.
> >
> > Would I simply uncomment the line for 32 bit access?
>
> That'll greatly depends on your needs.
>
> Mine is below. rather very simple I think.
>
> /dev/hda {
> io32_support = 3
> dma = on
> }
> /dev/hdb {
> io32_support = 3
> dma = off
> }
>
> Be sure you have to enclose attribute-value-set with brackets,
> and specify device name such as /dev/hda or /dev/hdb as above,
> before the opening bracket.
>
> After editing, let your machine reboot, and
> see what hdparm -iv /dev/hdx says!
>
> I hope it'll be your help.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Akira Kitada
On Tue, Jan 13, 2004 at 03:44:49PM +0100, David Baron wrote:
> Thanks for your reply. I do not have an /etc/hdparm.conf
> I do have an /etc/default/hdparm which is a very verbose file with 
> everything!! commented out. This is the file called out in the script.
> 
> Would I simply uncomment the line for 32 bit access?
> 

That'll greatly depends on your needs.

Mine is below. rather very simple I think.

/dev/hda {
io32_support = 3
dma = on
}
/dev/hdb {
io32_support = 3
dma = off
}

Be sure you have to enclose attribute-value-set with brackets,
and specify device name such as /dev/hda or /dev/hdb as above,
before the opening bracket.

After editing, let your machine reboot, and
see what hdparm -iv /dev/hdx says!

I hope it'll be your help.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread David Baron
Thanks for your reply. I do not have an /etc/hdparm.conf
I do have an /etc/default/hdparm which is a very verbose file with 
everything!! commented out. This is the file called out in the script.

Would I simply uncomment the line for 32 bit access?


On Tuesday 13 January 2004 14:20, Akira Kitada wrote:
> On Tue, Jan 13, 2004 at 01:29:39PM +0100, David Baron wrote:
> > My disk always come up with 16-bit access.
> >
> > Even after setting to 32-bit and also setting retain settings on reset,
> > no avail!
> >
> > How to fix?
>
> Edit /etc/hdparm.conf file.
> It's the file that hdparm script, which is in /etc/init.d,
> read from to configure your hdd status.
>
> If you want to know more about it,
> see /etc/init.d/hdparm script.
>
> Thanks.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Akira Kitada
On Tue, Jan 13, 2004 at 01:29:39PM +0100, David Baron wrote:
> My disk always come up with 16-bit access.
> 
> Even after setting to 32-bit and also setting retain settings on reset, no 
> avail!
> 
> How to fix?

Edit /etc/hdparm.conf file.
It's the file that hdparm script, which is in /etc/init.d,
read from to configure your hdd status.

If you want to know more about it,
see /etc/init.d/hdparm script.

Thanks.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hdparms question

2004-01-13 Thread Christian Schnobrich
On Tue, 2004-01-13 at 13:29, David Baron wrote:
> My disk always come up with 16-bit access.
> 
> Even after setting to 32-bit and also setting retain settings on reset, no 
> avail!

Do you mean, you've always got 16bit upon reboot? No worries, that is
the normal behaviour.

The 'reset' hdparm means is something different: if the kernel believes
that something isn't quite alright, it will reset the IDE bus. Ideally,
this should never happen, but the 10-year-old hardware serving as my
intenet gateway does it all the time...
The hdparm setting may be sticky over these resets, but when the machine
itself reboots (cpu, chipset and all), all changes will be lost.

What you can do is add you hdparm command to the system startup scripts,
so it will be executed at boot time.
An excellent opportunity to learn what actually happens when the system
boots...
You may want to start reading here:
http://www.tldp.org/HOWTO/From-PowerUp-To-Bash-Prompt-HOWTO-6.html

cu,
Schnobs


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]