patch to put IDE drives in sleep-mode after an halt
Quoted 8 lines · Rodrigo Ventura
Quoted 4 lines
I am submitting a patch to
kernel/sys.cthat walks through all
IDE drives (#ifdefCONFIG_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: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 parked!
- peter k.
Quoted 9 lines · peter k.
Quoted 1 line
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 parked!- peter k.
Aren't all IDE drives built today auto-parking? Auto-parking became an inherent feature in voice coil drives (stepper-motor drives weren't 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 drives wouldn't come back on so i'd have to do a full shutdown of the machine.
Quoted 4 lines
Quoted 4 lines
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
Quoted 11 lines
Quoted 3 lines
be parked!
- peter k.
Aren't all IDE drives built today auto-parking? Auto-parking became an inherent feature in voice coil drives (stepper-motor drives weren't 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 drives wouldn't come back on so i'd have to do a full shutdown of the machine.
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?
plus, its really not difficult to implement spinning down the hds before halt anyway and then the kernel
leaves the system as clean as it was before booting ;) !!
- peter k.
Quoted 4 lines · peter k.
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 movement do auto park on power off by design. Only really old drives with stepper motors (Seagate ST225 and friends, over 15 years old) don't do it, but the capacity of those drives don't make it worthwile supporting anyway.
Quoted 2 lines
plus, its really not difficult to implement spinning down the hds before halt anyway
It's so easy that it should be done from the init scripts instead of from kernel. "hdparm -Y device" forces the drive to sleep mode.
Quoted 2 lines
and then the kernel
leaves the system as clean as it was before booting ;) !!
That's a silly argument. Why should the OS leave the system clean? It's the boot code's task to set up the system in a proper way.
Erik
Signature · 5 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected] WWW: http://www-ict.its.tudelft.nl/~erik/