I created a new album on Facebook and picked a particular list of people to share this album with. I used iPhoto to share pictures on Facebook using this album. After some clicking back and forth I noticed that my album was no longer restricted the list of people I had picked! The album had been reset to the default visibility settings for albums.
What a major fuck-up! :danger: :attention: :sucks: :evil:
I have resolved to delete all the Facebook albums with non-standard permissions.
I connected my Sony Cyber-shot DSC-HX5 to the newly booted Mac, started iPhoto, and got the spinning rainbow ball. Killed iPhoto and tried it again. Three times. Force Quit Applications → iPhoto (not responding)
Then I restarted iPhoto while pressing the alt and command key and told it to “repair” the library database. It did that, finished, and gave me the spinning rainbow ball. I am reminded of Comments on 2011-07-12 Mac OS X Problmems. This sucks.
I restarted iPhoto while pressing the alt and command key and told it to “examine and repair” the permissions. It did that, finished, and gave me the spinning rainbow ball. Truly, what a thing to come home to after a long weekend. Thanks, Apple.
Tried fixing ownership and permissions myself:
chown -R alex:alex /Volumes/Extern/Pictures/Alex\ iPhoto\ Library chmod -R ugo+rw /Volumes/Extern/Pictures/Alex\ iPhoto\ Library
That didn’t help.
~/Library/Caches/com.apple.iPhoto and logged out and back in. That helped! I had to start iPhoto while pressing the alt key to pick my photo library, and got to click around. Encouraged, I connected the USB cable and switched on my camera. And I got the spinning rainbow ball again.
What the hell? Switching off the camera and restarting iPhoto gets me the spinning rainbow ball. Apparently the Sony Cyber-shot DSC-HX5 can destroy iPhoto.
Ok, just deleting the cache and restarting iPhoto without logout and login:
rm -rf ~/Library/Caches/com.apple.iPhoto
That didn’t help.
Try removing both without logout and login:
rm -rf ~/Library/Caches/com.apple.iPhoto ~/Library/Preferences/com.apple.iPhoto.plist
That still doesn’t do it. I will try removing both and logout and login again.
That helped. I identified some faces, quit iPhoto, restarted it. No more problems. Except for one: How will I get new images from the camera into iPhoto?
I file copied them all to my desktop and removed most of the files on the camera:
rm -rf /Volumes/CYBER-SHOT/* rm -rf /Volumes/CYBER-SHOT/.Trashes/
(This left a few things on the memory card.)
Now switching the camera on. Interesting: iPhoto no longer starts. The camera has no pictures on it and thus no longer registers as a camera? Let’s give it a try… Taking a picture or two… Connecting it again… iPhoto starts… and asks if I want to import the pictures!
Apparently I broke the cycle.
So, what was different? What did I delete? I can think of only one thing: I rarely record video with the camera, but today there was a video file on it. Perhaps that caused iPhoto to die?
My iPhoto crashed three times in a row trying to import pictures from my iPhone. I started with 47 pictures. The third time around I said “don’t delete originals” and ended up with 7 (!) pictures in my iPhoto.
Luckily enough I found the remaining pictures in my iPhoto Library:
Alex iPhotoLibrary/Originals/Roll 208contained the 47 files I needed.
Alex iPhotoLibrary/Originals/Roll 208_2contained 12 files.
Alex iPhotoLibrary/Originals/Roll 208_3contained 7 files.
So I copied the 47 seven files from that folder to my Desktop and dragged them back into iPhoto. It worked!
As I look around in my Library folder, I find a lot of mysterious data junk, but I’m afraid of cleaning it up. Who knows what iPhoto will need? Does anybody know how to clean up an iPhone library has been in use since 2004 and contains around 7500 images? I’m using iPhoto 6.0.6.
I burnt a copy of Claudia’s iPhoto library on a DVD, for backup purposes. I also looked at the files in the iPhoto Library folder and found that the movies (little 30s AVI files from my digital camera) where not to be found in the iPhoto Library. So I decided to try the following experiment: Renaming the existing library and restoring the library from DVD. After all, that’s my worst case scenario anyway.
I renamed the existing library, and when iPhoto started, I had to create a new one. That seems reasonable. When I inserted the DVD, I was able to browse it. Cool. But how to merge them, including originals?
After some googling “merging iphoto library” I decided I just wanted to drag the folder from the Finder into iPhoto. This worked, in a way: All the pictures got imported, but since I had about twice as many images after the import, and I spotted several duplicates, I’m assuming that it imported all the files from the Data, Originals, and Modified folders. No good! I deleted the new library folder again.
Then I tried the thing that seems like the most natural thing to do: I just copied the iPhoto Library folder from the DVD into my Pictures directory. Why merge a new library with an empty one, if I can just copy it? After restarting iPhoto it regenerates the thumbnail cache, which seems reasonable enough. The number of images is correct. And the AVI files are part of the library folder, too. Great!
Simpler than I thought. It’s not always the system’s fault. I wonder how I turned out to be as paranoid and irrational about software…
I also used
rsync -av Pictures/iPhoto\ Library/ /Volumes/Extern/iPhoto\ Library/ to copy all the data to an external harddisk. Just to be safe. I heard rumours about the resource fork being used, and wonder I could use this directory to restore the data… Even though I am lazy by nature, I’ve become paranoid, so I’ll try it.
I also wonder how useful it is to run rsync when copying data between local discs. It seems to me that this would be only beneficial if writing data takes significantly longer than reading data. That might be true. But I don’t feel like measuring it. Well, actually I do, because now I decided to rsync the entire Pictures folder. It contains the iPhoto Library and iChat Icons folders. So I created a new Pictures folder on the extern disk, moved the 1.9G iPhoto Library into it, and ran
rsync -av Pictures/ /Volumes/Extern/Pictures/:
Pyrobombus:~ claudia$ rsync -av Pictures/ /Volumes/Extern/Pictures/ building file list ... done ./ .DS_Store iChat Icons -> /Library/Application Support/Apple/iChat Icons/ iPhoto Library/ iPhoto Library/.ipspot_update sent 73505 bytes received 60 bytes 147130.00 bytes/sec total size is 2019142949 speedup is 27447.06
Nice! It was blazing fast. Thanks rsync!
Anyway, back to my test: I now renamed the iPhoto Library I had copied from DVD and copied the rsync copy from the external harddisk back into my Pictures folder. (Well, Claudia’s folder…) Restarted iPhoto. The number of images is correct. The thumbnail cache does not need to be rebuilt. It seems to work. Awesome! I picked an image I had rotated, and reverted it back to the original. It worked, too! Awesome!!
You might be wondering why I’m doing all this if her pictures fit on a single DVD. Well, here MP3 collection does not… I have more backing up to do today!
Here’s what I’m using right now:
#!/bin/sh if [ -z "$1" ]; then echo Missing volume name echo Currently available: ls /Volumes/ exit 1 fi if [ ! -d "/Volumes/$1" ]; then echo Volume $1 does not exist echo Currently available: ls /Volumes/ exit 1 fi for d in Desktop Documents Movies Music Pictures; do rsync -av ~/$d/ "/Volumes/$1/$d/" done
Define external redirect: MacBook