external hard drives can't be safely ejected because used by system

Hi,

I use external hard drives to work. A few times now the system has refused to eject the drives stating that an app was using the drives, without saying which one. Does it even if all apps are closed.

Also tried to erase a disk and it said that it couldn't due to being used by kernel (i disconnected the disk and it worked after).


Any idea of the cause?

Using an M4 macbook, latest OS.

MacBook Pro 14″, macOS 15.1

Posted on Dec 30, 2024 2:03 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 31, 2024 4:43 AM

Unless you enter the drive in System Settings > Spotlight > Privacy, you risk Spotlight indexing the drive when you want to eject it and you won't be able to because the drive is in use by a system process.


That's one issue. If you launched an application to access a file on that external drive and did not close and quit that Application, then the drive will still register as in use, and eject will fail.


Any Finder window open on that external drive, or any Terminal application that has changed the directory or is accessing files on that external drive will prevent a successful eject as they keep the drive in use.

5 replies
Question marked as Top-ranking reply

Dec 31, 2024 4:43 AM in response to NicolasRouleau

Unless you enter the drive in System Settings > Spotlight > Privacy, you risk Spotlight indexing the drive when you want to eject it and you won't be able to because the drive is in use by a system process.


That's one issue. If you launched an application to access a file on that external drive and did not close and quit that Application, then the drive will still register as in use, and eject will fail.


Any Finder window open on that external drive, or any Terminal application that has changed the directory or is accessing files on that external drive will prevent a successful eject as they keep the drive in use.

Dec 30, 2024 2:37 PM in response to NicolasRouleau

NicolasRouleau wrote:

Hi,
I use external hard drives to work. A few times now the system has refused to eject the drives stating that an app was using the drives, without saying which one. Does it even if all apps are closed.

Apps are never closed. They are constantly running in the background.


Any idea of the cause?

Some background app is using the drive.


You can add the drive to Spotlight Privacy in System Settings > Spotlight. That will (might) keep Spotlight from using the drive. If all else fails, you can shutdown the computer and then safely remove the drive.

Dec 31, 2024 1:53 AM in response to John Rose6

There are reports related to macOS 15 Sequoia and External Drives being problematic when attempting to " external hard drives can't be safely ejected "


Having experienced the same issue on a M4 Desktop with version 15.2


I came across this interesting article from Carbon Copy Cloner


https://support.bombich.com/hc/en-us/articles/20686422368663-Why-can-t-I-eject-the-destination-volume-after-the-backup-task-has-completed


Specifically the subsection related to " Attempt to unmount " and " Finding the offending file and application " and

" It's usually Spotlight "


In my specific case, while using CCC on an external SSD Drive to Clone / Backup the computer


The drive just would not unmount


Resorted to reformatting the drive and setting it up anew in CCC and it worked







This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

external hard drives can't be safely ejected because used by system

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.