I had success ejecting the drive after using AI (Grok) to troubleshoot. Not sure if this is all the issue is but I was able to kill the PID by using terminal commands to get my EHD to eject. This is the process that helped me:
1. Check for Hidden Processes with lsof:
• Open Terminal again.
• Type: sudo lsof | grep /Volumes/DRIVENAME (replace DRIVENAME with the exact name of your external drive as it appears in Finder).
• Enter your admin password when prompted.
• This lists any open files or processes using the drive. If something shows up (e.g., a random app or system process), note the process name or ID (PID), then quit it with sudo kill -9 PID (replace PID with the number).
• Try ejecting again after.
2. Force Unmount:
• If diskutil eject didn’t work earlier, try forcing the unmount:
• In Terminal, type: diskutil unmount force /Volumes/DRIVENAME (again, use the exact drive name).
• This is a stronger nudge than the regular unmount and might override whatever’s locking it.
3. Spotlight or Time Machine Interference:
• If the drive’s being indexed or backed up, macOS can be sneaky about it.
• Disable Spotlight temporarily:
• Go to System Settings > Siri & Spotlight > Spotlight Privacy, drag your external drive into the “Prevent Spotlight from searching” list, and click “Done.” Wait a moment, then try ejecting.
• Check Time Machine:
• System Settings > Time Machine—if it’s mid-backup, pause or skip it, then eject.