[ltp] (fwd) [PATCH] sd: implement stop_on_shutdown
Tino Keitel
linux-thinkpad@linux-thinkpad.org
Thu, 25 Jan 2007 13:38:58 +0100
On Thu, Jan 25, 2007 at 13:35:02 +0100, Laurent Gilson wrote:
> Hello,
>
> >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.
>
> You will have 0 problems with userspace tools. I had the same setup and
> hdparm/sdparm somewhere inside the suspend-scripts (after a sync would be
> good) works just fine.
I don't think that it is a good idea to spin down a disk that is still
mounted from userspace. To me, it sounds either dangerous (data loss),
or unreliable (disk will spin up again it a request occures after the
spin down command and before the shutdown).
Regards,
Tino