April 01, 2020, 03:38:30 am

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


SATA drive does not spin down with HDPARM

Started by Brakelmann, May 29, 2016, 09:09:19 am

Previous topic - Next topic

Brakelmann

Hi,

I updated my cubitruck today using armbian legacy, and installed on NAND.
Everything works perfect so far.

Just a little problem I am fighting with.
Trying to spin down my SATA drive does not work as expected.
When I put the drive to sleep using
"hdparm -y /dev/sdb" it works as expected.

Using "hdparm -S 12 /dev/sdb" returns
"/dev/sdb:
setting standby to 12 (1 minutes)"

But the drive does not spin down after a minute.

Any idea how to get that solved.

Thanks, Brakelmann.


phelum

Hi,
No real answer but 'man hdparm' mentions that the effect of the S command varies for some drives.  Perhaps your drive is one of these.  Maybe try 'S 1' and other settings to see what results you get.  I use 'S 0' to stop drives from spining down but it doesn't work on some drives here.

Cheers,
Steven

Brakelmann

Thanks for your reply, Stevie.

I was not able to solve this spin down issue with Optin S.
I created a cronjob wich is executed each hour which set the disk to standby using the option -y of hdparm.

This works.

Cheers, Stefan.