Putting hard disk to idle state after it has been unmounted

As i understand after disk (network or otherwise) has been unmounted by autofs it doesn’t go idle but keeps spinning. It costs energy, so i wonder is there any way to put hard disk to idle state after autofs timeout kicks in?

PS…i posted this twice. want to remove this one but don’t know how

hdparm -S <device>

should do the trick.

On Fri, 22 Oct 2010 17:36:01 +0530, cyberiad <cyberiad@no-mx.forums.opensuse.org> wrote:

>
> hdparm -S <device>
>
> should do the trick.

in my case (oS 11.3) i have to provide a timeout value as well (see man hdparm).
0 would disable spindown, 1 means it’ll wait for 5 sec w/o disk access, then spin down.


phani.