'Disk Not Ejected Properly' on Mac: Causes and How to Stop It
The Disk Not Ejected Properly warning usually means your Mac slept, not that you unplugged the drive wrong. Here's what causes it and how to stop it.
You wake up your Mac and there it is: “Disk Not Ejected Properly.” Your external drive disconnected while your Mac was asleep, or maybe you pulled the cable without ejecting first. Either way, macOS is not happy about it.
This warning isn’t just nagging. Improper ejection can actually damage your data. Understanding why this happens and how to prevent it will save you from corrupted files and lost work.
Why proper ejection matters
When you’re working with files on an external drive, macOS doesn’t write every change to the disk immediately. It caches some data in memory and writes it later, in batches. This is faster and reduces wear on your drive, but it means there can be data sitting in limbo, waiting to be written.
When you click “Eject,” macOS flushes all pending writes to the disk, closes all open file handles, and tells the drive it’s safe to power down. Only after all of that completes does the drive icon disappear.
If the drive disconnects before this process finishes, any data that was cached but not yet written is lost. Worse, if the drive was in the middle of writing something (like updating a directory structure), you can end up with a corrupted filesystem.
The filesystem factor
The risk level depends on your drive’s format. HFS+ (Mac OS Extended) uses journaling, a recovery mechanism that logs changes before making them. APFS uses a similar protection called copy-on-write, where new data is written to a fresh location before old data is released. Both approaches help the filesystem recover to a consistent state if something goes wrong mid-write.
exFAT and FAT32 (common for drives used with both Mac and Windows) don’t have journaling. They’re more vulnerable to corruption from improper ejection. If you regularly use exFAT drives, proper ejection becomes even more critical.
That said, these protections aren’t magic. They can recover from some problems, but they can’t recreate data that was never written to the disk in the first place. A protected filesystem on an improperly ejected drive might boot up fine but still have lost your most recent changes.
Common causes of improper ejection
The warning appears in a few different situations, and they are not equally common.
You didn’t touch the drive at all. If the warning is waiting for you first thing in the morning, or shows up right after the Mac wakes from sleep and you never went near the cable, nobody unplugged anything. This is the most common real-world cause, and it’s actually two different mechanisms that look identical from the outside.
The first is macOS actively spinning the drive down. System Settings has a “Put hard disks to sleep when possible” option (covered below) that idles a connected drive after a period of inactivity to save power. On a drive that doesn’t handle spin-down cleanly, it drops off the bus instead of parking properly, and macOS reports an improper ejection the next time something tries to read from it.
The second is a bus-powered drive simply losing power. A drive that draws power from the USB port instead of its own adapter can lose that power entirely when the Mac sleeps, particularly when it’s connected through a hub. When the Mac wakes up, the drive is gone, and macOS notices it was never ejected.
Sleep is common enough as a trigger that it gets its own deeper treatment: see External Drive Not Ejecting on Mac After Sleep for the full set of fixes specific to this cause.
The port can’t supply what the drive needs. A 2.5 inch spinning drive draws noticeably more current on spin-up, the moment the motor starts moving, than it does once it’s running. A hub or a monitor’s downstream USB port often can’t reliably deliver that spike, especially if other devices are drawing power from the same source at the same time. The drive browns out, redetects a moment later, and macOS logs the whole thing as an improper ejection. Plugging the drive directly into the Mac, or into a hub with its own power adapter, is the fastest way to find out if this is what’s happening to you.
Cable problems: A loose or failing cable can cause momentary disconnections. The drive drops off the bus for a fraction of a second, then reconnects. macOS sees this as an improper ejection followed by a new connection. If the warning is intermittent and follows no pattern, swapping the cable is the cheapest test before you start suspecting the drive itself.
Actually pulling the cable: Sometimes the simplest explanation is correct. You needed the drive, you unplugged it, you didn’t eject first. We’ve all done it, and it’s the one cause on this list that ejecting more carefully actually fixes.
How to prevent the warning
Eject before disconnecting: This seems obvious, but it’s the most effective solution. Right-click the drive and select “Eject,” or drag it to the Trash, or use the eject button in Finder’s sidebar. Wait for the icon to disappear before touching the cable.
Prevent sleep disconnection: If your drive disconnects during sleep, the disk-sleep setting is usually the fix. In System Settings, open Battery (on a laptop) or Energy (on a desktop Mac), then turn off “Put hard disks to sleep when possible.” If the drive is bus-powered and loses power outright when the Mac sleeps, also turn on “Prevent automatic sleeping when the display is off” so the Mac stays awake instead of sleeping.
Use quality cables and hubs: If you’re experiencing random disconnections, try a different cable. USB-C cables especially vary wildly in quality. Same goes for hubs. A powered hub (one with its own AC adapter) is more reliable than a bus-powered one.
Check drive health: Drives that are failing can exhibit intermittent connectivity. If you’re seeing the warning frequently with a specific drive, run Disk Utility’s First Aid on it. Consider whether the drive might be dying.
When ejection won’t work
Sometimes you try to eject properly but macOS refuses, saying the disk is in use. This is frustrating, but at least you know about the problem before disconnecting.
The usual culprit is some process with files open on the drive. You can find out what’s blocking ejection by opening Terminal and running:
sudo lsof /Volumes/YourDriveName
This lists every process with open files on that drive, but the names it reports are rarely obvious. These are the ones that actually hold drives on macOS:
| Process | What it is | What to do |
|---|---|---|
mds, mds_stores, mdworker |
Spotlight indexing the drive | Wait, or exclude the drive from Spotlight (below) |
backupd |
Time Machine mid-backup | Let it finish, or stop the backup in System Settings |
fseventsd |
The filesystem event log | Usually releases within seconds |
QuickLookUIService |
A Finder preview is still open | Close the Finder window or press Space to dismiss the preview |
bird |
iCloud Drive syncing | Pause iCloud sync, or wait |
Dropbox, Google Drive |
Third-party sync holding a file | Quit the app |
Finder |
A Finder window is open on the drive | Close it, or navigate elsewhere |
Terminal, zsh, bash |
A shell’s working directory is on the drive | cd ~ in that window |
Spotlight is the most common repeat offender, because it re-indexes the drive every time you reconnect it. To stop that permanently, open System Settings, then Spotlight, then click Search Privacy, and add the drive to the exclusion list. Indexing stops, Spotlight no longer holds the disk, and the drive ejects cleanly from then on. You lose the ability to Spotlight-search that drive’s contents, which for a backup or media drive is usually no loss at all.
Once you identify the blocker, quit that application or kill the process, then try ejecting again.
If macOS is refusing to eject right now and you are deciding whether to force it, whether force eject is safe depends on which of these processes is holding the disk.
If you see the warning anyway
Already got the warning? Here’s what to do.
First, check that the drive actually reconnected. If you see it on your desktop or in Finder, it’s back. If not, reconnect it.
Run Disk Utility’s First Aid on the drive. This checks for filesystem errors and repairs what it can. Even if everything looks fine, it’s worth running after an improper ejection to catch any subtle damage.
Open a few files from the drive that you were recently working with. Make sure they open correctly and contain your latest changes. If something was being written during the disconnection, this is how you’ll find out.
For drives you don’t use frequently, consider running First Aid periodically even without seeing warnings. Small problems can compound over time.
Skip the manual steps: Ejecta shows you exactly which process is blocking your drive, and lets you quit it with one click, right from your menu bar. Learn more →
A smoother workflow
If you’re constantly battling ejection issues, the problem might be the workflow itself. Hunting through Terminal to find blocking processes, killing them manually, then trying to eject again, this gets old fast.
Ejecta sits in your menu bar and shows you drive status at a glance. When something’s blocking ejection, it tells you exactly what, and lets you resolve it with a click. No Terminal, no guesswork, no crossing your fingers and yanking the cable.
The “Disk Not Ejected Properly” warning exists for a reason. Your data is worth the few seconds it takes to eject safely. But when macOS won’t let you eject, you need a way to fix that quickly, not a reason to force-disconnect anyway.
If you'd rather not use Terminal every time, Ejecta shows you exactly which process is blocking your drive, and lets you quit it with one click, right from your menu bar.
Buy Now - $29Related articles
How to Safely Eject External Drives on macOS Sequoia and Sonoma
Apple changed how drive ejection works in recent macOS versions. Here's what's different in Sequoia and Sonoma …
How to Eject an External Drive When Finder Won't Respond
Finder frozen or unresponsive? Your external drive doesn't have to stay plugged in. Here are several ways to …
How to Find, Open, and Use an External Hard Drive on a Mac
Connect an external hard drive to your Mac, find it in Finder, open your files, and disconnect it safely. A …
How to Safely Eject a USB Drive From a Mac
Every way to eject a USB drive on a Mac, plus what to do when macOS says the disk is in use and won't let it …