Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

My iTunes library has disappeared and looking in the Music/iTunes folder, I see an 'iTunes Library (Damaged)' file. All of the music appears to still be there, so I am guessing it is just the database that is damaged. Is there a way to recover the library, like from the xml file? There is also a folder with Previous iTunes Libraries that are a couple months old. Can I just copy and rename one of those files?

share|improve this question
    
what specific information do you want to recover ? playcounts and ratings ? –  kraymer Aug 10 '11 at 20:36
    
Yes... playlists, ratings, playcounts. –  g . Aug 10 '11 at 22:06
1  
ok, once the recovery is done I suggest you to opt for a more robust way to store ratings, see tunecrux.com/resilient-id3-embedded-ratings (blog post of mine). For playcounts, Lastfm has the advantage to work with many music players. –  kraymer Aug 11 '11 at 8:20

2 Answers 2

Apple's documentation on recreating your iTunes library if it is corrupt:

iTunes: How to re-create your iTunes library and playlists

Last Modified: April 07, 2011

share|improve this answer
1  
This mentions that the xml file doesn't contain all the data in the database. What information is missing? Would it be better to use one of the Previous iTunes Libraries even though it is a bit out of date? –  g . Aug 10 '11 at 22:04
    
I don't have specifics but I believe you might lose your custom playlists, for instance, and might need to manually recreate them. All the ID3 tags are stored in the individual sound files themselves, so those should be preserved. And I would also guess that after a rebuild you would need to log into the iTunes Store and run the menu command to look for album artwork and download some of the artwork all over again. –  Wheat Williams Aug 10 '11 at 22:17

I just copied one of the backup files from the 'Previous iTunes Libraries' folders and renamed it to iTunes Library which was quick and easy. I imagine the effectiveness of this solution depends on how old these files are as they are meant to be a backup for upgrading iTunes rather than a timely backup. It worked well for me though and I didn't have to re-create playlists or download album artwork.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.