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.

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

Help - iTunes can't locate music files on drive!

The list of my songs in iTunes has an exclamation mark on all of them. This indicates the the locations could not be found on mt drive.

I tried to re-establish the link, but get an error "Program has stopped working....windows now closing program" and iTunes shuts down.

I have all my songs arranged in a folder with each folder for an album. How do I delete the current library an rebuild with the original music folder?

Thanks.

iPad 2 Wi-Fi, iOS 5.0.1

Posted on Jan 30, 2012 8:57 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 30, 2012 10:41 PM

This happens if the files are no longer where iTunes expects to find them. Possible causes are that you or some third party tool has moved, renamed or deleted the files, or that the drive they live on has had a change of drive letter. It is also possible that iTunes has 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.


Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.


Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes.


tt2

69 replies

Oct 26, 2013 5:50 PM in response to turingtest2

Thanks tt2,


I am new to mac but I found the file and it is set to 1 for the new format. Makes sense, because 80% of the music library is stored that way and working fine. Issue seems to what happened when copying Windows Itunes library folders with truncated names to a Mac that is presumably looking for full length names that match those in the library index.


Unless you know of a shortcut, I guess I have to patiently start to play each missing track that is matched or purchased then click "download from icloud" to restore it. Hopefully there aren't too many ripped tracks with long names that Itunes has not matched.


Ross

Oct 26, 2013 6:14 PM in response to rjp123

In Windows I have a script to automate the process of relinking files, but it wouldn't translate to OS X. You could use Doug's scripts Music Folder Files Not Added and Super Remove Dead Tracks to add in tracks that aren't connected to the library and delete the entries connected to missing files. You would however lost ratings, play counts and playlist membership for the tracks you delete.


tt2

Oct 30, 2013 9:09 AM in response to turingtest2

Turingtest2, I want to thank you for your scripts as they have helped me greatly. However I have an odd problem. Apparently the file size of some of my files is off by a small amount and this is making me have to confirm each change in your script. For example I have to confirm each time when a file is just 2 bytes different. I think the change in file size was caused by my updating the tags in mediamonkey.


Not knowing VBS, can you tell me how to modify the scipt so that the file sizes do not have to match exactly but instead are in a range of say 100 bytes.


Thanks again.

Oct 30, 2013 11:58 AM in response to longwood8b

I assumed (correctly I trust) that we were discussing FindTracks. 😉


I've uploaded a new version of the script that has a setting for limited discrepancy. I've left it at 0 after testing that it works since I think this setting will suit most people, most of the time. Use a text editor (Notepad, or better yet Notepad++ if you want to attempt to read and understand the script) and change the line that reads:


Limit=0


To your prefered value, e.g.


Limit=100


It is line 87 in the current incarnation of the script. Setting Limit to 100 would allow the found file to be matched automatically if it was up to 100 bytes larger or smaller than the file "missing" from iTunes, as long as only one potential match has been found. Where there are multiple potential matches you will still be asked to choose between them.


tt2

Oct 30, 2013 9:06 PM in response to turingtest2

Yes FindTracks. Thanks. That has helped greatly. I just made the limit 10 and it is fixing many more files.


I am still seeing the problem of it asking to choose between two or more files. This seems to ocuur anytime there is are two or more songs on an album that start with simiar names. For example, I have the following:


User uploaded file


User uploaded file


User uploaded fileAll the same album, but only the first letter of the song is the same.

Oct 31, 2013 4:55 PM in response to longwood8b

If the file sizes hadn't changed by touching them with a third party app there wouldn't be a problem. There is a fuzzy matching algorithm used to locate potential matches when people have used different naming patterns from the iTunes standard. If just one track matches for the correct size then the script will pick that as the winner. With the new tweak it will also match a single track whose expected size is within the bounds set. I suppose I could look tomorrow to see if I could extend the limit to work with multiple tracks so if there are 3 matches, but only 1 is within the limit of the expected size then automatically relink to that one.


And no I'm afraid I don't generally keep an archive of earlier builds, though I probably should do.


tt2

Jan 5, 2014 7:19 AM in response to turingtest2

thanks turingtest2 once i found the location of the files i was able to click a song to play and then when it asked if i wanted to loacate i was able to say yes and follow the path it showed in the get info window after double clicking the one song i tried to play itunes asked if i "wanted to use this location to find other missing files" and after saying yes it found them all. thanks again

Help - iTunes can't locate music files on drive!

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