Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix "Couldn't Unmount Disk" Error on Mac

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

When macOS says "Couldn't unmount disk", it usually means a file or app is still using the drive. The quickest fix is to close all open files and apps, then eject again. If that fails, use Activity Monitor to quit the process holding the disk, or force unmount via Terminal. Below are the exact steps.

What You'll Need

  • Your Mac (any model running macOS)
  • The external drive, SD card, or internal volume that won't unmount
  • Admin password (for Terminal commands)

Step-by-Step

  1. Close all apps and windows that might be using the disk. Check the Finder sidebar for the drive and look for any open files (like a document, photo, or video) stored on it. Quit those apps completely (Cmd+Q).
  2. Try ejecting normally again. In Finder, click the eject icon next to the drive name in the sidebar, or right-click the drive and choose Eject. If it works, you're done.
  3. Check Activity Monitor. Open Activity Monitor (in Applications > Utilities). In the search box, type the drive's name. Look for any process listed under the drive's name. If you see one, select it and click the X button in the toolbar, then choose Force Quit. Then try ejecting again.
  4. Use Terminal to force unmount. If the above doesn't work, open Terminal (in Applications > Utilities). Type the following command and press Enter:
    diskutil unmount force /Volumes/YourDriveName
    Replace YourDriveName with the exact name of your drive (no spaces? If the name has spaces, put the whole path in quotes like "/Volumes/My Drive"). This forces the unmount and should work even if something is stuck.
  5. If the drive is still not unmounting, try restarting your Mac. Save all work, then choose Apple menu > Restart. After restart, the drive should be free. If it's an external drive, you can also try unplugging it after restart (if it's not a system drive).
  6. If the drive is a system volume (like your internal hard drive) and you're trying to unmount it for partitioning or recovery, you may need to boot into Recovery Mode (restart and hold Cmd+R) and use Disk Utility there. This is only for advanced tasks like erasing or repartitioning the system drive.

Common Mistakes

  • Not closing all apps. Even a background app like a photo editor or a cloud sync client can hold a drive. Check the menu bar for apps that might be accessing the drive.
  • Using the wrong drive name in Terminal. If the drive name has a space, you must quote it. Also, the name is case-sensitive. Use diskutil list to see the exact name.
  • Forcing unmount on the system drive. Never force unmount your startup disk; it will cause a kernel panic. Only force unmount external or non-system volumes.
  • Ignoring the “Disk Not Ejected Properly” warning. This means you removed the drive without unmounting, which can cause data corruption. Always eject properly.

Tips

  • Use the Eject key on your keyboard (if available) or drag the drive icon to the Trash (which turns into an Eject icon) to unmount.
  • Check for hidden processes. In Activity Monitor, click the View menu and select All Processes to see everything. Search for the drive name or common culprits like Spotlight (mds) or Time Machine (backupd).
  • If you use Time Machine, make sure the backup is not running. You can pause it from the Time Machine menu bar icon.
  • For SD cards and USB drives, try a different port or a different computer to see if the issue is with the drive itself.

Troubleshooting

If the steps above didn't work, try these in order:

  1. Run First Aid in Disk Utility. Open Disk Utility (Applications > Utilities), select the drive, and click First Aid. This checks and repairs file system errors that might be causing the unmount to fail.
  2. Check if the drive is physically disconnected. Unplug the drive and plug it back in. Wait a few seconds, then try ejecting again.
  3. Restart in Safe Mode. Restart your Mac and hold the Shift key. Safe Mode prevents some background processes from loading, which might free the drive. After safe mode, try ejecting, then restart normally.
  4. Use the lsof command to find the exact process. In Terminal, type lsof | grep /Volumes/YourDriveName (replace with your drive path). This lists the process ID (PID) using the drive. Then use kill -9 PID to force quit it. Be careful—only kill processes you recognize as safe to quit.
  5. If nothing works, the drive may be failing. Back up any important data immediately (if you can access it) and consider replacing the drive.

Frequently Asked Questions

What does “couldn't unmount disk” mean?

It means macOS cannot safely disconnect the drive because a file or process is still using it. The system prevents unmounting to avoid data loss or corruption.

Is it safe to force unmount with Terminal?

Force unmounting is safe for external drives and non-system volumes, but it can cause data loss if files are being written at that moment. Always try normal eject first, and only force unmount as a last resort.

Why does my drive keep saying “Disk Not Ejected Properly”?

This usually happens when you unplug the drive without ejecting first. It can also occur if the drive goes to sleep while connected. Always eject before unplugging.

Can I unmount the internal hard drive?

You cannot unmount the startup disk while macOS is running. You can unmount other internal volumes (like a separate partition) if they are not in use, but the system volume is always active.

What if the drive is encrypted with FileVault?

Encrypted drives may take longer to unmount because macOS needs to lock the encryption. Make sure the drive is unlocked and not being accessed. If it's a FileVault volume, you may need to log out or restart to unmount it.

Does this work on Windows or Linux?

No, these steps are for macOS. On Windows, you'd use “Safely Remove Hardware” or the Disk Management tool. On Linux, you'd use the umount command.