Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

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

Apple Music expands live global radio offering with three brand-new stations. Learn more >

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

iTunes not locating files

I have my iTunes media on an external hard drive (let’s call it external A) (I moved it there with the help of Apple support some years ago).


I have hundreds of playlists which I use for work and at vital.


I am trying to create a back up of it all.


I copied and pasted the iTunes folder from the external A over to a new external hard drive (B) but realised that when I tried to open iTunes from that that it didn’t have the most up to date library file.


it turns out for some reason the library file is being stored on the internal hard drive.


I copied and pasted that library file over to the new back up external B.


when I open iTunes and direct it external B it opens up the library and brings all my playlists in - which is what I need!


but… when I try to play any songs it can’t locate them. If I manually locate one it is fine and then it says it can locate the others in the same way but it doesn’t locate any.


I can’t manually locate thousands and thousands of songs.


I don’t know how to fix this?


I suspect part of the issue is that the iTunes folder is in a bit of a mess - I’ve used it for years, when I was on windows and then now on Mac. I have ‘consolidated’ and that hasn’t fixed it.


I’m not sure what to do?


Thanks

Nancy

MacBook Air 13″, macOS 11.6

Posted on Feb 17, 2022 9:09 AM

Reply

Similar questions

17 replies

Feb 17, 2022 9:12 AM in response to DrNancyP

If you copied the files to the same logical path on External B as they had on External A then it should just be a case of renaming the volumes so that your new drive has the same name as the old drive.


If that hasn't helped read on...


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, 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

Feb 17, 2022 9:43 AM in response to DrNancyP

Changing the media folder location doesn't change where the library files are stored. Moving the content manually only works in certain specific circumstances. All covered in Make a split library portable. It may be easier to unwind what you've done so far to get your library working properly again, copy the library files to the new drive, reset the media folder, and then consolidate to the new path.


tt2

Feb 17, 2022 12:34 PM in response to turingtest2

Hi


Hmm I’m not sure I understand how to reset the media folder and I’m v nervous of losing my playlists - that wouldn’t happen would it?


in answer to the previous message:


  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


when external A is being used for iTunes on my usual set up in Catalina :


  1. /external A / itunes / iTunes media
  2. / volumes/ external A / itunes / iTunes media / music / compilations/ album name / track.mp3
  3. not applicable


When external B is used (nb I’m using it on a diff System to test - using big sur)

  1. / external B / media
  2. file:///volumes/ external B / media.localized/compilations / album name / track.mp3
  3. once I locate the file it then gives it’s location as : External B / itunes / itunes media / music / compilations / album name / track.mp3


if I then tell it to use this location to find other songs it can’t even find ones in the same album…


this is a screenshot of the external B (I’ve named it iTunes back up 2021 ) to show where the copied folders are at the moment


Feb 17, 2022 12:54 PM in response to DrNancyP

Starting with a working instance of the library and both external drives connected.

  1. Close Music
  2. Copy the folder ~/Music/Music folder from internal storage to <External B> as <External B>/Music
  3. Press and hold down option as you launch Music and keep holding until prompted to choose or create a library
  4. Click Choose, then browse to and open <External B>/Music/Music Library(.musiclibrary)
  5. Check the content plays without issue (stop here and ask for advice if it doesn't)
  6. Use Music > Preferences > Files > Reset to reset the media folder to <External B>/Music/Media
  7. Use File > Library > Organize Library > Consolidate Files


Once consolidation is complete the library inside <External B>/Music should work on another Mac running Catalina or higher using the option-start-Music method. It may be the case that if you access the library on Big Sur it won't open on Catalina again. Not something I've tested, but sometimes a newer version makes internal changes to the database that are not backwards compatible. You might take a copy of <External B>/Music/Music Library(.musiclibrary) before you open it in Big Sur as a precaution.


tt2


Feb 17, 2022 9:36 AM in response to turingtest2

Thank you


hmm yeah I think they’re in the same ‘place’ on each external.


I tried the locate option and it wouldn’t locate anymore than the specific track.


i’m at work now but either tonight or tomorrow I’ll provide the info requested - I think it’s probably partly because the media files are all in a bit of a mess.


do you have any idea why the library file itself is being stored locally rather than with the media files on the external A? It just makes it more complicated when it comes to backing up and I’m wondering if that’s causing some probs too?

Feb 17, 2022 1:07 PM in response to turingtest2

Ok so just to be clear in step 2

Would I be copying from external A to external B? Or actually from my internal to the external B?


and once I’ve done this will I still be able to use my external A as I am now? While

I’m sorting this all out?


one of the reasons I’m doing all this is to actually test that my iPod will sync ok once I update from Catalina to big sur as I’m worried it may screw things up


I’ll have a to give this a go when I’ve got a few hours - my media folder is hundreds of gb so I’ll give it a go Sunday afternoon after work and let you know!

Feb 17, 2022 1:29 PM in response to DrNancyP

Step 2 is copying the active library database from your internal drive to <External B>. The normal location is ~/Music/Music where ~ is your user's home folder. You can check the last modified date of Music Library(.musiclibrary) inside that folder to confirm it is the active library file updated the last time you used Music.


Using this approach makes a separate library on <External B> that is independent of the current computer or the other external drive. Because you start with a copy of the database and consolidate (copy) files all of the original data stays in place. Letting Music copy the files means everything ends up where the library wants it to live rather than in some arrangement based on the history of your iTunes library over the years. You should option-start-Music again to switch back to the original library before removing <External B>.


tt2

Feb 19, 2022 2:58 AM in response to turingtest2

Sorry one more question - in step 6 is that resetting the media folder to music/media on external A or B ?


Ultimately I want them to be the same in both but in this step I’m unsure - am I resetting the external A here first?


oh make that 2 questions - in step 2 am I copying the music lib file from the internal location to external A or B?


I don’t want to ruin what’s working now - ie external A?



Feb 19, 2022 7:44 AM in response to DrNancyP

As given step 6 should be:

Use Music > Preferences > Files > Reset to reset the media folder to <External B>/Music/Media


At this stage you will accessed a copy of the library on External B so that the library on External A isn't affected by the steps you're taking. The library file will be <External B>/Music/Music Library.musiclibrary and the reset button should change the media folder to <External B>/Music/Media.


Step 7 brings in copies of what is elsewhere, again leaving the original library as is. Once consolidation is complete the library on <External B> can operate independently of <External A> and should function correctly if moved to another computer.


tt2


Feb 19, 2022 10:52 PM in response to turingtest2

Thanks so much

I’ve started the process and so far so good!

it’s now consolidating 🤞🏻


assuming that works ok once that’s done can I just physically copy and paste the media folder and lib file from external B to another external to create a further backup?


also moving forward will the external A library always be stored on the internal? Or is it possible to keep it with the media files on external A ? I’m just thinking about how best to organise things to make back ups easy moving forward?


I assume if I move the library file and then choose that file when opening up itunes that would then continue saving to the new location?


hoping this will have worked! Once the consolidation has finished I’ll have a full test and see if the files are there :)

