USB hard Drive spinnign down and causing deadlock

For discussion of topics specific to MythTV on Raspberry Pi devices
Post Reply
Robert Worrall
Junior
Posts: 16
Joined: Sun Jun 25, 2017 2:38 pm
Great Britain

USB hard Drive spinnign down and causing deadlock

Post by Robert Worrall »

Hello,

I have created a pi4 backend with a USB3 caddie containing a 4tb purple hard drive.
In my wisdom I purchased a caddie that has a sleep function this however is now causing problems and is causing the backend to deadlock.

Any ideas on how I can get round this?

Many thanks

Rob.
Gribnif
Junior
Posts: 88
Joined: Wed May 14, 2014 12:46 pm
United States of America

Re: USB hard Drive spinnign down and causing deadlock

Post by Gribnif »

I have never run into a case where the enclosure caused a drive to spin-down due to inactivity. Usually this is due to a setting in the drive, itself. You can check if that's the case here with:

Code: Select all

hdparm -C /dev/sdX
(where X is the appropriate drive letter.) If it is in standby mode, you should be able to prevent that permanently with:

Code: Select all

hdparm -S 0 /dev/sdX
Post Reply