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.
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:
Closing open files and apps helps you protect your data and eject the disk safely.
Here’s how we do it:
To close files, right-click on the file in Finder and press Command + W.
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.
Are your apps unresponsive? Here’s an advanced method we use to force-quit apps in this case:
Press the Command + Option + Esc keys. This will open the Force Quit Applications window.
Select the app and hit the Force Quit button.
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:
Open Finder.
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:
Open Activity Monitor by clicking on Finder > Applications > Activity Monitor.
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.
Select an active process, click on the X icon at the top of the window, and click on Force Quit.
Step 1. Open Activity MonitorStep 2. Check active processes in the CPU tabStep 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:
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).
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.
Step 1. Click on the Time Machine iconStep 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:
Click on the Apple menu in the menu bar.
Select the Restart option.
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:
In Terminal, enter the type diskutil list command.
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
Step 1. Enter the command diskutil listStep 2. Enter the command sudo diskutil unmountDisk /dev/disk2Step 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:
Click on the Apple menu and select System Settings > Siri & Spotlight (on older macOS versions, select System Preferences > Spotlight).
Click on Privacy, followed by the plus (+) icon, select the external disk you want to exclude, and hit Choose.
Step 1. Open SpotlightStep 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.
We respect your privacy and
use cookies
for the best site experience.
Privacy Preferences Center
We use cookies along with other tools to give you the best possible experience while using the
MacKeeper website. Cookies are small text files that help the website load faster. The cookies we
use don’t contain any type of personal data meaning they never store information such as your
location, email address, or IP address.
Help us improve how you interact with our website by accepting the use of cookies. You can change
your privacy settings whenever you like.
Manage consent
All cookies
These cookies are strictly necessary for enabling basic website functionality (including page
navigation, form submission, language detection, post commenting), downloading and purchasing
software. The website might malfunction without these cookies.