Mountio › Blog
How to Fix "Disk Not Ejected Properly" on Mac
If you use a MacBook with a USB-C dock, a Thunderbolt dock, or a hub with an external drive permanently attached, you have probably seen this warning more times than you can count:
Disk Not Ejected Properly
Eject "DriveName" before disconnecting or turning it off.
It pops up every time you grab your laptop and walk away from your desk. It is harmless ninety percent of the time — and one of the small percent of times it isn't, you lose a file or end up running First Aid in Disk Utility. This guide explains why the warning happens, why it can quietly damage your data, and four ways to make it stop.
What "Disk Not Ejected Properly" actually means
When you plug a USB drive or external SSD into a Mac, macOS mounts it. Mounting is more than making the drive visible in Finder — the operating system starts caching reads, buffering writes, indexing files for Spotlight, and (depending on your settings) backing up to Time Machine.
Ejecting a drive properly tells macOS to flush every buffered write back to the physical disk, close any open file handles, stop background indexing, and only then mark the volume as safe to remove. If you yank the cable — or undock your laptop — before that handshake completes, those steps never run, and macOS warns you about it.
Why it keeps happening (especially with docks)
The most common scenarios that produce the warning:
- Undocking a MacBook from a USB-C or Thunderbolt dock that has an external drive plugged into it.
- Unplugging a USB hub from your Mac while drives are still attached to the hub.
- A loose or kicked cable momentarily disconnects the drive.
- The dock briefly loses power when you swap chargers or switch displays.
- A drive enters sleep and macOS treats reconnect as a removal/insert pair.
Docks are the worst offender because the workflow guarantees it happens daily. You sit down, dock, work, undock, walk away. macOS will never magically learn to unmount that drive on its own.
Is it actually dangerous?
One improper eject is usually fine. APFS and HFS+ are journaled filesystems, and macOS replays the journal on next mount to roll partially written transactions back to a consistent state. The system is designed to survive this.
The risk grows when it happens repeatedly:
- Lost writes. Buffered writes that hadn't flushed yet are gone. The file you saved 30 seconds before undocking may be missing or truncated.
- Spotlight index corruption. If indexing was mid-write, search results for that drive can break until you re-index.
- Time Machine snapshot failures. Backups in progress are aborted; some users see repeated "preparing backup" stalls afterward.
- Filesystem corruption. Rare with modern filesystems, but it does happen — especially on cheap USB enclosures with poor power delivery, or on FAT/exFAT drives shared with Windows. Disk Utility's First Aid usually repairs it.
So the warning is not just nagging — it is macOS telling you to stop doing the thing.
Four ways to fix it
1. Eject manually before you disconnect
The textbook solution. Pick whichever you find fastest:
- Finder: Click the eject icon next to the drive in the sidebar, or drag the drive to the Trash.
- Disk Utility: Select the volume in the left column and click Unmount.
- Terminal:
diskutil unmount /Volumes/YourDriveName— or unmount the whole disk withdiskutil unmountDisk /dev/disk4.
The downside: you have to remember to do it every single time, for every drive, before you stand up. In practice nobody does.
2. Disable Spotlight indexing for the drive
Open System Settings → Siri & Spotlight → Spotlight Privacy and add the drive to the privacy list. This won't stop the warning, but it reduces background activity, so an improper eject is less likely to interrupt a write.
3. Stop Time Machine from backing up to or from the drive
If the drive isn't your backup target, exclude it under System Settings → General → Time Machine → Options. Same logic as Spotlight: less background work, less risk of an interrupted write.
4. Use a menu bar mount manager
The cleanest fix is to make unmounting a one-click action — and to stop macOS from auto-mounting drives you don't actually need mounted full-time. That's exactly what Mountio does. It is a free macOS mount manager that lives in your menu bar and gives you:
- One-click unmount for any drive (or all drives) before you undock.
- Per-device auto-mount preferences — disable auto-mount for the disk that lives on your dock, and macOS stops mounting it on every reconnect.
- A live status badge so you know at a glance which drives are still mounted.
Download Mountio free for macOS
The dock-specific fix that finally works
If your drive is permanently plugged into a dock or hub — not something you carry with you — the right model isn't "eject it before I undock." It's "don't auto-mount it in the first place."
With Mountio, you flip auto-mount off for that specific drive. Now when you dock in the morning, the drive shows up in the menu bar as attached but not mounted. You click once to mount it when you actually need it, and it stays unmounted otherwise. Undocking becomes safe by default — there is nothing for macOS to complain about because the volume isn't mounted.
This is the workflow most desk-and-laptop users converge on after a few months of nagging.
Stop seeing the warning, today
Mountio is free, native, lives in your menu bar, and works on macOS 12 and later (Intel and Apple Silicon).
FAQ
Why does my Mac keep saying "Disk Not Ejected Properly" even when I'm careful?
Most often the culprit is a dock, hub, or cable issue rather than user error. Docks can briefly drop power when displays renegotiate or chargers swap, and macOS treats that as an unsafe removal. A bad cable or a drive entering deep sleep can do the same. Disabling auto-mount for the drive removes the risk entirely.
Can I disable the warning without fixing the underlying issue?
You can suppress the notification with third-party tools, but you shouldn't. The warning is the only signal that a write may have been lost. Suppressing it just hides the symptom — fixing the mount behavior fixes the cause.
Does the warning mean my drive is broken?
No. It only means the drive disconnected before macOS finished its housekeeping. The drive is almost certainly fine. Run Disk Utility's First Aid if you want to double-check, especially after several improper ejects in a row.
Will Mountio work with my Thunderbolt dock?
Yes. Mountio works with any USB or Thunderbolt dock or hub, because at the macOS level all of these surface as standard mounted volumes. If macOS sees the disk, Mountio can manage it.