Windows Windows 11 How-To

Stop a Hard Drive From Sleeping in Windows 11 (Power Options Fix)

Change the "Turn off hard disk after" value so your internal or external drive stays awake.

Change the “Turn off hard disk after” value so your internal or external drive stays awake.

Windows 11 powers down idle hard drives to save energy, which is why a disk can vanish from Task Manager and then take a second to spin back up the moment you open a file. If those pauses keep interrupting downloads, backups, or large transfers, you can switch the behavior off in Power Options by changing a single value.

Quick answer: Open Power Options, go to Change advanced power settings, expand Hard Disk, and set Turn off hard disk after to Never (or type 0). Click Apply and OK. The drive will stay awake.


How the hard disk sleep setting works

Sleep is a power-saving state that lets the system return to full operation quickly when you start working again. The same logic applies to storage. When the PC idles, the power plan stops the drive unless something triggers a wake-up call, and this affects both mechanical hard drives and SSDs.

By default, the Turn off hard disk after value is set to 20 minutes. After that window of inactivity, the drive drops into a low-power state. Raising the value, or setting it to Never, keeps the disk available so there is no spin-up delay when you access it.

One thing to keep in mind: a setting change takes effect over the full idle window. If you set the timer to 20 minutes, the drive only powers down after 20 minutes of no activity, not after one. Testing it correctly means waiting out the timer you actually configured.


Change “Turn off hard disk after” in Power Options

This method covers your primary and secondary internal drives. Newer Windows 11 builds show the same option, except the value reads as Never instead of a number of minutes.

Prevent Hard Disk from going to sleep
Open the Control Panel and go to Power Options. You can also click the battery or power icon in the taskbar and choose More power options.
Next to your active power plan, click Change plan settings. On the next screen, click Change advanced power settings.
In the Power Options box, click the + sign next to Hard Disk, then expand Turn off hard disk after.
Change the value. Enter 0 or set it to Never to keep the drive awake permanently. You can also type a higher number of minutes if you only want a longer idle window.
Turn off hard disk after set to Never
Click Apply, then OK, and close the window.

You know it worked when the drive no longer disappears from Task Manager during idle periods and there is no spin-up delay when you open files on it.

Tip: On a laptop you will usually see two fields, one for On battery and one for Plugged in. Set both to Never if you want the drive to stay awake regardless of power source.


Stop an external USB hard drive from sleeping

External drives often ignore the Power Options change and spin down after only a few minutes. The fix is in Device Manager, where USB power management can override the power plan.

Prevent External Hard Disk from going to sleep
Right-click Start and open Device Manager. Expand Universal Serial Bus controllers.
Right-click USB Mass Storage Device and choose Properties. Open the Power Management tab and uncheck Allow the computer to turn off this device to save power.
Repeat this for the USB Root Hub entries, unchecking the same option there too.
Disable USB selective suspend. Run the following command to jump straight to the advanced power settings, then turn off the USB selective suspend setting.
control.exe powercfg.cpl,,3

Note: You must repeat the Device Manager steps for every USB storage device you connect, since the setting is per device.


When the drive still spins down

Some external USB drives keep sleeping after roughly four to five minutes even with every Windows setting changed. That is because many enclosures manage power in their own firmware, independent of the operating system. There is no guaranteed Windows-only switch for those cases.

The workaround is to keep the drive busy on a schedule so its idle timer never reaches zero. A small periodic access does the job without forcing the platters to stay spinning all the time.

ApproachWhat it doesTrade-off
Periodic read (e.g. a scheduled dir command)Touches the drive so the idle timer resetsNeeds Task Scheduler setup; drive letter changes break it
Empty-file write tools (KeepAliveHD, NoSleepHD)Writes a small file every few minutes to keep the disk activeWrites to the drive; won’t work if the disk is write-protected
Spin-up utility on a timerRestarts the drive’s idle countdownKeeping the disk spinning continuously can shorten lifespan on drives not rated for 24/7 use

A scheduled task that simply checks for the drive’s root works well. Set the action to run cmd with arguments such as /c if exist e:\ (exit), replacing e:\ with your drive letter, and have it repeat at an interval shorter than the sleep timeout.

Periodically writing a tiny file does not measurably reduce a drive’s lifespan, so a keep-alive tool is a reasonable choice unless the disk is write-protected. Keeping the disk physically spinning around the clock is the option to think twice about, since rated spin hours vary by model and you can check the limit in the drive’s datasheet.

Leaving an external HDD plugged in full time is otherwise fine. Just avoid disconnecting it mid-task, because pulling a drive during a backup or file transfer can corrupt data.