HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

hd-idle — Spin down external disks after a period of idle time. More information: <https://manned.org/hd-idle>

Submitted by: @import:tldr-pages··
0
Viewed 0 times
downcommandhd-idleclispindisksexternalafter
linux

Problem

How to use the hd-idle command: Spin down external disks after a period of idle time. More information: <https://manned.org/hd-idle>.

Solution

hd-idle — Spin down external disks after a period of idle time. More information: <https://manned.org/hd-idle>.

Start a service to manage hard drive spin down. By default hard disks will spin down after 10 minutes of inactivity:
systemctl start hd-idle


Spin down a disk immediately:
hd-idle -t {{/dev/sdX}}


Set disks to never spin down, then set explicit idle times (in seconds) for disks which have "sda" or "sdb" in their device name:
hd-idle -i 0 -a /dev/sda -i {{300}} -a /dev/sdb -i {{1200}}

Code Snippets

Start a service to manage hard drive spin down. By default hard disks will spin down after 10 minutes of inactivity

systemctl start hd-idle

Spin down a disk immediately

hd-idle -t {{/dev/sdX}}

Set disks to never spin down, then set explicit idle times (in seconds) for disks which have "sda" or "sdb" in their device name

hd-idle -i 0 -a /dev/sda -i {{300}} -a /dev/sdb -i {{1200}}

Context

tldr-pages: linux/hd-idle

Revisions (0)

No revisions yet.