macOS 'The disk was not ejected properly' fix that actually works

macOS Errors Beginner 👁 2 views 📅 May 29, 2026

That annoying 'disk not ejected properly' popup? Here's the fix in 30 seconds, 5 minutes, or 15+ minutes. Pick your level.

What's actually happening here

You unplugged a USB drive or external SSD, and macOS threw up a nagging alert saying 'The disk was not ejected properly.' Even when you did eject it properly. The culprit here is almost always one of three things: a lingering file handle, a corrupted volume directory, or Spotlight indexing your drive while you're trying to yank it. We'll hit all three.

Fix 1: The 30-second killswitch — disable Spotlight on that drive

This is the #1 cause on macOS Ventura and Sonoma. Spotlight opens a file handle on the external drive the moment you plug it in. When you eject, that handle sometimes doesn't close fast enough, and macOS screams. Here's the fix:

  1. Open System Settings (or System Preferences on older macOS).
  2. Go to Siri & SpotlightSpotlight Privacy.
  3. Click the + button, then select your external drive from the Finder sidebar.
  4. Click Choose.

That's it. Next time you plug in that drive, Spotlight won't touch it. No file handle locking. No false 'not ejected' errors. This fixes it for 80% of people. If the error still shows up, move to Fix 2.

Fix 2: The 5-minute disk repair (First Aid in Disk Utility)

Your drive's directory might have a minor corruption. This doesn't mean your data's gone — just that the volume's journal is grumpy. Happens a lot if you've plugged/unplugged the same drive dozens of times without properly ejecting (we've all done it).

  1. Open Disk Utility from Applications → Utilities.
  2. In the sidebar, select your external drive (the physical drive entry, not the volume name under it).
  3. Click First AidRun.
  4. It'll check and repair the drive's partition map and volume structure. Let it finish — takes 1–5 minutes depending on drive size.
  5. Repeat the same step for the volume underneath. Yes, run First Aid on both levels.

After that, eject and re-plug. If the error's gone, you're done. If not, we're going deeper.

Fix 3: The 15+ minute nuke — reset NVRAM and kill stale kernel extensions

This is for the stubborn cases where the drive is fine, Spotlight's off, but macOS still throws the error every single time. Something in the kernel's USB stack or NVRAM is holding onto a stale reference. Here's the real fix:

Step 1: Reset NVRAM (or PRAM on Intel Macs)

Works on Intel Macs. For Apple Silicon (M1/M2/M3), a normal restart does the same thing — the NVRAM reset happens automatically on those chips.

1. Shut down your Mac.
2. Turn it on and immediately press and hold Option + Command + P + R.
3. Hold for about 20 seconds (you'll hear the startup chime twice on Intel).
4. Release.

Step 2: Delete the com.apple.finder plist that caches eject state

Finder remembers which drives were recently plugged in. Sometimes that cache gets corrupted.

1. Open Terminal (Applications → Utilities).
2. Run:
   rm ~/Library/Preferences/com.apple.finder.plist
3. Then kill Finder:
   killall Finder

Step 3: Force unmount via Terminal (if the drive is stuck in 'in use')

If the drive won't even eject cleanly and you get 'disk in use' errors:

1. In Terminal, type:
   diskutil list
2. Find your drive identifier (something like disk4s2).
3. Force unmount:
   sudo diskutil unmountDisk force /dev/disk4
   (replace disk4 with your actual identifier)

Step 4: Check for third-party kernel extensions

Tools like NTFS-3G, Paragon NTFS, or old USB driver packs sometimes interfere. Go to System SettingsGeneralLogin Items & Extensions. Under Kernel Extensions, disable anything tied to external storage that you don't need. Reboot after disabling.

When to just live with it

Honestly? If none of this fixes it, and the drive works fine otherwise — reads/writes fine, ejects on command — just ignore the popup. Some cheap USB enclosures send the wrong signal to macOS when disconnected. It's not your Mac's fault. I've seen this on Sabrent and Orico enclosures specifically. Swap the enclosure if you want it gone. Otherwise, click 'OK' and move on with your day.

Fix Time Success rate
Disable Spotlight 30 seconds ~80%
Disk Utility First Aid 5 minutes ~15%
NVRAM reset + plist purge 15+ minutes ~4%
Bad enclosure (replace it) Varies ~1%

Pro tip: If you're in a hurry, just disable Spotlight on the drive. That's my first move every time. You can re-enable it later if you actually need search on that external drive (which you probably don't).

Was this solution helpful?