The Disk Wasn’t Ejected Because One or More Programs May Be Using It on Mac

Getting a “The disk wasn’t ejected because one or more programs may be using it” notification can be a huge inconvenience, as it interrupts your workflow and could corrupt your data. MacKeeper’s Memory Cleaner lets you manually close apps and processes, helping you free up memory without losing your data.

System Requirements: macOS 10.11 or later

60+ million downloads

i

AV-TEST certified

AV-TEST is an independent lab that checks the effectiveness of antivirus apps against real malware samples.

i

Notarized by Apple

Notarization by Apple is a security measure to check if software is free from malicious components.

i

Trustpilot is an independent digital platform that hosts insightful and honest consumer reviews.

The Disk Wasn’t Ejected Because One or More Programs May Be Using It on Mac
Written by   Aya Masango
Published: May 23, 2025

Why you see a “The disk wasn’t ejected because one or more programs may be using it” message

Your Mac shows you a “The disk wasn’t ejected because one or more programs may be using it” message when apps and processes, like Finder, are running in the background, preventing your disk from ejecting.

 

The warning message is a built-in macOS safety feature that protects your data from corruption or loss by preventing files from reading or saving to the drive when you try to eject them.

 

Explore more about these scenarios below.

1. Active programs using disk

Some background apps and programs, like Music, keep files open on your external disk, even if they’re closed on your laptop. This means they can continue to access your disk, preventing you from ejecting it.

2. System processes

Your Mac device could still be performing tasks that access the disk, like Time Machine backups and file indexing, preventing ejection. Ensure that no critical processes are in progress before attempting to eject your disk.

3. Caching and open files

Some files can remain open or cached in the background, even after closing an application. Take Quicklook, for example. Its QuickLookUIService process can stay open even when the app is closed.

4. Background system services

Background apps responsible for monitoring system file changes can block you from ejecting your disk if they’re actively monitoring. These processes include Spotlight indexing, antivirus scans, and iCloud syncing.

A note from our experts:

 

Ongoing processes can be a nuisance, standing in the way of ejecting your disk. Use MacKeeper’s Memory Cleaner to manually kill redundant apps and processes and safely eject your disk without damaging your files.

 

Here’s how we successfully stopped ongoing processes using MacKeeper’s Memory Cleaner:

  1. Download and install MacKeeper.
  2. Open the app and choose Memory Cleaner > Open > Apps & Processes.
  3. Review the list of ongoing processes, hover over each process you want to kill, and click the X icon that appears.
MacKeeper’s Memory Cleaner is opened on a Mac. Click on Apps & Processes and press the icon next to a process to kill background system services.

What to do when you can't eject a disk on a Mac because it’s in use

Follow these steps if you’re struggling to eject a disk from your Mac:

  1. Close all open files and apps to protect your data.
  2. Force eject via Finder.
  3. Identify active processes.
  4. Check Time Machine backups.
  5. Restart Mac.
  6. Eject via Terminal if you’re comfortable using it, as it’s a complex process.
  7. Disable Spotlight indexing for the disk.

Carefully follow the in-depth guide below to fix the issue of your disk not being ejected properly on Mac.

1. Close all open files and apps

Closing open files and apps helps you protect your data and eject the disk safely.

 

Here’s how we do it:

  1. To close files, right-click on the file in Finder and press Command + W.
  2. To close an app, open it and press the Command + Q keys on your keyboard. Alternatively, close all apps: click on the Apple icon > Force Quit, select the target apps > Force Quit.
The Force Quit Applications window is opened on a Mac. Click Firce Quit to close all open files and apps via the Apple menu in the menu bar.

Are your apps unresponsive? Here’s an advanced method we use to force-quit apps in this case:

  1. Press the Command + Option + Esc keys. This will open the Force Quit Applications window.
  2. Select the app and hit the Force Quit button.
The Force Quit Applications window is opened on a Mac. Click Force Quit to close all open files and apps via the Apple menu in the menu bar.

2. Force eject via Finder

If you still can’t eject your disk, try force ejecting it instead. This helps when a disk won’t eject using standard methods.

 

Here’s how we do it:

  1. Open Finder.
  2. Hold down the Option key while simultaneously clicking the Eject button.

3. Identify active processes

Identifying the processes preventing your disk from ejecting is crucial for successfully ejecting it. You can find active processes in Activity Monitor, which is located in the Utilities folder—the same place where Disk Utility is located on Mac.

 

We found active processes in Activity Monitor by following the steps below:

  1. Open Activity Monitor by clicking on Finder > Applications > Activity Monitor.
  2. Activity Monitor shows you the process consuming the most resources in the CPU tab, but you can select other tabs like Memory if you prefer. Go through the list to identify active processes.
  3. Select an active process, click on the X icon at the top of the window, and click on Force Quit.
