Home > Questions

Can't eject external hard disk on Mac with photos library on it

I store my photo library on an external hard drive. However, I can't eject it normally, as I always receive a message stating that the drive might be in use by an application. Upon checking with lsof command in Terminal, I found out that an app named "photolibr" is using the volume even when the Photos app is not running. Fortunately, using Force Eject seems to work without causing any apparent damage to the photo library. But I'd like to know why and how to eject the disk without forcing it every time.

Best Answered by

iBoysoft author Jenny Zeng

Jenny Zeng

Answered on Monday, April 29, 2024

The System Photo Library is always in use when you are singed into your user account. Even if you have quitted the Photos app, there are likely still background processes like AMPLibraryAgent or photolibraryd accessing it.

So, if your System Photo Library is on the external hard drive, you'll have a hard time ejecting the disk. 

The solution is to stop the processes from using your photos library. There are two ways to do it without force ejecting your disk:

① You can quit the background processes in Activity Monitor.

  1. Ensure that the Photos app is quitted.
  2. Open Terminal and run the following command to see the processes that are using your drive. (type lsof, leave a space, then drag and drop your disk partition into Terminal and hit Enter.)lsof /Volumes/drive_name
  3. Launch Activity Monitor, find these processes, right click on one and select Quit.
  4. Retry ejecting your drive after the processes are closed.

② You can create a new library and use it as the System Photo Library.

  1. Press and hold the Option key, then open Photos.
  2. Release the key after seeing the "Choose Library" window.
  3. Click "Create New" to generate a new, empty library folder.
  4. After Photos is open, click Photos > Preferences/Settings from the menu bar.
  5. In the General tab, click "Use as System Photo Library."
  6. Eject your external drive again.

The next time you want to open the photos library on your external drive in Photos, you can repeat step 1 and 2 to select it.

If you want to learn more ways to resolve the issue when you can't eject an external drive on Mac, read this guide: How to Safely/Force Eject External Hard Drive on Mac?

 

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

kernel panic while in sleep

[Ventura]Mac Kernel Panic After It Goes to Sleep, How to Fix?

This post elaborates on the issue that kernel panic while in sleep mode on macOS Ventura. It explains this error and provides several solutions for Mac kernel panic after sleep.

How to Tips

Lösen Sie Watchdog-Timeout keine Überprüfungen von watchdog auf Mac

Watchdog Timeout: Keine Checkins von Watchdogd [Fehlerbehebung]

Einige Mac-Benutzer stoßen auf das Problem des Watchdog-Timeouts: Keine Checkins von watchdogd in 185 Sekunden (719 Gesamtcheckins seit der letzten Aktivierung der Überwachung), Herunterfahren im Gange. Wir sagen Ihnen, wie Sie es beheben können.

Macが起動しない問題を修正するためのMac接続を確認

MacBook Pro/Airが起動しない場合は?今すぐブートします

Mac/MacBookが起動しない、またはブートできない問題を修正するチュートリアル、ハードウェアまたはソフトウェアの故障による問題に関係なく。Macを今すぐ起動させます。