How can I recover my music files after copying them to Music App on my new MacBook?

I copied all my music files from iTunes on my old iMac (late-2009) running High Sierra or Monterey, to Music on my new MacBook (now running Sonoma), because I believed (probably wrongly) that I would be able to have my music library on both devices.

Sadly, neither library now will play, (and I imagine it’s because tracks are composed of more than one file, or more than one file component, and each file now has a crucial component missing).

Stupidly, I can’t be sure exactly what I copied, and I hesitate to experiment for fear that I will make things worse.

For some reason I can still play all these tracks on my iPhone (which is fantastic but may be precarious and is not ideal), but I daren’t try to sync it back for fear that instead of copying music from iPhone to MacBook it will wreck everything by working the other way round.

My old iMac is now playing up and I think its days are numbered…. it might even be that next time I turn it on it’ll be dead…. but here’s hoping.

Copying all the tracks/albums individually from Apple and Amazon and then re-copying all my CDs etc. is an option but it will be almost impossibly time-consuming.

I have about 7000 tracks and they’re the soundtrack of my life; please can anyone help me recover them?



[Re-Titled by Moderator]

MacBook Pro 16″, macOS 14.4

Posted on Apr 12, 2024 6:04 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 17, 2024 8:50 AM

The "missing file" issue with exclamation marks happens if the file is no longer where iTunes or Music expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, the drive it lives on has had a name change, or you've moved a non-portable library to a different path (see Make a split library portable for details). It is also possible that iTunes or Music have changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place, (see the iTunes Media Organization section of Managing your Mac media libraries - Apple Community for details) or that you've been too aggressive when deleting duplicates at some point.


Select a track with an exclamation mark, use Cmd-I to get Song Info, then click No when asked to try to locate the track. Look on the file tab for the location the library thinks the file should be. Now take a look around your hard drives. Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive label has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case. If everything is where it is supposed to be try Repair security permissions for iTunes for Mac - Apple Community.


In some cases the library may be able to repair itself if you go through the same steps with Get Info, or when playing a track, but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links. Although it says something like "use the same location" I think it expects to find the tracks in the same artist & album layout they were in previously, with one systematic change to the path.


If you want me to try to provide specific advice please post back the following details:

  1. The location of the media folder under iTunes|Music > Preferences > Advanced
  2. The location of a sample missing track shown under Song Info > File > Location that begins file://
  3. The true path to the file whose details you gave in 2



See also FixLinks - an AppleScript to repair broken links in Music - Apple Community.



tt2

Similar questions

6 replies
Question marked as Top-ranking reply

Apr 17, 2024 8:50 AM in response to oldtom25

The "missing file" issue with exclamation marks happens if the file is no longer where iTunes or Music expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, the drive it lives on has had a name change, or you've moved a non-portable library to a different path (see Make a split library portable for details). It is also possible that iTunes or Music have changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place, (see the iTunes Media Organization section of Managing your Mac media libraries - Apple Community for details) or that you've been too aggressive when deleting duplicates at some point.


Select a track with an exclamation mark, use Cmd-I to get Song Info, then click No when asked to try to locate the track. Look on the file tab for the location the library thinks the file should be. Now take a look around your hard drives. Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive label has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case. If everything is where it is supposed to be try Repair security permissions for iTunes for Mac - Apple Community.


In some cases the library may be able to repair itself if you go through the same steps with Get Info, or when playing a track, but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links. Although it says something like "use the same location" I think it expects to find the tracks in the same artist & album layout they were in previously, with one systematic change to the path.


If you want me to try to provide specific advice please post back the following details:

  1. The location of the media folder under iTunes|Music > Preferences > Advanced
  2. The location of a sample missing track shown under Song Info > File > Location that begins file://
  3. The true path to the file whose details you gave in 2



See also FixLinks - an AppleScript to repair broken links in Music - Apple Community.



tt2

Apr 17, 2024 6:24 AM in response to oldtom25

Hi Tom,

The best way is to copy the intact library from the old machine to the new machine. That is what the guide linked in my previous post can help you do.


Personally, in your situation I would delete the stuff from the new machine and then start over following the procedure.


If you are not comfortable with that, you can build a new library on the new machine using the files that you have already copied over: Import music from a computer to Music on Mac - Apple Support


Apr 17, 2024 3:12 AM in response to ed2345

Hallo ed2345.

it was kind of you to reply; I’m sorry for my long silence.

i read up about moving my music but I didn’t want to lose it from my iMac so I decided to copy it instead and have it on both devices.

I attempted this by copying the music files from Finder, but, as I say, that resulted in my having files on iMac and MacBook that wouldn’t play.

I’m not sure I was careful enough to simply reverse that process. I could try but I might get myself into a deeper mess.

i dare say the root problem here is Apple’s building in limitations due to caution regarding music copyright.

Any more thoughts on getting me out of this pickle?

Apr 17, 2024 8:13 AM in response to ed2345

I won't be able to copy the intact library because I've shifted files about... it's not intact since I mistakenly copied music files across from iMac to MacBook. Now, if I double-click a track it gives me a rainbow-type wheel then tells me it can't connect to the server (meaning my iMac). To me that means there are complementary files in the iMac that it needs. I also remember that when I tried it the other way round (i.e. tried to play a track on the iMac) it demanded access to the MacBook. Later on, the MacBook notifies me: "the original file could not be found. Would you like to locate it?"... which sounds helpful, but even if that leads to a good result I'm getting on in years now and I haven't got time to go through track-by-track.

I have thought of reversing my errors using Time Machine on the iMac, but, as I say, I'm looking for a likely lead before I start experimenting with it because my iMac is old and is playing up.

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.

How can I recover my music files after copying them to Music App on my new MacBook?

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