Disable all HDD spin down?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
crik91
Posts: 48
Joined: Mon Mar 20, 2017 7:51 am

Disable all HDD spin down?

Post by crik91 »

Hi, I have two hard drive connected to my Raspberry Pi 3. One is SATA III, one is IDE, all with relative HDD box via USB.

This is the situation:

Code: Select all

root@DietPi:~# hdparm -C /dev/sda

/dev/sda:
 drive state is:  unknown
root@DietPi:~# hdparm -C /dev/sdb

/dev/sdb:
 drive state is:  standby
root@DietPi:~# 
/dev/sda ==> IDE drive
/dev/sdb ==> SATA drive

What I have to do to disable ALL spin down?

Thank you! :D
User avatar
Fourdee
Site Admin
Posts: 2783
Joined: Tue Feb 06, 2007 1:36 pm

Re: Disable all HDD spin down?

Post by Fourdee »

IDE look unsupported
SATA looks fine


You'll need to edit /etc/hdparm.conf, and configure section /dev/sda:

Code: Select all

#DietPi external USB drive. Power management settings.
/dev/sda {

        spindown_time = 0 # = disabled
        apm = 254

}
Also add one for sdb
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
crik91
Posts: 48
Joined: Mon Mar 20, 2017 7:51 am

Re: Disable all HDD spin down?

Post by crik91 »

Hi, for /dev/sda (IDE disk) that lines already exists in hdparm.conf .
I created that lines for /dev/sdb (SATA disk) but the results is:

Code: Select all

root@DietPi:~# hdparm -C /dev/sdb

/dev/sdb:
 drive state is:  standby
Is that ok?
Thank you!
crik91
Posts: 48
Joined: Mon Mar 20, 2017 7:51 am

Re: Disable all HDD spin down?

Post by crik91 »

That disk continuous to spin down. Sometimes I found it unmounted(only SATA drive: /dev/sdb) :roll:
User avatar
Fourdee
Site Admin
Posts: 2783
Joined: Tue Feb 06, 2007 1:36 pm

Re: Disable all HDD spin down?

Post by Fourdee »

crik91 wrote:That disk continuous to spin down. Sometimes I found it unmounted(only SATA drive: /dev/sdb) :roll:
Its possible the drive has its own power management, and, HDParam does struggle with some USB > SATA converters which are not compliant (especially china town).

Check the available supported features available to HDparm:
http://www.linux-magazine.com/Online/Fe ... ith-hdparm
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply