External drive: disable spin down?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
ProXy
Posts: 7
Joined: Tue Oct 29, 2019 11:32 pm

External drive: disable spin down?

Post by ProXy »

Hello,

I installed DietPi on a Raspberry Pi 4 and attached an external 2.5 drive to it. I moved the data to this drive to reduce access to the sd card.

I installed samba, NZBGet, Radarr, Sonarr and NZBHydra2 on the Raspberry and I would like to keep the system running 24/7.

Atm the spin down is set to 2 minutes, but I am wondering if I should extend the timeout or disable the spin down completely to take care of the drive.

What do you think would be the best solution to keep the drive healthy as long as possible?

Thank you..
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: External drive: disable spin down?

Post by johnvick »

What's wrong with having the drive spin down? They are designed to do so to save power.
ProXy
Posts: 7
Joined: Tue Oct 29, 2019 11:32 pm

Re: External drive: disable spin down?

Post by ProXy »

Parking heads can increase the load cycle count dramatically. Most drives are designed for a maximum of 300k, I had a failed drive with nearly 2 million in half a year of usage. Just google for „load cycle count“ :)
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: External drive: disable spin down?

Post by WarHawk »

I too found that if the HD spun down (was using a 1TB MAC HD) I had to disable it with hdparm

Some howto's I found with a quick search
https://askubuntu.com/questions/39760/h ... -down-time
https://www.hecticgeek.com/2012/09/how- ... ntu-12-04/
https://unix.stackexchange.com/question ... m-sleeping

I did a super brute force script that crontab would "touch" a file in the HD in question every minute...more or less a poke, poke, poke stay away method...

Code: Select all

*/5 * * * * /bin/touch /dev/sdb &>/dev/null
5 minutes would be fine as well

This way no internal settings are tweaked but a timed action keeps it alive
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: External drive: disable spin down?

Post by MichaIng »

@ProXy
Use dietpi-drive_manager and select spin down time 0: Disabled or any other time from the list.
Post Reply