Mike Stand wrote:
They're not being used by any open application that would be using the three drives I had connected at the time when I discovered this issue. Unless there is something the OS is engaging them in, like indexing that AI mentioned as one possibility.
My last OS was High Sierra. What's going on nowadays with OSX is completely new territory to me.
I do mainly home audio recording (DAW) so I have external hdd's formatted HFS+ that's used for sound content.
This command lists open files on a drive:
sudo lsof | grep /Volumes/diskname
You can kill processes that are tying up the drive(s) through Activity Monitor. Often these will be one of the mds processes (Spotlight). However any number of antivirus, app cleaners, "Defender" or other security tools, can cause a disk to be tied up and not ejectable. Those security, antivirus, "cleaner" apps are all unnecessary and can cause harm by interfering with external disk management as mentioned above.
In the past (not sure it still happens), MacOS had a bug where one of the QuickLook related processes would tie up a drive, such as QuickLookSatellite, QuickLookUIService. These will show up in the lsof command above and can be killed off in Activity Monitor.
If you have any DAW related software running in the background, it may remain connected to those drives and prevent ejection. Even if you have quit that DAW software, its extensions may still be active in the background and connected to one or more drives, preventing ejection.