Feb 20, 2022 3:22 AM in response to DrNancyP

DrNancyP wrote:

Thanks so much
I’ve started the process and so far so good!
it’s now consolidating 🤞🏻

assuming that works ok once that’s done can I just physically copy and paste the media folder and lib file from external B to another external to create a further backup?


You'd copy the entire Music folder, which has the Media folder inside it, so there is only one thing to copy.


also moving forward will the external A library always be stored on the internal? Or is it possible to keep it with the media files on external A ? I’m just thinking about how best to organise things to make back ups easy moving forward?


You can clone the now portable Music library on External B back to External A, and then remove the traces of the old library. Or the other way around if space is tight.


I assume if I move the library file and then choose that file when opening up itunes that would then continue saving to the new location?


Yes, each library should use its own selected media folder.


hoping this will have worked! Once the consolidation has finished I’ll have a full test and see if the files are there :)


Best of luck.


tt2

Feb 21, 2022 5:41 AM in response to turingtest2

Right It seemed to work fine yesterday but things aren’t quite working perfectly now…


external A has forgotten the location of the music and when I’ve gone and reset it it isn’t finding all the tracks again?

the weird thing is when I tried yesterday it didn’t forget the location and I haven’t changed anything since so I don’t know why it’s done that - it reverted to looking for tracks on the internal drive ?

but I’ve pointed it back to external A and it’s not finding them all


I’m still testing external B and hoping that works because if so then I can presumably just copy it back to external A but with thousands and thousands of tracks it’s taking a while - I’m just randomly trying diff ones to make sure I have them all


:)


Feb 22, 2022 11:51 PM in response to turingtest2

Hi again


i think the new back up on external B is working ok - I’m yet to find any tracks that can’t be located so fingers crossed!


unfortunately the external A version can’t seem to find all the tracks now.

when I go back to that library it looks for media on the internal automatically and when I tell it to look on external A it can’t find everything - probably because it’s a mess.


stupid question but what is the best way to clear that up on external A? Do I copy back the folders from external B or should I repeat the process and reset media for external A?


thanks once again :)


Feb 23, 2022 2:49 AM in response to DrNancyP

You can see https://dougscripts.com/itunes/scripts/ss.php?sp=mxlistmias for a script you can use to confirm there are no dead links in the library. If you've also consolidated the library to the media folder on external B then you've know it is self-contained and independent of the content on external A. That done you can delete the old version of the library on external A and copy over the Music folder from external B to external A so you have two separate working copies of the library.


tt2

Feb 23, 2022 5:06 AM in response to turingtest2

Thanks - I’ll take a look!


any idea why when using the external A library file is doesn’t ‘remember’ where the media is located? It reverts back to the internal media location. I wondered if it was because the library file is on the internal?


obvs once I replace the external A one hopefully this won’t happen but just curious and obvs don’t want anything like this to happen again in future :)

iTunes not locating files

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