How to Fix ‘Disk Not Ejected Properly’ Alert in macOS

Mac users frequently encounter a cascade of notification banners reading: Disk Not Ejected Properly. Eject ‘[Drive Name]’ before disconnecting or turning it off. This alert often appears repeatedly when waking a MacBook, Mac mini, or Mac Studio from sleep, even though the external solid-state drive (SSD), hard disk, or USB flash drive remained physically connected throughout. In severe instances, this sudden disconnection interrupts active read/write transfers and increases the risk of APFS or exFAT volume catalogue corruption.

Preventing these unwanted drive disconnects requires adjusting macOS energy management configurations, disabling USB power-saving sleep triggers, updating hub firmware, and verifying file system integrity.

Why Does macOS Unexpectedly Disconnect External Disks?

External drives disconnect in macOS due to low-level hardware power negotiation failures or software sleep states:

  • USB Bus Power Suspension During Sleep: When macOS transitions into low-power hibernation (deep sleep), it curtails electrical current to external USB ports, causing bus-powered drives to brown out and drop connection.
  • Faulty Thunderbolt or USB-C Hubs: Unpowered or poorly regulated multi-port USB hubs suffer voltage drops during peripheral handshakes.
  • Damaged Cables or Loose Connectors: High-bandwidth 10 Gbps and 40 Gbps data cables are sensitive to cable flexing or oxidised contacts.
  • APFS Volume Formatting Errors: Corrupted directory metadata causes the macOS diskarbitrationd daemon to unmount the volume to protect filesystem integrity.
  • Third-Party Disk Utilities: Background indexing tools or automated backup programmes holding uncommitted file locks when sleep commences.

Step 1: Disable ‘Put Hard Disks to Sleep’ in macOS Settings

The native energy-saving policy in macOS frequently powers down external drives prematurely:

  1. Click the Apple menu in the top-left corner and open System Settings.
  2. Navigate to Displays or Energy Saver (depending on your Mac model).
  3. Click the Advanced… button in the bottom-right corner.
  4. Locate the setting Put hard disks to sleep when possible and toggle it Never or Off.
  5. Click Done to save settings.

Step 2: Prevent Automatic Sleep When Connected to Power (Laptops)

MacBook models often sever USB bus connectivity during sleep transitions when the display closes:

  1. In System Settings, navigate to Battery.
  2. Click Options… in the bottom-right corner.
  3. Enable the toggle for Prevent automatic sleeping on power adapter when the display is off.
  4. Set Wake for network access to Always or Only on Power Adapter.
  5. Click Done.

Step 3: Connect External Drives Directly to Native Mac Ports

Bus-powered external NVMe enclosures and mechanical hard disks require consistent 5V / 900mA power:

  1. Disconnect the external drive from any third-party USB-C pass-through dongles, monitor USB hubs, or unpowered splitters.
  2. Connect the drive directly to a native Thunderbolt / USB-C port on the chassis of your Mac.
  3. If your setup requires multiple drives, utilise an externally powered USB-C hub with a dedicated AC wall power brick to prevent bus voltage collapse.
  4. Test with a high-grade Thunderbolt 3/4 or USB4 certified cable to eliminate pin connection dropouts.

Step 4: Repair File System and Directory Structures with First Aid

Repeated improper disconnections leave orphaned file pointers that cause mounting instabilities:

  1. Press Command + Space, type Disk Utility, and press Return.
  2. Click View in the toolbar and select Show All Devices.
  3. Select your external disk container from the left sidebar.
  4. Click First Aid in the top toolbar and press Run.
  5. Disk Utility will verify partition maps, repair catalog trees, and check APFS snapshot containers.
  6. Repeat First Aid on the indented volume underneath the container.

Step 5: Reset SMC and NVRAM (Intel Macs) or Run Terminal Power Management

On Apple Silicon (M1/M2/M3/M4) Macs, power management is reset across reboot cycles. For deeper power control on any Mac, inspect sleep assertions via Terminal:

  1. Open Terminal via Spotlight.
  2. Check which background processes are blocking or triggering sleep events:
    pmset -g assertions
  3. Verify current power management disk sleep timers:
    pmset -g | grep disksleep
  4. To completely disable disk spin-down while on AC power, execute:
    sudo pmset -c disksleep 0
    Enter your administrator password to apply the policy.

Get the best tech tips delivered straight to your inbox.

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