Rebuilding an iTunes Library: How to Do It & What to Expect
When iTunes is performing poorly--sluggishness, weird Podcast updating behavior, etc.--and you have tried everything, the prospect arises of rebuilding the iTunes Library. Instructions are simple. The idea is that the XML Library file will inevitably be "cleaner" than the possibly corrupted ITL file which is the file that iTunes edits in managing your iTunes content, and that after rebuilding your library from the xml file, you will have a fresh, clean ITL file. So, back up your machine. Then, go to your iTunes folder and TRASH the file "iTunes ibrary.itl" in the ~/Music/Tunes Folder. Do not empty the Trash. Also, MOVE the file "iTunes Music Library.xml" to your Desktop. Then start iTunes, select Import in the File Menu and select the iTunes Music Library.xml" that is on your Desktop. It could take hours depending on the size and you can just wait until the automatic rebuild is complete. Incidentally, I strongly recommend that you also disconnect your Mac from the Internet during this entire procedure; more on that later.
Here is the caveat in rebuilding your Library: Apple purposely does not document the ITL file and will only say that most but not all of the information is written to the XML file, a file that technically only exists so that third party applications might be able to work with the iTunes Library. So what information will be missing after you rebuild you library from the XML file? Here is what I found:
i. Music library and playlists: Good news, this remains intact. However, if your ITL file was corrupted you will discover some funny business. For example, there may be items such as Podcasts you have converted to Music files that reappear as Podcast files. You may find that there are files that are missing or files that you know you have, but seem to be missing from the new iTunes Library. There are various utilities or iTunes plugins such as those from the Doug's Applescripts site that will automate the discovery of these and other problems. Also, alas, the Date Added for all files will be today's date and time, not the day and time from as long as 10 years ago.
Your iDeivces (iPods, iPhones, and iPads) will see this rebult library as entirely new. Thus, you will need to decide which Playlists, Artists, etc. to manage/import into each of your iDevices as though they are brand new. Basically, this is a time consuming slog, but you will need to do it. All will be erased and reimported even though they are already on your device. Dumb but there you have it.
Movies, TV Shows, Audiobooks, Books, and Photos: These will remain intact with the same general caveats and iDeivce reimport issues as with the Music files. Namely, you will need to decide what you want to sync anew.
Apps: Here is something that is not included n the XML file. Fortunately, the fix is to simply drag the contents of the Mobile Applications folder into iTunes and drop it. The import will be automatic. However, there may be multiple versions of some of your apps. about which iTunes will warn you and ask for a decision. Unfortunately, the file names of the multiple version apps are not given. So, my technique is to keep the newest version and leave the older one where it is, keeping a list of all of the ones you did not import. After you are done with the import you can go to the Apps window in iTunes, find the imported versions of those files, right click the icon, and then select "Show in Finder." You will then know the file name of the kept file and by inference can identify and decide what you want to do with the other version. In may cases it turns out to be a downrev version that can be moved elsewhere. However, it could also be a version for, say, your iPhone, that does not work with your iPad. In this case, import it and keep it. I would suggest keeping all of the seemingly orphaned apps around for awhile just in case you later find you need them.
Good news: When you connect your iDevice(s) to iTunes you will find that iTunes accepts the apps already installed on them. You need do nothing further in most cases. Wonderful.
Podcasts: Hopefully you heeded my advice to disconnect from the Internet. Because Podcasts seem to be the most problematic of the Library. If connected to the Internet you may, for example, find that the Podcasts will begin to download episodes willy nilly and contrary to your preferred settings. You don't need this right now! So, that said, the Podcasts will be restored including Podcasts that may not currently have any current episodes in them. However, you may find that you will need to Subscribe to some podcasts even though you already had a subscription. In fact, some this having to Subscribe may persist over a few days. Just go ahead and do it of you want the subscriptions. Also, make sure that the Settings for each Podcast are as you like them. You can then connect your iDevice and set it up just as though it is new and iTunes will tediously build your new Podcast library on your iDevice just as with your Music files. Of course you will need to do this for each of your iDevices.
One other thing to watch in connection with Podcasts is your Music section. I ended up with almost 3000 podcast episodes that were not current that were listed in my Music section but greyed out and identified as Streaming content. Rooting these out was a simple matter of selecting for "Genre" and deleting all of the genre "Streaming" from the Library. This list had nothing to do with the settings for Podcasts. It may be a bug or just one of the symptoms of corruption of my particular original ITL file. Notably, I was connected to the Internet when I rebuilt my Library and this is one of the reasons I highly recommend disconnecting before the rebuild. However, this gremlin could occur when you do reconnect. I don't know and I am not about to test for it, So watch for this or for other funny business.
Cloud/iTunes Match stuff: If you had turned on iTunes Match I have no help for you. I have never used it. Intuitively, I suspect this could be an epic mess in the context of rebuilding your Library from the XML file. But maybe not--hopefully not!
iPads, iPhones and the Library: In my case it appears that much of the problem with my iTunes Library file had to do with anomalies and differences betwen what my iTunes Library thought was on a device and what was actually there. Do not be surprised if you feel that you need to restore one of your iDevices. However, prior to doing so consider making an encrypted backup of your iDevice. Encrypted backups include settings and other information that could take hours to reenter and is not included on regular style backups. After a restore, you can be sure that this restoration will be the canonical status of both what is on your iDevice and what iTunes thinks is on your device. Thus you can work with this and then modify it confidently.
Epilogue: For me, this procedure restored performance to iTunes that had been getting steadily worse for about two years. The new ITL file was about 1MB smaller than the old one. Incidentally, even though the ITL fle was modified by iTunes with most major iTunes versions, it traced its provenance back to 2004 when I got my first iPod. That is very long time and so the development of errors and weirdness is not terribly surprising.
Because the Nano was previous synced to another comuter/iTunes library.
See the following:
Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
Similar Messages
-
hello,
when i open itunes i get the message: The iTunes Library file cannot be saved. A folder was specified instead of a file.
It seems I can't update my itunes library. how do i fix this? thanks in advanceHi there Br0x,
You may want to try rebuilding the iTunes library as an initial troubleshooting step. Take a look at the article below for more information.
iTunes: How to re-create your iTunes library and playlists
http://support.apple.com/kb/ht1451
-Griff W. -
I downloaded the new version of itunes and when i plug my phone into the computer and try and do something in itunes it wont let me because my device is synced to another itunes library. how do i get my old itunes back? or how can i sync my stuff into the new itunes with out deleting anything off my phone? HELP
Copy the iTunes folder from the old computer to your new one.
-
I just created an iTunes library, how do I revert back to my default library?
I just created a new iTunes library, how do I return to my default library?
Quit iTunes, start it up again holding down the option key on your keyboard. When presented with the choices, select your original library.
Best of luck. -
iTunes has indicated i have another iTunes library, how do i combine the 2 libraries into 1?
My previous computer was a PC. I synced iTunes with my iPhone until the hard drive died, then I bought an iMac.
Thanks for you help.I want to be able to transfer my apps from my original itunes account that I have on my personal iphone 3 and work ipad 3 to my work iphone 4S ,as well as purchase more more apps for the work iphone with the original itunes account. Plus I need to sync all 3 of them with my work tower computer. I really appreciate you're trying to help me out.
-
I just brought a movie from itunes on my iphone and im trying to sync them onto my mac so they can be in my itunes library, how do i do this?
File>Devices>Transfer Purchases
-
How can I synch my ipod & iphone music (purchased from itunes on my old laptop) to my new laptop? I keep getting the same message on my itunes on my new laptop: " The ipod/Iphone is synched with another itunes library. An ipod/iphone can be synched with only one itunes library at a time. What would you like to do - Erase and Synch or Transfer Purchases?" What do I do?
A couple of other items:
1) I am guessing Apple does not keep a history of all my music purchases? As I did not have my entire library backed-up anywhere, and relying on the music I have on my ipod and my iphone as my only source of itunes music....I have lost over 500 songs!!!
2) I used to have an Apple account under another account name, and since have switched to a new account name. Is there anyway to find the history of purchases from my old Apple account name and transfer these over to my new account name and onto my new laptop?
I hope someone can help, I am having a very difficult time trying to obtain answers. AngieThe iphone/ipod is NOT a storage/backup device. Not maintaining a backup copy is a big mistake.
You can transfer itunes purchases from your iphone/ipod to your computer:
Authorize your computer for all accounts and then click File>Transfer Purchases -
I had to restore my computer to the factory settings, which means my itunes library was lost except for what was on my ipod nano. How do pull the songs from my ipod back onto my computer? I have over 200 songs. There is no way I can re-purchase them! Any help?
How to use your iPod to move your music to a new computer
-
The iPod is synced with another iTunes Library, how do I sync it with my new MacBook Pro without erasing contents of iPod?
Copy everything from your old computer, or your backup copy of your old computer, to your new one.
-
my computer crashed and had to be restored to factory settings losing ituness collection of music. My ipad has my itunes library. how do i get the music collection from the ipad to the computer?
You should be able to copy iTunes purchases over to your computer's iTunes via File > Devices > Transfer Purchases. For music from other sources (e.g. copied from CDs) you will need a third-party program to copy them back from your iPad - there are some listed half-way down this page which should work : https://discussions.apple.com/docs/DOC-3991
-
I have a new IPod Touch gen4, I came from an old gen 3, I want to sync this new onw with my ITunes library; How can I do this?, thanks for your help and comments!
Was the iPod setup via iTunes on this computer?
Setup via wifi?
Was the iPod previous synced to another iTunes library/computer?
Have you successfully synced from this iTunes library/computer before?
Do the songs play in iTunes?
Do you have the right boxes checked to sync?
iTunes: Syncing media content to iOS devices and iPod
Try syncing using the manual method -
I accidentally erased music somehow from my itunes library, how can i get it back?
i accidentally erased music somehow from my itunes library, how can i get it back? I'm not sure how I did it, but I do know something has been wierd ever since. i remember using it and arranging songs, and then, bing! Songs were missing. Please help!
Not quite sure what info you need to answer this. I dont have all my music synced to icloud unfortunately...at least not that i'm aware of.You either have an incredibly complex computer setup or I think you are confusing terminology here. If you have iTunes set to share your library with others in your iTunes preferences then other computers in the area will see it as an item when they are running their iTunes and have it set to check for shared libraries. Your husband is probably seeing this when running iTunes on his computer. You can disable this sharing on your computer and/or he can set his not to pick up shared libraries.
By the way, an iTunes account is something you log into when you want to buy something from Apple. On your computer it is simply your iTunes collection or your iTunes application. So you need to turn off sharing in your iTunes application preferences.
Your husband is seeing "his" iTunes collection when running iTunes, but it is possible he doesn't have anything in it if it is a brand new computer. -
I just clean installed maverick on my computer and I have nothing in my iTunes library, how can I get back all the music I have bought?
From your backups. By doing a clean install you erased your startup volume. You may have installed OS X, but your personal software was erased. You can restore from backups if your have them. If not, then you've lost it all, permanently.
-
Content is missing from my itunes library, how do I get it back?
Content is missing from my itunes library, how do I get it back?
Use your backup copy of your computer.
If for some reason you have failed to maintain a backup copy, then you can redownload some itunes purchases in some countries:
Download past purchases - Apple Support -
I bought a MAC for the first time and plugged my Itouch into it to download my music on it, but is says The iPod “Rick's IPOD” is synced with another iTunes library. An iPod can be synced with only one iTunes library at a time. What should I do?
Same as you would if you bought a pc; copy everything from your old computer to your new one. Then you can just sync everything from the new computer, as you did with the old one.
Maybe you are looking for
-
@RELATIVE() equivalent function in Financial Reporting Studio?
All, Is there an FR equivalent function to the @RELATIVE() function in Essbase? Specifically, I'm trying to select Level 0 descendants of a particular member. e.g. @RELATIVE(MEMBER,0) would be the equivalent function in Essbase. I've tried to use the
-
Alert forwarding triggers mail notification
Hi. I have configured a new product connector to forward alerts from SCOM to JIRA. The connector works fine, but every time I forward an alert to connector using "Forward to" command from alert context menu, it triggers mail notification subscription
-
Support for multiple computers
An ability to organize your photo/video collection on multiple computers using multiple copies of PSE. What if the photos are stored on a home server/shared drive and you wish to organize and use photoshop elements on multiple computers?
-
Passing user info into precompiled flex2 .swf
Hello all, Using flex builder to precompile my .swf how do I then pass client info to the SWF when a user accesses it? I have information like profile_id and user_id that need to accompany all of my remote calls, so how do I get them loaded into the
-
My iphone 5 is horrible since last update to 6.1
Here is a new one. Since I updated to 6.1 my iphone 5 is now sticking on screens. For instance. I open texting. I go to attach a picture and photos app will open ontop of messages. Then it will randomly start opening up google usually or another app