Author Topic: SATA drive does not spin down with HDPARM  (Read 1532 times)

Offline Brakelmann

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
SATA drive does not spin down with HDPARM
« on: May 29, 2016, 09:09:19 am »
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.


Offline phelum

  • Full Member
  • ***
  • Posts: 136
  • Karma: +5/-0
    • View Profile
Re: SATA drive does not spin down with HDPARM
« Reply #1 on: May 30, 2016, 06:27:48 am »
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

Offline Brakelmann

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: SATA drive does not spin down with HDPARM
« Reply #2 on: June 07, 2016, 05:30:15 am »
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.