Re: USB attached SATA disk idle spindown

From: Stefan Richter
Date: Tue Jun 24 2008 - 05:15:30 EST


Stefan Richter wrote:
> Johannes recently informed me that he wrote a script which is used like
> a background daemon to stop idle USB disks. The script uses
> - "cat /sys/block/${device}/stat" to watch disk activity,
> - "sdparm -q -C stop /dev/${device}" to stop the motor after
> longer inactivity.

PS: I have seen START STOP UNIT with START=0 to be dangerous with some
FireWire firmwares. (Motor cannot be restarted after that anymore.)
Other firmwares ignore the START bit and look only at the POWER
CONDITIONS field. I expect various similar firmware quirks in USB land.
--
Stefan Richter
-=====-==--- -==- ==---
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/