Prevent a USB exterior disk drive from resting
Does any person recognize if there is a classy means to inform an exterior usb drive not to rotate down after a duration of lack of exercise? I've seen cron based remedies that write a documents every min, yet absolutely nothing that gives off wonderful unixey style. There have to be a hdparm, or scsi command that I can release (usb drives are accessed using the sd vehicle driver in OpenBSD) to the drive to inform it to not rest. I'm worried that this is possibly a attribute constructed right into the controller in the unit, and also thus very little can transform it in addition to tearing the clear out of it is unit and also plunking it straight in the equipment, yet I figured I would certainly ask, on the off opportunity.
Preferably, I'm seeking an OpenBSD remedy, yet I recognize there are others around w/the very same trouble so any kind of remedies will certainly be taken into consideration for the solution.
Yeah, it is usually constructed right into the firmware. Some drive suppliers give an MS Windows based monitoring device that will certainly permit you to change numerous parameters, consisting of disabling the "rest" or rotate down timer. If you have accessibility to a Windows box it could be worth it to seek that angle.
The manual for the linux gives the adhering to details:
-B Query/set Advanced Power Management feature, if the drive supports it. A low value means aggressive power management and a high value means better performance. Possible settings range from values 1 through 127 (which permit spin-down), and values 128 through 254 (which do not permit spin-down). The highest degree of power management is attained with a setting of 1, and the highest I/O performance with a setting of 254. A value of 255 tells hdparm to disable Advanced Power Management altogether on the drive (not all drives support disabling it, but most do).
That being claimed, it is still not assured that your drive unit will certainly sustain passing on these guidelines to the drive. The very same reference states that having the ability to make use of hdparm with an unit in all is just feasible with particular "more recent (2008 and also later on)" versions that sustain the SCSI - ATA Command Translation system, also known as "SAT". I've yet to attempt doing this on anything yet a current economical back-up drive, an HP SimpleSave version. It appears to give some minimal power monitoring capability.
And also certainly this additionally thinks that OpenBSD is
hdparm operate in similarly. I am never educated in the means of OpenBSD, so I can not aid you there.