iPhoto Unable to write to library Check that you have permission to write to the library directory.

Yesterday I had a perfectly good ext. HD with 15 different iPhoto Libraries on it.


I have backups of my ext. HDs, and yesterday I needed to do a bit of switching around, so I took another disk which had been a clone backup, repartitioned it, and copied the ext HD with iPhoto libraries to it using SuperDuper! so I've got a backup of my precious photos. Today I went to open an iPhoto library on original drive I always use and all **** has let loose. I've had different error messages ranging from


The iPhoto Library is locked, on a locked disk, or you do not have permission to make changes to it. iPhoto can try to repair the permissions.


to


iPhoto Library Manager was unable to open the library “Max's photos” The library “Max's photos” appears to be in use by another copy of iPhoto (e.g. a copy running on another machine, accessing the library over the network). Please quit any other copies of iPhoto that have this library open and try again.


and


The disk “xxx” wasn’t ejected because one or more programs may be using it. You can try to eject the disk again or click Force Eject to eject it immediately.


I have managed, one way or another, to get all the libraries working again. Some through repairing permissions, and some through opening directly from iPhoto and repairing. (I usually use iPhoto library manager but it couldn't open a few of them).


However, there is one stubborn library (2 years worth of family pictures), and I'm getting the error message

Unable to write to library “xxx” Check that you have permission to write to the library directory.


How shall I deal with that? I was going to follow some advice about opening package contents and trashing iPhotoLock.data but I don't want to make the situation worse.


And finally

Why did this happen?

And what about the new backup drive I did yesterday, will I encounter all the same problems if I try to open any of those libraries?

And if I copy again, which I do periodically, is the same thing going to keep happening?


I know you won't have all the answers, but a bit of help understanding what has just happened would be good!


Only other info I can give is that both HDs were plugged into a Belkin hub. They were both Lacie D2s, with usb3 cables, the belkin hub is usb 2. The clone which was on the 2nd drive before I repartitioned it was from my old iMac running Mountain Lion.

Posted on Jul 4, 2014 1:11 AM

Reply
49 replies

Apr 1, 2015 11:52 AM in response to Reubania

I held the Option-Command keys and selected the iPhoto icon in my Dock. It launched iPhoto and then gave me the options of repairing permissions/rebuilding database etc.

That will launch iPhoto and the First Aid Tools on the current iPhoto Library. To be sure, that iPhoto will try to repair a certain iPhoto Library, double click the library and not the iPhoto icon in the Dock.

Jun 11, 2015 12:36 PM in response to Yer_Man

Piggybacking! I just dragged and dropped all my video files from my (full) MacBook onto my EHD. Deleted about 200 .mov files that are safe on the EHD and I can open on the iMac. Now on my Macbook I go to open my iPhoto library and it gives me the error in the original post:

iPhoto Unable to write to library Check that you have permission to write to the library directory.


I also can't find a "ignore permissions" tick box on my EHD from my iMac. Some education on this would also help me. I don't see how it should affect my current iPhoto library? It's not linked/moved/associated with my EHD except when I move files there, like I did just today with the video files. How do I get access to my iPhoto library back? TIA!


EDIT: I tried to start a new thread but it says I'm not allowed.

Jun 11, 2015 10:52 PM in response to Icelyn

250 GB, 0 free.


You have a major problem - I cannot stress this enough - a very big problem.


OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.


Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.


Your first priority is to make more space on that HD. Nothing else can be done until you do.


Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.


Again, I cannot stress this enough. It sounds like your iPhoto Library is damaged from being on an overfull disk. You need to make a lot of space on that disk and you need to do it first before doing anything else.


Here's how to move an iPhoto Library:


Make sure the drive is formatted Mac OS Extended (Journaled)


1. Quit iPhoto


2. Copy the iPhoto Library from your Pictures Folder to the External Disk.


3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.


4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.


Regards



TD

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.

iPhoto Unable to write to library Check that you have permission to write to the library directory.

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