Rob Brooks-Bilson
Tech, Photography, Stuff
Tech, Photography, Stuff
December 28, 2007
This morning when I hopped on my home desktop machine, I was greeted with a nice iTunes error message telling me that my iPod was trying to sync with a library other than the one it was registered with. Huh?? A quick look at iTunes revealed the problem - it was completely blank! No songs, no podcasts, nothing. That's odd, because I have close to 30k songs I've ripped. I had a good idea what was wrong (but not how/why it happened). A quick look in my "My Documents\My Music\iTunes" directory revealed the problem. Both my "iTunes Music Library.xml" and my "iTunes Library.itl" file were only a few bytes each - when each of them should have been close to 50MB.
To make matters worse, I'm obsessed with meta-data. I have all of the album art and ID3 data for every single song - which is OK because the album art is stored in the directory for each album, and most of the meta-data is in the ID3 tags. BUT, because iTunes insists on using ratings outside of the ID3 tag format, all of the rating information I had accumulated (and associated smart playlists) was gone.
To top things off, I hadn't bothered to make a backup of my iTunes Library XML file lately because I'm running low on storage space. No excuse, I know.
Luckily, while I was looking in the iTunes directory, I noticed a sub-directory called "Previous iTunes Libraries". Inside that dicrectory were several copies of my "iTunes Library.itl" file. The most current one was about three months old - probably the last time I upgraded iTunes. Best case scenario I was looking at here was getting my library back, minus about three months worth of meta-data.
Getting iTunes to use the old .itl file was easy:
There you have it. Relatively easy way to recover a deleted or corrupted iTunes library. Now if only I knew why iTunes decided to wipe it out in the first place.
1/8/08 7:51 PM
Thanks soo much for this post !!! It's the second time this exact same problem appends to me !!! I did the same as you and now works fine !! :)
I don't have a clue why itunes does that... it has been doing that to me two times since I've upgraded to VISTA and put my itunes library on my portable 500Gig HD . I have a feeling one of them is responsable for this... Did you found out the cause of this ??
1/9/08 5:35 PM
Hi Bruno,
I'm glad you found this post helpful. So far, it's only happened to me once, and unfortunately, I still haven't found out what caused it. If you ever do find out, though, let me know.
2/2/08 1:48 AM
Thanks for such a good suggestion because such a situation also appends to me and this article helps me .No i have no clue why itunes does that.
Petter Smith
2/10/08 12:28 PM
Thanks so much for this post! I opened iTunes this morning and it was empty... and I nearly had a heart attack. Although I did lose some playlists I created in the last couple of weeks, it wasn't nearly as bad as my entire library!
Thanks again,
Rachel.
4/9/08 11:45 PM
THANKS! This fixed my iTunes. As with everyone else, don't know what caused it.
6/20/08 2:03 AM
This just happened to me as well, but somehow my other previous libraries were corrupted as well. Everything has stayed the same on my iPod but I haven't allowed to it sync yet. Is there any way to access the library file on the iPod and put it on my pc?
9/21/08 1:21 PM
Thank you sooooooooo much, thought that life as I know it was over. but all was not lost!
9/23/08 11:51 AM
thanks for this. i have read elsewhere that files can become corrupted if itunes is shut down during one of it's routines.
9/24/08 9:19 AM
I had a similar issue and tried just removing"(Damaged)" from the DB filename. so far everything is exactly as it was before, with much less work. Hopefully this will work for most people, before switching to a previous DB or letting the xml rebuild.
9/29/08 11:35 AM
Hi my computer won't allow me to delete the corrupted file. I created a backup, uninstalled, reinstalled iTunes 8 populated the new library and still the same issue. Each time I go into iTunes and exit it creates a temp file
two to be exact.
10/14/08 8:08 AM
thanks so much, most of my playlist i use are built on playcounts, i've had this itunes for over a year now so its quite finely tuned to what i like. starting over would have been so annoying
10/21/08 7:05 AM
Thank-you v much for your post. I also nearly died when the same problem happened to me (on my Mac!!!) Anyway your solution worked on a mac also, however it appears that most of the artwork has gone MIA. Looks like I will have to download again :o(
Thanks again!
10/24/08 8:03 PM
T-H-A-N-K
Y-O-U
you have no idea how this helped me. Years and years of inserting data into my library were lost in a stupid mistake.
Now i only lost 2 weeks from the last backup to today. Huge help.
12/7/08 8:22 PM
Does anyone know how to get back playlists that were deleted from itunes on windows? my program suddenly deleted all my songs and playlists and i have over 35000 songs in my itunes and it took forever to put them all into files! can anyone help?
3/16/09 11:26 AM
Unfortunately, I'm not aware of any way to recover a playlist once it's been deleted. If you have a backup of your library file, it might still be in there.
4/30/09 7:31 PM
Thank you very much for this info... you saved me a lot of grief. I have over 2,000 albums and 50 playlists that suddenly disappeared, and this really helped a lot.
9/6/09 6:15 PM
I'm a noob that is trying to retrieve tunes. My question is where were you looking that you saw "previous itunes libraries"? Were you looking in your program files, on your ipod? If you could tell me more specifically where to look I would appreciate it greatly.
Thanks.
Andy
9/8/09 12:25 PM
Hi Andy,
The additional copies of the xml library were in this directory on the computer running iTunes:
\My Documents\My Music\iTunes\Previous iTunes Libraries
Hope that helps
-Rob
5/22/10 5:02 PM
Thank you so much for the help! My husband's iTunes library became corrupted and we could not figure out how to fix it. Your solution saved us a ot of headache!!! Thank you!
8/20/11 10:31 AM
Thank you soo much this is the ONLY guide on the whole internet that worked for me (i tried many) O_O i only lost 1 month worth of my library which is about 10% of it sadly but still thanks so much :O!
2/14/12 6:08 PM
Thanks for this information. This saved my @$$. (saved me from days of iTunes playlist recreations)
I mistakenly uninstalled itunes 10.5.3 & downgraded to iTunes 10.5.0 This resulted in the loss of itunes playlists & (my playlist.xml file).
After 2 failed system restores
and using recuva
I still couldn't get to the XML file that was lost, until I came across this article
THANK YOU!!!