Debian / Ubuntu / OMV: HD Idle: HDD Standby
After my HDDs did not want to move into standby mode (spin-down) after the set time or too early, I was looking for an alternative to the power management of the HDDs.
I have 4 different HDDs, from different manufacturers with different sizes in a BTRFS Raid1 array. Theoretically, all 4 HDDs should behave the same, but some go into standby mode when activating the power saving mode during operation, others not at all ...
While researching for a solution, I came across hd-idle.
This variant is completely independent from the firmware, i.e. from the power management of the hard disk: The service monitors the access to all hard disks and treats them all the same. Of course, the power management of the hard disk should be deactivated for this.
Installation
apt-get install debhelper
mkdir hd-idle_download
cd hd-idle_download
wget sourceforge.net/projects/hd-idle/files/hd-idle-1.05.tgz
tar xvfz hd-idle*.tgz
cd hd-idle
dpkg-buildpackage
sudo apt-get install build-essential
dpkg-buildpackage
cd ..
dpkg -i hd-idle_*.deb
sudo nano /etc/default/hd-idle
# start hd-idle automatically?
START_HD_IDLE=true
timeout to 20minutes
HD_IDLE_OPTS="-i 1200 -l /var/log/hd-idle.log"
Control with:
service --status-all
or
sudo service hd-idle status
start with:
sudo service hd-idle start
stop with:
sudo service hd-idle stop

{{percentage}} % positive

THANK YOU for your review!
Top articles in this section
After I installed a fan in my NAS, it always ran at top speed. In the BIOS I could set the speed, but the automatic mode did not work properly. Using the service fancontrol the speed of the fan can be linked to any sensor and any threshold and controlled automatically.
The currently available Linux kernel has the version: 6.3.4 (found: 2023-05-24). Source: www.kernel.org. The Linux distributions, as an example Debian or Ubuntu used new kernel versions only with some delay, accordingly the used kernel versions are usually somewhat older. Which kernel is active on a Linux system can be read out with the following command:
My goal was to use Docker on a homebuilt NAS and later on a Mini-PC as a Container-Server. The operating system I used was the server version of Ubuntu, which is available in the form of an installation media on the official Ubuntu site: ubuntu.com/download/server. The current Ubuntu version is: 23.04 (found: 2023-04-21)