Connecting an external solid-state drive (SSD), USB flash drive, or Time Machine backup disk to your Mac should provide seamless data storage and retrieval. However, waking your MacBook or Mac mini from sleep only to be greeted by multiple notification banners stating “Disk Not Ejected Properly: Eject ‘[Drive Name]’ before disconnecting or turning it off” signals recurring connection drops. In macOS, external filesystems—such as APFS, HFS+ (Mac OS Extended), or exFAT—employ write-caching routines where file modifications are buffered in RAM before being committed to physical storage. When an external drive disconnects unexpectedly due to USB bus power drops during system sleep, loose physical cabling, or faulty USB hubs, macOS logs an unsafe dismount error to protect against data corruption. This guide outlines why external drives disconnect on macOS and provides practical methods to resolve the issue.
What Causes the ‘Disk Not Ejected Properly’ Error on Mac?
In macOS, an external storage volume must be unmounted via Finder before electrical disconnection to ensure all cached data transactions are flushed to disk. Common causes of unexpected dismounts include:
- USB Port Power Suspension During Sleep: macOS power management suspending power delivery to external Thunderbolt and USB-C ports when the Mac enters low-power standby mode.
- Energy Saver Drive Spindown Policies: The operating system attempting to put inactive physical hard drives to sleep, causing controller firmware timeouts on certain third-party enclosures.
- Faulty Cables or Passive USB Hubs: High-bandwidth NVMe external SSDs drawing more peak current than unpowered USB hubs or worn USB-C cables can deliver.
- Corrupted Drive File System: Damaged partition maps or directory structures triggering the macOS kernel to force-unmount volumes to protect data integrity.
- Third-Party Disk Utilities or Antivirus Software: Background software scanning drive sectors during sleep and holding file locks when power states shift.
Method 1: Adjust Energy Saver and Sleep Settings in macOS
Preventing macOS from cutting power to storage drives while the display is sleeping resolves disconnections on desktop Macs and docked MacBooks.
- Click the Apple menu and select System Settings.
- Scroll down in the left sidebar and click Lock Screen.
- Ensure “Turn display off on battery when inactive” and “Turn display off on power adapter when inactive” are configured appropriately, but do not sleep the machine completely if active transfers occur.
- Next, navigate to Displays > click Advanced… at the bottom.
- Enable the toggle for Prevent automatic sleeping on power adapter when the display is off.
- For older macOS versions or Intel Macs, navigate to Battery > Options… and uncheck Put hard disks to sleep when possible.
Method 2: Connect External Drives Directly to Thunderbolt / USB Ports
Unpowered multi-port dongles and USB hubs frequently suffer voltage drops when multiple peripherals are attached.
- Disconnect your external drive from any third-party USB-C hub, monitor hub, or passive dongle.
- Connect the external drive directly into a native Thunderbolt or USB-C port on your Mac.
- If using a high-performance external NVMe SSD, ensure you are using a certified Thunderbolt 3/4 cable capable of delivering up to 40 Gbps and full bus wattage.
- If your external enclosure requires auxiliary power, connect its dedicated power brick rather than relying exclusively on bus power.
Method 3: Run First Aid via Disk Utility to Repair Partition Maps
Repeated unexpected dismounts can introduce filesystem errors; running Apple's First Aid tool verifies and repairs catalog structures.
- Open Disk Utility (press Command + Space, type
Disk Utility, and press Enter). - Click View in the top toolbar and select Show All Devices.
- Select your external drive volume in the left sidebar.
- Click the First Aid button in the top toolbar.
- Click Run in the confirmation dialogue box.
- Disk Utility will inspect the partition map, verify extent allocators, and repair damaged directory entries.
- Once First Aid reports success, click Done.
Method 4: Reset the System Management Controller (SMC) on Intel Macs
On Intel-based MacBooks and iMacs, the SMC manages hardware power states, USB port voltage regulation, and sleep triggers.
- Shut down your Mac completely.
- On Intel laptops with a non-removable battery: Press and hold Control + Option + Shift on the left side of your built-in keyboard, then press and hold the Power button (or Touch ID) for 10 seconds.
- Release all keys simultaneously, then press the Power button to turn on the Mac.
- On desktop Intel Macs (Mac mini, iMac): Unplug the power cord for 15 seconds, plug it back in, wait 5 seconds, and power on.
- (Note: Apple Silicon M1/M2/M3/M4 Macs perform automatic hardware controller resets upon standard reboot).
Method 5: Check and Update External Enclosure Firmware
Third-party external drive enclosures (such as those powered by ASMedia or Realtek bridge chips) occasionally require firmware updates to resolve macOS sleep bugs.
- Identify your external drive brand and enclosure model (e.g. SanDisk Extreme, Samsung T7/T9, OWC Envoy).
- Visit the manufacturer's official support page.
- Download the dedicated drive management companion application (e.g. Samsung Magician for Mac or SanDisk Dashboard).
- Check for available drive firmware updates designed to fix sleep/wake protocol incompatibilities.
- Apply the update according to the manufacturer's instructions.
For more macOS maintenance tips and external storage solutions, explore the Digitash macOS archive.