Re: patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread idalton
On Thu, May 24, 2001 at 03:16:44PM +, Petr Vandrovec wrote: > On 24 May 01 at 14:59, peter k. wrote: > > > > auto-parking), and since all drives are voice coil drives, then they > > > should auto-park. But i've had problems with some hard drives that were > > > spinned down (when Win was

Re: patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread Rodrigo Ventura
> "Erik" == Erik Mouw <[EMAIL PROTECTED]> writes: Erik> What was wrong with "hdparm -Y /dev/hd*" in the halt/reboot Erik> script that you need to do it in kernel? Must be sure there is no disk access after the hdparm is run. It makes sense to me that IDE drivers could shut th

Re: patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread Erik Mouw
On Thu, May 24, 2001 at 12:03:49PM +0100, Rodrigo Ventura wrote: > I am submitting a patch to kernel/sys.c that walks through all > IDE drives (#ifdef CONFIG_BLK_DEV_IDE, of course), and issues a > "sleep" command (as code in hdparam) to each one of them right before > the kernel halts. He

Re: patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread Erik Mouw
On Thu, May 24, 2001 at 02:59:18PM +0200, peter k. wrote: > well, my new 40gb ones are auto-parking i think but all the other ones from > last year aren't > and older hardware (although 1 year isnt even old for a hd) should be > supported by the kernel, right? All drives with voice coils for head

Re: patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread Petr Vandrovec
On 24 May 01 at 14:59, peter k. wrote: > > auto-parking), and since all drives are voice coil drives, then they > > should auto-park. But i've had problems with some hard drives that were > > spinned down (when Win was shutdown).. if i reset the PC (instead > > of turning it off), the hard d

Re: patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread peter k.
> > imho the idea is very good > > i was already wondering why the kernel doesnt spin down the hds when i > > shutdown... > > and its necessary because if you want to move your box the hd heads should > > be parked! > > > > - peter k. > > Aren't all IDE drives built today auto-parking? Auto-parki

Re: patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread Adrian V. Bono
"peter k." wrote: > > I'm not going to comment on the idea, just the implementation. Eww. > > imho the idea is very good > i was already wondering why the kernel doesnt spin down the hds when i > shutdown... > and its necessary because if you want to move your box the hd heads should > be parke

Re: patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread peter k.
> On Thu, May 24, 2001 at 12:03:49PM +0100, Rodrigo Ventura wrote: > > I am submitting a patch to kernel/sys.c that walks through all > > IDE drives (#ifdef CONFIG_BLK_DEV_IDE, of course), and issues a > > "sleep" command (as code in hdparam) to each one of them right before > > the kerne

Re: patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread Russell King
On Thu, May 24, 2001 at 12:03:49PM +0100, Rodrigo Ventura wrote: > I am submitting a patch to kernel/sys.c that walks through all > IDE drives (#ifdef CONFIG_BLK_DEV_IDE, of course), and issues a > "sleep" command (as code in hdparam) to each one of them right before > the kernel halts. He

patch to put IDE drives in sleep-mode after an halt

2001-05-24 Thread Rodrigo Ventura
I am submitting a patch to kernel/sys.c that walks through all IDE drives (#ifdef CONFIG_BLK_DEV_IDE, of course), and issues a "sleep" command (as code in hdparam) to each one of them right before the kernel halts. Here goes the diff: --- sys.c.ORIG Thu May 24 00:56:50 2001 +++ sys.c