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
diskarbitrationddaemon 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:
- Click the Apple menu in the top-left corner and open System Settings.
- Navigate to Displays or Energy Saver (depending on your Mac model).
- Click the Advanced… button in the bottom-right corner.
- Locate the setting Put hard disks to sleep when possible and toggle it Never or Off.
- 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:
- In System Settings, navigate to Battery.
- Click Options… in the bottom-right corner.
- Enable the toggle for Prevent automatic sleeping on power adapter when the display is off.
- Set Wake for network access to Always or Only on Power Adapter.
- 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:
- Disconnect the external drive from any third-party USB-C pass-through dongles, monitor USB hubs, or unpowered splitters.
- Connect the drive directly to a native Thunderbolt / USB-C port on the chassis of your Mac.
- 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.
- 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:
- Press
Command + Space, typeDisk Utility, and press Return. - Click View in the toolbar and select Show All Devices.
- Select your external disk container from the left sidebar.
- Click First Aid in the top toolbar and press Run.
- Disk Utility will verify partition maps, repair catalog trees, and check APFS snapshot containers.
- 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:
- Open Terminal via Spotlight.
- Check which background processes are blocking or triggering sleep events:
pmset -g assertions - Verify current power management disk sleep timers:
pmset -g | grep disksleep - To completely disable disk spin-down while on AC power, execute:
Enter your administrator password to apply the policy.sudo pmset -c disksleep 0