Mac’s applications are listed in Finder. Click on Activity Monitor to identify an active process, so you can kill it and eject your disk.
Step 1. Open Activity Monitor
Mac’s Activity Monitor is opened on a Mac. Click on the CPU tab to identify active processes preventing your disk from ejecting.
Step 2. Check active processes in the CPU tab
Activity Monitor is opened on a Mac. Identify an active process and kill it by clicking the X icon and hitting the Force Quit button.
Step 3. Force Quit an active process

A note from our team:

Check our dedicated article "How to Kill Processes on Mac" to ensure you properly end tasks and that programs are not using your external disk.

4. Check Time Machine backups

If the drive is involved in a backup process, it’s best to wait for it to complete. Alternatively, you can temporarily stop Time Machine to pause the backup and eject the drive.

 

Here’s how we pause Time Machine backups:

  1. Click on the Time Machine icon in the menu bar (if it doesn’t appear, open System Preferences > Time Machine > Show Time Machine in menu bar).
  2. Select Backup in Progress > Pause Backup from the drop-down menu. Note that this option is only available when Time Machine is actively backing up data.
Mac shortcuts appear in the menu bar. Click on the Time Machine icon to check Time Machine backups and pause them temporarily.
Step 1. Click on the Time Machine icon
The Time Machine drop-down menu appears on a Mac desktop. Check Time Machine backups and pause any ongoing backups to eject the disk safely.
Step 2. Select Backup in Progress > Pause Backup

5. Restart Mac

Sometimes, a simple reboot clears locked processes and fixes errors like an external hard drive not showing up on Mac. Because it’s so effective, it’s usually our first solution when a Mac won’t eject our disk.

 

We follow this simple process to restart our MacBook:

  1. Click on the Apple menu in the menu bar.
  2. Select the Restart option.
The Apple menu’s drop-down menu appears against a Mac desktop. Click the Restart option to restart your Mac and try ejecting your disk again.

6. Eject via Terminal

Mac’s Terminal app comes in handy when other methods are unsuccessful. Since it’s so complex, we advise you to consider it a last resort. But if you use it, follow the steps below carefully to avoid making mistakes and losing your data.

 

This is how we use Terminal commands to eject a disk:

  1. In Terminal, enter the type diskutil list command.
  2. Identify your disk and its identifier (such as /dev/disk2 or /Volumes/ExternalDisk) and enter the following commands to unmount and eject it, respectively, pressing Enter after each one:
    • sudo diskutil unmountDisk /dev/disk2
    • sudo diskutil eject /dev/disk2
Mac’s Terminal app appears on the screen. Enter the command diskutil list to eject the disk via the Terminal app as a last resort.
Step 1. Enter the command diskutil list
The Terminal app is opened on a Mac. Enter the command sudo diskutil unmountDisk /dev/disk2 to eject the disk via Terminal.
Step 2. Enter the command sudo diskutil unmountDisk /dev/disk2
The Terminal window is opened. To eject via Terminal, enter the commands sudo diskutil unmountDisk /dev/disk2 and sudo diskutil eject /dev/disk2.
Step 3. Enter the command diskutil eject /dev/disk2

7. Disable Spotlight indexing for the disk

Your disk may fail to eject if your Mac is actively indexing files. We suggest disabling Spotlight indexing in this case.

 

Here’s how we prevent active indexing to eject a disk:

  1. Click on the Apple menu and select System Settings > Siri & Spotlight (on older macOS versions, select System Preferences > Spotlight).
  2. Click on Privacy, followed by the plus (+) icon, select the external disk you want to exclude, and hit Choose.
System Preferences is opened on a Mac. Click on Spotlight to disable Spotlight indexing for the disk and safely eject your disk.
Step 1. Open Spotlight
Spotlight Privacy settings appear in System Preferences. Add your disk to disable Spotlight indexing for the disk and safely eject it.
Step 2. Add your disk to the list

Safely close apps and processes to eject your disk

Several factors can prevent your disk from ejecting, like active programs and system processes. Try the simple fixes in our guide to safely eject your disk, leaving the more complex methods for last.

 

Closing apps and processes can be a tedious process. Use MacKeeper’s Memory Cleaner to quickly and safely quit the apps and processes preventing you from ejecting your disk.

 

Now, if you’re experiencing issues relating to your Mac’s USB accessories, it’s typically linked to power and hardware issues. Find out what to do when your MacBook USB accessories are disabled.

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.

Contents

Unlocked
PC

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

USB Port Not Working on Mac
USB Port Not Working on Mac
Mac Desktop Icons Disappeared
Mac Desktop Icons Disappeared
arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.