Skip to contentSkip to conversation

prevent hdd spin-down at system halt

DISCUSSION Dirk Jagdmann 3 participants 3 messages Sep 1, 2004 – Sep 2, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello developers,

is it possible to disable the spin-down (or powerdown) of hard disks when halting the system, via the kernel cmd-line or some configurations in /proc?

If not, what would be the appropriate places in the sources where the spin-down requests are sent to hard disks upon system halt?

I'm currently using x86 with IDE drives, but I think the (eventual) solution should be platform independent.

--
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org

#2 lore raw
Quoted 3 lines · Dirk Jagdmann

is it possible to disable the spin-down (or powerdown) of hard disks when halting the system, via the kernel cmd-line or some configurations in /proc?

If someone provides the shutdown infrastructure to determine the difference between shutdown/poweroff/return-to-firmware its easy. IDE already has an ifdef to handle this on Alpha SRM because the higher levels don't provide the ideal information.

#3 lore raw
Quoted 11 lines · Alan Cox
Quoted 3 lines · Dirk Jagdmann

is it possible to disable the spin-down (or powerdown) of hard disks when halting the system, via the kernel cmd-line or some configurations in /proc?

If someone provides the shutdown infrastructure to determine the difference between shutdown/poweroff/return-to-firmware its easy. IDE already has an ifdef to handle this on Alpha SRM because the higher levels don't provide the ideal information.

People are using the system_state global for this. I guess this will suit until it breaks, and we end up doing something else.

See sys_reboot().