You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

📰 Newsroom Update

Billie Eilish is Apple Music’s Artist of the Year for 2024. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How Do I Restore Music Information?

I have a lot of music files located on my iMac hard drive. I am running 11.6.3 Big Sur.


I accidentally deleted all my listed songs in Music (not iTunes). But I kept the song files. I tried restoring the Music folder which contains Music Library.musiclibrary from TimeMachine. But the music did not reappear.


I can drag the music files back into music. But I have now lost all my star ratings.


Is there any way to restore the music information that was maintained by Apple Music?


Note that this is owned music, not downloaded Apple Music or streamed music.


[I am in a bit of a panic here.]

iMac 27″ 5K, macOS 11.6

Posted on Feb 13, 2022 1:32 PM

Reply

Similar questions

15 replies

Feb 14, 2022 1:53 PM in response to turingtest2

I am a bit confused. You mentioned that I "need to hold down Option while launching Music and then use the Choose Library option to open the restored file." That is what I am trying to do. But I cannot select the restored Library because of the message I get a message from Music (see below).


I have never merged my music with the Cloud. And only a small fraction of it is on my iPhone.


All of this music is still on my external hard drive. I can restore it by dragging it back into Music. But then I lose all the ratings and other information that I have maintained over the last 20 or so years.


I do appreciate your patience with all of this.


Feb 16, 2022 10:16 AM in response to Lawrence Hammer

After I rebooted, I found I could change the music library just by turning WiFi off and on.


However, all I could ever do is start music, then I got an image that said it was loading the music library.



Given that I did not know how long it would take to load, I let it run overnight with no luck.


I then deleted the Music Preference files located in my Library, without any effect.


I then rebooted into the Recovery mode (Command-R) and did a disk repair on both virtual disks on my boot drive and that finally resulted in a successful start of Music and all my music (the files were never deleted) including ratings and categories have returned!


It took a lot of steps, but it looks like it is finally successful.


Thank you for your patience and all of your advice.

Feb 14, 2022 7:09 AM in response to Lawrence Hammer

Another way to ask this, where is the file data information for Music stored? Since I restored the previous

Music Library.musiclibrary and this did not restore the data, I don't know where to look. My music files were not thrown out. Only the data about the files were.


With iTunes, it was possible to restore lost information by replacing the iTunesLibrary.itl and .xml files.

Feb 14, 2022 7:37 AM in response to turingtest2

Thank you for this. I saw a similar post from you and looked for these files. I have looked under [username]/Library/ and did not see a 'Music' folder.


I also looked under the system/Library/ and did not see a Music folder.


I think I have invisible files selected to be visible as I see gray'ed out folders such as Library.


I have also done searches for the Music folder and come up with nothing relevant.


So I don't know where else to look.


Thanks again.

Feb 14, 2022 11:27 AM in response to turingtest2

Thanks. I figured it would go to the same place and folder as the restored file. I guess it did not.


When I select the restored folder, I get this message. Now I just have to figure out what I need to do to make it happy. I have an iPhone and an iPad. I will try changing 'Cloud' and perhaps music sharing (or whatever) to see how to get around it.

Feb 14, 2022 2:05 PM in response to Lawrence Hammer

That would suggest you have something connected to a cached version of the library using the Home Sharing features. Do you. have other computers or iOS devices on your network? You could make sure to exit the Music app on any of those, or turn off Home Sharing, or temporarily disconnect your computer from the network. One of those should free things up and allow you to actively select the right library.


tt2

Feb 14, 2022 3:38 PM in response to turingtest2

Thank you for the suggestion. I have an iPad and an iPhone. I powered those down and that had no effect.


I also turned off WiFi on my Mac. That did not help.


Not sure if my wife's might also be counted. I will try powering all four down and see what happens. I forgot that AppleTV is also on the network, so that is five.


None of those are directly connected to the Library unless one counts syncing the iPhone to a smart playlist. I do sync my iPhone to the music to download music files. Perhaps going into the setup for the iPhone will clear this up? I will investigate.


Follow up: No, deselecting sync Music on iPhone did not clear the message.


None of the other devices have music files downloaded.


From here, when we get a chance, I will power down all five devices.

Feb 15, 2022 1:29 PM in response to turingtest2

Your brilliant suggestion worked. I think it has.


I tried turning off WiFi before, but never rebooted.


But by turning off WiFi AND rebooting, I can now access a different library. However, the 'Loading Music Library' window has been going on for hours now. Not sure if it is just taking this long to load, or I am some sort of infinite loop. Will let you know.


Thanks for your patience and help.

How Do I Restore Music Information?

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