Import iTunes library into clean installation of Catalina

Hullo all, hope you can help:


  • I backed up my iTunes library (the entire "iTunes" folder—contains about 95GB of music ripped from my CDs) on an external hard disk.
  • I installed Catalina on a newly reformatted hard disk on my iMac.
  • I copied the backed up iTunes library into ~/Music (Home folder → Music).
  • I launched the Music app. It showed my handful of iTunes purchases, but not my playlists nor the music I had ripped from CDs. 🤔


Clearly, my iTunes library was not upgraded at that point. The Music app was just seeing the music associated with my iCloud account. Second try:


  • I quit and I deleted the new "Music" folder that was created (~/Music/Music).
  • I launched the Music app holding down option. It asked me the choose a music Library and pointed it to the "iTunes Library.itl" file (~/Music/iTunes/iTunes Library.itl).
  • The Music app launched. Again, only my iTunes purchases appeared, no playlists. 😢


Any idea how I can get the Music app to upgrade and see my older iTunes music library? There are plenty of playlists, ratings, play counts, album artwork from rare CDs that I scanned myself, even some digitised vinyl. This process has worked with previous OS updates, so I would expect my backed up iTunes library should somehow be able to be imported.


Any thoughts?

iMac Line (2012 and Later)

Posted on Oct 14, 2019 1:29 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 14, 2020 10:04 AM

Hi all, after a bit of struggle (same issue, only importing purchases and Apple Music files), this is how it finally worked.



OLD SETUP

My trusted 2010 Mac Pro 5,1 running High Sierra with a "System" SSD boot partition and a "Data" internal HDD RAID array, where the iTunes Library is residing in a Data/Music/iTunes Library folder (the database itl. file is there and the actual music is residing in the subfolders).  This includes ~250Gigs of CD's ripped to Apple lossless.


NEW SETUP

A new Mac Mini running Catalina

An External LaCie


The intention was to move the library along with playlists and obviously the many lossless files to the Mac mini with the new library permanently residing on the external LaCie.


So I copied the entire Music/iTunes Library from the Mac Pro to the external LaCie (took a while over USB 3.0!) resulting in LaCie/Music/iTunes Library... structure


WHAT DIDN'T WORK


  1. Using the Migration Assistant.   I wanted a clean setup, created a new user on the new Mac, but the Assistant also recreated a "new old" user on the new system and suspiciously quickly copied over something.  I ended up with a new Music Library under a different user that contained neither my playlists nor the original rips, only purchased and Apple Music stuff.  No good
  2. Option-clicking the Catalina Music app and selecting the old .itl file - the same thing without even the playlists.
  3. Trying Import Playlist... from the Mac mini - nothing


So I thought if in the old setup the actual iTunes Library.itl was residing on a non-system volume (Data/Music/iTunes Library) along with all the ripped albums, how the heck the new Music app is going to tell the difference if I make the path to the library database file exactly the same?


I then changed the name of the external drive from the default "LaCie" to "Data", Option-selected the Music App on the Mac mini, pointed to the old iTunes Library.itl database  and voilà! - all of my files and playlists are here.


I hope the above makes sense. In any case, the solution seems to be to move your library and the location of the database to an external volume and do the same so you skip the extra steps here because of my unnecessarily complex scenario (moving the library from the internal hard drive an old computer running High Sierra to the external drive on the new one running Catalina)


Спасибо!

Similar questions

93 replies

Oct 15, 2019 8:33 AM in response to Orestes Chouchoulas

When you deleted the ~/Music/Music folder did you also empty the trash? If not Music may still know to look for the previous file where it is currently living in the trash, and it may also "remember" upgrading the old iTunes library so it doesn't try to do it again. I can't seem to make that happen here but offhand it is the only thing I can think of.


tt2

Feb 13, 2020 9:35 PM in response to MacMarwil

So now - in the last step we melt the Libraries -


take the „iTunes Media“ Folder within the iTunes Folder and drop it in the sidebar of the itunes GUI 🙂.


it now takes a while (and your music Files will be doubled...)


I probably do not need to mention that a Backup is a wise decision in this case 😀


after the copy process is finished, check in music.app, if all your files are referring to the right folder. Right click on a song, then preferences and then the right tab that says „file“ or similar (the new music path is needed, not the old itunes one 🙂


If everything is right, you can now be brave say goodbye to your beloved good ol’ iTunes library and delete the whole Folder... 😀

Aug 18, 2020 5:42 AM in response to Orestes Chouchoulas

Here is what I did, and it required some manual intervention. I have my iTune Library on it's own "iTunes Drive." Apple Music went ahead and created its Folders, and I halted the process early. Then I manually shifted all of my iTunes Artist / Compilation folders into the folder iTunes--the one normally found in HD/USER]/Music. I did not organize all of the files that directly, and many were bootlegs. Amazingly, I then told the new Music app to import simply the iTunes Folder on the iTunes Drive. Boy did that work. After about 1/2 hour, all the files were converted, they were better organized than I had them, and I am good to go! It was that simple. I lost absolutely nothing, and absolutely nothing was left out other than select Playlists that I created, which of course were made up of existing tunes. Essentially I could easily remake them.


To recap:


Place all of your music Folders, generally arranged by musician if not Compilations, into one Folder. Then have the new Music app Import that one Folder. And you are done. No XML files, no itl files, just raw data. Most of my music is ALAC or FLAC, and it worked flawlessly -- and the best part is that I had a TON of loose Beatles music and the new App even knew how to organize it -- i.e. by what album. It was that simple.

Oct 25, 2020 8:10 AM in response to turingtest2

turingtest2 wrote:

For Catalina your media folder should really be ~/Music/MusicMedia, which is one level higher than shown in your last image. You could potentially tap that reset button, then turn Keep organized off and back on again to restructure the folder.

tt2

That's where I put the files following the process above – it was a conscious decision. It is okay to put it one level higher like you say. But I guess in this case you'll have to put the "iTunes Library.itl" one level higher as well before you run Music with the option key.


I did attach one screenshot wrong though (I can't edit my post any longer). This is what the content of my original "iTunes" folder was:

Oct 16, 2019 2:09 PM in response to reb_tribal

4) Odd. They should have been imported unless Music > Preferences > Files has the copy files option turned off.

5) Normally you'd want your entire iCloud Music Library available unless you were testing things. In such a case you'd be better connecting to the original library rather than importing media into a new one, which requires everything to be reconciled with what is already in the cloud.


tt2

Oct 30, 2019 6:19 PM in response to Orestes Chouchoulas

Yes Yes! Finally I found someone with the same issue as me.. (Probably same as you) I have been using für 10+ years now and have put a lot of effort into organizing my music library which I cannot access anymore. This is heavily disappointing and I hope that Apple will deliver a solution soon!


Thanks for starting this thread, will definitely watch closely!



Jan 9, 2020 2:51 AM in response to Orestes Chouchoulas

Yes, my library did the same. One thing I did notice was by leaving Apple Music/iTunes open overnight it did sync quite a bit of music. But my main problem arose from having my music in an external hard drive.

I do recommend looking at the activity window in "Music" as it does seem to keep you informed of what it's doing behind the scenes.


I do wish you luck on your music library recovery/rediscovery!

`Oldfiz

Feb 14, 2020 12:51 AM in response to MacMarwil

1) you‘re absolutely right, they are on the same level.


my hierachy is:


Macintosh HD/Benutzer/USERNAME/Musik*


and as you stated right, there are two underlying subfolders in that „Musik“ Folder:


  • itunes
  • music


So when I wrote „...i moved it into the „Musik“ Folder I meant the Root Folder- long story short, they are on the same level 🙂


(I assume the itunes folder could also be stored somewhere else, As long as it is not changed during the whole moving process. But let‘s not complicate things even more 😂).


2) you got what i meant, but sure enough it could be explained better with different words and through being a native english speaker 🙂



The idea is indeed weird. I did something similar long ago back in itunes and saw the same behavior...


you can - to test things - also try it with only one album you pick out of your itunes media folder and drop it on the music.app mediathek GUI (?) then check if the path to the file has changed - cause it should have...


also make sure u back up your library as a first step.

For example: I actually copied my library from the external hdd to the „user/USERNAME/Musik“ Folder (Root🙂) on the computer and left the original as a backup on the external hdd... so to refer back to your initial question - yes doubled the library twice 😃




A guy on macrumors also posted another solution i misinterpreted, which led me to the question, what would happen if i would...


https://forums.macrumors.com/threads/catalina-10-15-music-no-importing-my-old-itunes-songs.2184506


I don‘t know if it is allowed to post links here, but ok 🙂




*it probably varies, depending on system language it might be „music“





Feb 14, 2020 5:38 AM in response to MacMarwil

(Pre-) Final report:


The step of dropping the iTunes Media folder onto the Musik Mediathek’s sidebar does NOT duplicate any files; it just added a few tunes that hadn’t been organized by the former .itl file.

AND: Adding totally new files doesn’t create a new music/media folder. The app Musik puts new music into my old iTunes Media folder. The newly created “Music” folder only contains the newly created (and active) ”Music Library” file, nothing else.


Unfortunately, if the counter on the bottom of the Musik window doesn’t lie, over 1,000 albums have disappeared.

Possibly there has been a mess of earlier tunes cleaned up (I didn’t care for my iTunes in the first years, it’s only six years that I’m doing an accurate job here) but I can’t tell for the moment.


Otherwise everything seems to run smoothly. Adding date tags have been kept (back to 2008 where a major crash made me add every tune from scratch after running iTunes since 2000).


Next step: Making my DJ software understand the new lib …

Feb 14, 2020 8:23 AM in response to MacMarwil

quote:

„AND: Adding totally new files doesn’t create a new music/media folder. The app Musik puts new music into my old iTunes Media folder.“


This sounds like you haven‘t changed the music.app media path in the preferences of the software... you can upload a screenshot of your preferences and see what it looks like...


and regarding the dj software - it better is not relying on the .xml file that itunes used to create...

Apr 6, 2020 12:50 PM in response to Smettila

Keeping track:


after deleting everything in the Music folders, and rebooting, I actually got (partially) what I was hoping for! My library seemed to just... appear! None of the music files are present, but they're mostly available to download from the Cloud, thanks to iTunes Match.


Copying the files I have in the correct location, does NOT equal to downloading the file. In fact, if I place the music file in the correct folder where Music expects to find it, the track still shows as downloadable, and if I do that, it creates a file right next to the one I placed myself, with a " 1" suffixed to the name. No good.


But I could live with not having all my physical files, if:

  • I could totally trust the matching algorithm (I can't, I've caught it before)
  • the song count were exactly the same


After rebooting to the OLD disk, I discover it's short about 150 songs, which is about 2% of my songs. No good.


So I export my song library. I get an xml file. All the file locations are formatted with the old file structure, iTunes Media etc etc.. I don't think I want that. I reboot to the NEW disk. I export the library again, to compare the two files. I cut all the info from the OLD library file except for one song, which happens to have not been matched, nor uploaded, but still showed up from my Cloud library (kudos!).


Importing that one-song library does nothing. Apparently. Let's try a reboot.

Jul 6, 2020 12:55 PM in response to Snowdog212

The solution posted above by Snowdog212 is the correct solution and better than the one marked as the solution in this thread. For anyone in the future who experiences this problem, you may encounter an error when trying to open the "iTunes Library.itl" file. If it says something about connected devices, turn off home sharing and media sharing in system preferences, then reboot your computer. After that, the directions posted by Snowdog212 solved the problem.

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.

Import iTunes library into clean installation of Catalina

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