[ltp] (fwd) [PATCH] sd: implement stop_on_shutdown
Tino Keitel
linux-thinkpad@linux-thinkpad.org
Thu, 25 Jan 2007 13:35:52 +0100
On Thu, Jan 25, 2007 at 13:25:26 +0100, U Kuehn wrote:
> Tino Keitel wrote:
> >
> > 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.
> >
> Hi Tino,
>
> a related question: what does it take to shut it down even from
> userspace? I have a USB/Firewire HD adapter. While with firewire I can
> shut down the disk with sdparm, the same thing does _not_ work when the
> disk is connected via USB.
>
> Any ideas or hints?
I can use eject for this: eject /dev/sdb
This very likely depends on the USB HD adapter.
Regards,
Tino