How to stop a sleeping hard disk from waking up at system halt?
I have a hard disk that's sole purpose is backup. Soon after day's first
boot a new backup is made and then the backup filesystem is unmounted
and the disk can go to sleep (hdparm -S 240). The backup filesystem is
on an encrypted (LUKS) partition which is automatically opened using
/etc/crypttab settings.
All this works nicely but a little before the system is shut down the
backup hard disk wakes up and starts spinning. I'd guess the cause is
one of these init scripts:
/etc/rc0.d:
lrwxrwxrwx 1 root root 20 2012-06-25 21:02 K10cryptdisks -> ../init.d/cryptdisks
lrwxrwxrwx 1 root root 14 2012-06-25 21:02 K11lvm2 -> ../init.d/lvm2
lrwxrwxrwx 1 root root 26 2012-06-25 21:02 K12cryptdisks-early -> ../init.d/cryptdisks-early
How can I stop this unnecessary spinning and keep the disk sleeping when
shutting down the system?
Reply to: