External Drive Auto-Sleep Killing Your Connection? Fix It

External drives disconnecting because they enter sleep mode. Here's how to stop that on Windows, macOS, and Linux, and why each fix works.

Your external drive keeps vanishing from Explorer, Finder, or the terminal. One minute it's there, the next it's gone. Mysteriously comes back after a few seconds, or requires a disconnect/reconnect cycle. That's not a loose cable (though always check that first). It's the drive's or the OS's power-saving kicking in at the wrong time.

What's actually happening here is the drive spins down its platters or enters a low-power state after a period of inactivity — usually 10-30 minutes. When you or another process tries to read or write, the drive needs a few seconds to wake up, which the OS interprets as a disconnect. On USB-attached drives, the USB controller might also cut power to save energy. Two different problems, same symptom.

Here are the three most common causes, ordered by how often I see them in the wild. Start with cause #1.

1. USB Selective Suspend (Windows) — The Usual Suspect

This is the #1 cause on Windows 10 and 11. The USB root hub's power management is set to "allow the computer to turn off this device to save power." Sounds helpful, but it's a nightmare for external drives that need consistent power.

The fix: Disable USB selective suspend for the root hub your drive is on. You don't need to disable it for all USB ports — just the one.

  1. Open Device Manager (right-click Start > Device Manager).
  2. Expand Universal Serial Bus controllers.
  3. Look for USB Root Hub (USB 3.0) or similar. You might see several. Unplug your external drive, then plug it back in — watch which entry disappears and reappears in the list. That's your drive's hub.
  4. Right-click that hub > Properties > Power Management tab.
  5. Uncheck Allow the computer to turn off this device to save power.
  6. Click OK. Repeat for any other root hubs if the drive still shows the issue.

The reason step 3 works: Windows applies selective suspend per root hub, not per device. If your drive shares a hub with something else (like a mouse or keyboard), the drive might still be fine while the mouse isn't affected. But some motherboards put all USB ports on one hub — in that case, unchecking that one hub fixes everything. If you're still seeing disconnects after this, move to cause #2.

2. Drive's Own Firmware Sleep Timer — The Hidden Default

Western Digital, Seagate, Toshiba — many external drives have a built-in sleep timer that's independent of the OS. You can't see it in Disk Management. It's in the drive's firmware. The drive decides to spin down after, say, 15 minutes of no activity, even if Windows is screaming "stay awake."

This is especially common on WD My Passport and My Book drives. Seagate Backup Plus drives do it too. The drive thinks it's being helpful, but on a desktop machine where you want 24/7 access, it's infuriating.

The fix: Use a tool that sends an ATA command to disable the sleep timer. On Windows, I use hdparm (via WSL) or CrystalDiskInfo. On Linux, you use hdparm -B 254 /dev/sdX. On macOS, pmset -a disablesleep 1 sometimes works, but for USB drives, the drive's own timer still applies.

For WD drives specifically, Western Digital's own WD Drive Utilities has a "Sleep Timer" setting. Set it to "Never." For Seagate, their Seagate Toolkit has a similar option. If your drive brand doesn't offer such a tool, use a generic one:

  • On Windows: Download CrystalDiskInfo. Launch it, select your external drive from the list, go to Function > Advanced Features > AAM/APM Control. Set APM (Advanced Power Management) to Performance (FEh). This tells the drive to never spin down. Apply and reboot.
  • On Linux: Run sudo hdparm -B 254 /dev/sdX, replacing sdX with your drive. 254 is the magic value that says "never sleep." Add it to /etc/hdparm.conf to make it permanent: /dev/sdX { apm = 254; }.

One caveat: not all USB bridges pass through APM commands. Some cheap enclosures ignore the ATA command entirely. If this fix doesn't work, the bridge itself is probably the problem (cause #3).

3. USB Controller Power-Saving in BIOS/UEFI — The Deep Cuts

If causes 1 and 2 didn't stop the disconnects, the issue might be in your motherboard's firmware or BIOS settings. Some manufacturers have a "USB Power Saving" or "ErP Ready" option that cuts power to USB ports after a set time. This is more common on laptops, but I've seen it on desktop motherboards too, especially ASUS and Gigabyte boards from 2020 onward.

The fix: Enter your BIOS/UEFI at boot (usually F2 or Delete). Look for these settings, depending on your board:

  • ASUS: Advanced > USB Configuration > USB Power Saving in S3/S4/S5 — set to Disabled.
  • Gigabyte: Power Management > ErP Ready — set to Disabled.
  • Lenovo laptops: Config > USB > Always On USB — set to Enabled (this keeps power flowing even when sleeping).
  • Dell laptops: Power Management > USB Wake Support — set to Enabled (and also disable USB PowerShare if that's separate).

The key here: the BIOS is controlling whether USB ports receive power during sleep states (S3, S4). If your computer enters sleep, the BIOS might cut USB power entirely, making the drive vanish. Even if your computer isn't sleeping, some BIOS versions have a "USB Idle Power" timeout that cuts power after inactivity. Disabling ErP or USB Power Saving removes that timer.

After making changes, save and exit. The drive should stay connected indefinitely now.

Quick-Reference Summary

Cause What's happening Fix Difficulty
USB Selective Suspend (Windows) OS powers down USB port to save energy Uncheck "Allow computer to turn off" in Device Manager for the drive's root hub Beginner
Drive firmware sleep timer Drive spins down after inactivity, ignoring OS Use CrystalDiskInfo (Windows) or hdparm (Linux) to set APM to 254 (never sleep) Intermediate
BIOS/UEFI USB power saving Motherboard cuts USB power after idle or in sleep Disable ErP, USB Power Saving, or enable Always On USB in BIOS Intermediate

Start with cause #1. If it doesn't work, move down the list. The good news: this is almost always fixable without replacing the drive or the cable. The bad news: you might have to try all three to find the culprit. Start with the simple checkbox, then the firmware tool, then the BIOS. You'll get there.

Related Errors in Hardware – Hard Drives
External Drive Asks to Format Every Time — Real Fix 0XC0000256 Fix 0XC0000256: STATUS_REGISTRY_QUOTA_LIMIT – Quick Steps 0XC01C0012 Fix STATUS_FLT_INSTANCE_NAME_COLLISION (0xC01C0012) Disk Quota Warning When Space Is Fine – Real Fixes

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.