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

Paul Fox linux-thinkpad@linux-thinkpad.org
Mon, 22 Jan 2007 08:56:47 -0500


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.

thanks for sending this patch.  two questions:  is this an issue
with suspend-to-ram?  or is it just with suspend-to-disk?  i use
suspend-to-ram quite a bit on my X41.

also, until this patch is in the mainstream, is there any way to
force the stop from user-level in the acpi scripts in order to
stop the disks safely?  (i'm running ubuntu edgy.)  should we
be sure halt is called in some specific way?

paul

 > 
 > If you notice the disk is being stopped twice (it will happen on Debian
 > Etch), you can either disable the stop_on_shutdown on your initscripts right
 > before a halt/shutdown, or preferably, tell halt(8) to not do it (i.e., make
 > sure halt is not called with the -h option) and let the kernel do it.
 > 
 > 

=---------------------
 paul fox, pgf@foxharp.boston.ma.us (arlington, ma, where it's 18.5 degrees)