How to Fix ‘Disk Not Ejected Properly’ on Mac After Sleep

Connecting external USB-C hard drives, high-speed portable NVMe SSDs, or Thunderbolt storage docks to your Mac is essential for managing backups, video projects, and expanded storage. However, one of the most persistent annoyances on macOS occurs when your Mac wakes from sleep: the Notification Centre cascades with multiple alerts warning: Disk Not Ejected Properly. Eject [Drive Name] before disconnecting or turning it off.

Beyond being an irritating visual nuisance, repeated unexpected disconnections pose a genuine risk to your data. When a drive is abruptly depowered while macOS has unwritten cached data in memory, filesystem corruption can occur on APFS, exFAT, or HFS+ volumes. Fortunately, this behaviour can be resolved by adjusting macOS power management settings, managing USB bus states, and ensuring your storage receives consistent power.

Why External Drives Disconnect During Mac Sleep

Understanding macOS’s low-power states explains why external drives disconnect when you close your MacBook lid or leave your Mac mini idle:

  • Aggressive USB Bus Power Cut: When entering deep sleep (Standby / Hibernation), macOS attempts to maximize energy savings by cutting power to external USB and Thunderbolt ports before cleanly unmounting external file systems.
  • Drive Spin-Down Conflicts: The macOS setting to put hard drives to sleep can conflict with an external enclosure’s internal sleep firmware, causing the drive to drop offline prematurely.
  • Underpowered Passive USB Hubs: External mechanical hard drives and multi-port docks require steady electrical current. Bus-powered (passive) USB hubs often fail to maintain sufficient voltage during low-power transitions.

Method 1: Disable “Put Hard Disks to Sleep” in System Settings

The primary setting contributing to premature drive disconnects is macOS’s legacy hard disk sleep directive, which attempts to spin down magnetic platters and idle solid-state controllers.

  1. Click the Apple menu () in the top-left corner and select System Settings….
  2. In the left-hand navigation pane, select Energy Saver (on desktop Macs like Mac Studio or Mac mini) or Displays (on MacBooks).
  3. On laptops, click the Advanced… button in the bottom-right corner.
  4. Locate the setting: Put hard disks to sleep when possible.
  5. Turn this setting Off (or set it to Never).
  6. On desktop Macs, ensure Prevent automatic sleeping when the display is off is toggled On.
  7. Click Done.

Method 2: Adjust Deep Sleep (Standby) Timers via Terminal

On Apple Silicon and modern Intel Macs, macOS transitions from normal sleep to a deep battery-saving state called Standby after a set period. In Standby mode, power to external USB controllers is cut entirely. You can use the native pmset power management command to manage this behaviour.

  1. Open Terminal (press Command + Space, type Terminal, and press Enter).
  2. Check your current power management settings:
    pmset -g
  3. To prevent macOS from spinning down disks aggressively when plugged into AC power, run:
    sudo pmset -c disksleep 0
  4. If you use a desktop Mac (or keep your MacBook connected to a monitor and external power), you can disable the deep standby power drop:
    sudo pmset -c standby 0
  5. Enter your macOS administrator password when prompted. The -c flag ensures these rules apply only when connected to a charger, preserving your battery when mobile.

Method 3: Connect External Drives Directly or Use a Powered USB Hub

If you connect multiple external storage drives through an unpowered USB-C adapter or multi-port travel dongle, your Mac’s USB port must distribute power across all connected accessories. During sleep transitions, brief voltage drops cause the drive controller to reset.

  • Direct Connection: Connect high-power NVMe SSDs and external backup drives directly to one of your Mac’s dedicated Thunderbolt / USB-C ports on the chassis.
  • Powered Hubs: If you require multiple drives, use an independently powered USB hub or Thunderbolt dock that plugs into a wall electrical outlet. A dedicated power supply ensures your drives receive steady current regardless of your Mac’s power state.

Method 4: Check and Repair File System Integrity in Disk Utility

If an external drive has already experienced dozens of unexpected disconnects, its partition directory or file allocation table may contain minor errors, causing macOS to struggle when remounting it upon wake.

  1. Open Disk Utility (via Spotlight or Applications > Utilities).
  2. In the top toolbar, click View > Show All Devices.
  3. Select your external drive in the left sidebar.
  4. Click the First Aid button in the top toolbar.
  5. Click Run to verify and repair any corrupted filesystem structures.

Diagnostic Checklist for Drive Disconnects

Use the table below to identify the most probable cause of drive disconnects based on your setup:

Hardware Configuration Primary Culprit Recommended Solution
Bus-powered USB travel dongle Insufficient port voltage during sleep Switch to a mains-powered USB-C hub or connect directly
MacBook plugged into external display Sleep transition cutting USB bus power Disable “Put hard disks to sleep” in Advanced Display settings
Mechanical external hard drive Enclosure firmware spin-down conflict Run sudo pmset -c disksleep 0 in Terminal
Specific single drive disconnecting Faulty or loose USB-C cable Replace cable with a certified USB 3.2 or Thunderbolt 4 cable

Protecting Your Data Integrity

Always make a habit of unmounting your external storage manually (right-click the drive icon on your desktop and select Eject “[Drive Name]”, or drag it to the Trash) before unplugging cables. Disabling automatic disk sleep and using dedicated power connections ensures your external drives remain mounted and ready every time your Mac wakes up.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.