[ltp] (fwd) [PATCH] sd: implement stop_on_shutdown

Tino Keitel linux-thinkpad@linux-thinkpad.org
Thu, 25 Jan 2007 13:17:16 +0100


On Sun, Jan 21, 2007 at 16:22:09 -0200, Henrique de Moraes Holschuh wrote:
> This patch, plus adding the required module parameter or kernel commandline
> parameter to enable stop_on_shutdown by default is an *extremely* good idea
> on any ThinkPads that use libata (i.e. where disks show up as SCSI devices,
> /dev/sd*).
> 
> Suspending to disk without it is a Bad Idea, unless you want to make sure
> your HD will die soon, so as to be able to replace it under warranty or
> somesuch.

Hi,

this is not ThinkPad related, but maybe this patch could be useful for
me in another way.

I use an external USB hard disk that I would like to be shut down after
suspend to disk to save some energy. It contains permanently mounted
partitions, e.g. /home, so it isn't a good idea to shut it down from
userspace IMHO. Would it make sense to use the patch for this? It looks
like it is intended to work for all kinds of sd device, not just SATA.

Regards,
Tino