How to Fix ‘Disk Not Ejected Properly’ Warning on Mac

Waking your MacBook, Mac mini, or iMac from sleep only to be greeted by a cascading stack of notifications reading: “Disk Not Ejected Properly. Eject ‘[Drive Name]’ before disconnecting or turning it off” indicates an ungraceful hardware dismount. In macOS, external hard drives, solid-state drives (SSDs), and USB flash drives utilize write-caching to boost performance. Data is queued in volatile system RAM before being committed to physical storage blocks. When a Mac enters system sleep (Low Power Mode) and cuts bus power to USB/Thunderbolt ports while the drive’s filesystem is mounted, or when an unpowered USB hub drops signal, macOS registers an unexpected disconnect and flags the warning to alert you to potential data corruption. This guide outlines how to prevent automatic drive disconnections during sleep and ensure reliable external storage connectivity.

What Causes ‘Disk Not Ejected Properly’ on Mac?

External drives dismount unexpectedly due to power management, hardware, and filesystem triggers:

  • USB Bus Power Suspension During Sleep: macOS cutting 5V power delivery to Thunderbolt and USB-C ports when entering deep sleep states (hibernation).
  • ‘Put Hard Disks to Sleep’ Energy Saver Setting: macOS aggressively signaling spinning mechanical drives to spin down their platters during idle periods.
  • Unpowered or Faulty USB-C Hubs and Docks: Multi-port adapters lacking independent power delivery suffering voltage drops when the Mac throttles port wattage.
  • Loose or Damaged USB-C / Thunderbolt Cables: Slight physical vibrations or cable degradation causing momentary contact loss in high-speed data pairs.
  • Corrupted APFS or ExFAT Filesystem Volumes: Dirty volume flags causing macOS to dismount corrupted partitions defensively.

Method 1: Adjust Sleep and Energy Saver Power Settings

Preventing macOS from cutting drive power during system idle periods prevents unprompted dismounts.

  1. Click the Apple menu () > select System Settings.
  2. In the left sidebar, click on Lock Screen (or Displays on desktop Macs).
  3. Set “Turn display off on battery when inactive” and “Turn display off on power adapter when inactive” to your desired duration.
  4. Next, click on Battery in the left pane (or Energy Saver on Mac mini / Mac Studio / iMac).
  5. Click the Options button at the bottom-right of the window.
  6. Locate Put hard disks to sleep when possible: change this setting to Never (or toggle it Off).
  7. Enable Prevent automatic sleeping when the display is off (available when connected to a power adapter).
  8. Click Done.

Method 2: Use a Self-Powered USB Hub or Direct Connection

Bus-powered USB hubs frequently drop external storage when multiple accessories compete for current.

  1. If your external drive is plugged into a multi-port dongle containing HDMI, SD card readers, and USB ports:
    • Connect the external drive directly to one of your Mac’s dedicated Thunderbolt / USB-C ports.
    • If using a hub is mandatory, upgrade to an externally powered hub that connects directly to a wall AC outlet, delivering consistent 15W+ per port.
  2. Inspect your USB-C cable. Test with a certified 10 Gbps (USB 3.2 Gen 2) or 40 Gbps (Thunderbolt 3/4) cable to eliminate micro-disconnections.

Method 3: Repair External Drive Filesystem via Disk Utility First Aid

Repairing volume directory inconsistencies prevents macOS from unmounting volumes defensively.

  1. Open Disk Utility via Spotlight (Cmd + Space > type Disk Utility).
  2. In the top toolbar, click View and select Show All Devices.
  3. In the left sidebar under External, select your external drive volume.
  4. Click the First Aid button in the top toolbar.
  5. Click Run (or Continue).
  6. Disk Utility checks the partition map, catalog b-trees, and extents overflow files. If errors are detected, First Aid repairs the filesystem automatically.
  7. Once First Aid completes, click Done.

Method 4: Prevent Sleep Dismounts via Terminal (pmset)

Power management settings can be configured precisely using the command-line pmset utility.

  1. Open Terminal (Cmd + Space > Terminal).
  2. Disable drive sleep on power adapter by running:
    sudo pmset -c disksleep 0
  3. Enter your Mac administrator password and press Enter.
  4. The value 0 instructs the macOS kernel never to spin down or sleep external storage disks while plugged into wall power.

Mac External Disk Ejection Diagnostic Matrix

Observed Behavior Probable Root Cause Recommended Solution
Warning appears immediately when Mac wakes USB bus power suspended during deep sleep Set disksleep to 0 in pmset or Energy Saver
Dismounts while actively copying large files Voltage sag on unpowered multi-port hub Plug drive directly into Mac or use powered hub
Drive repeatedly mounts and unmounts Physical USB-C cable contact wear Replace cable with certified USB 3.2 / Thunderbolt cable
Drive mounts read-only after warning Corrupted partition dirty bit flag Run Disk Utility First Aid to repair filesystem

Configuring energy saver policies and utilizing dedicated power connections permanently eliminates ‘Disk Not Ejected Properly’ warnings on macOS.

Get the best tech tips delivered straight to your inbox.

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