Cannot find multiple missing songs after restoring to new PC

I know this question has been asked before as I've tried using the solutions posted, but they don't work.

I had my main Itunes library on my laptop (d:\libraries\music).

I'm drastically running out of space on this laptop, so have decided to backup/restore my library to my PC, where I have more space and the music folder is the same, with a slight difference. The location is g:\music\

The rest of the file structure is the same inside this music folder.

The problem I have, is it only finds 20,000 of the 40,000 songs.

I've tried locating, and it finds each individual song, but have to click each one individually and change the path.

The songs it finds has the correct path in song info-file, but the ones it can't has the D drive location.

I've tried changing the location of media in preferences-advanced, but no joy.

I don't want Itunes to organise my media and put it all into the itunes folder (I haven't got that selection on my laptop either).

Surely there is a quicker way than changing 20,000 songs one by one

Thanks in advance for any help

Posted on Dec 11, 2023 12:55 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 11, 2023 6:27 PM

The "missing file" issue with exclamation marks happens if the file is no longer where iTunes 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, or the drive it lives on has had a change of drive letter, 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 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, or that you've been too aggressive when deleting duplicates. See Getting iTunes & Windows Media Player to play nicely if you're trying to access your media with any other media players.


Select a track with an exclamation mark, use Ctrl-I to Get Info, then click No when asked to try to locate the track. Look on the file 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, a folder renamed, or a drive letter 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 Windows.


In some cases iTunes 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 another application like Windows Media Player has moved/renamed the files, or the library has been moved from OS X to Windows, then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works. It might need some tweaking if your media is in a non-standard layout.


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

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


Note the addition of file://localhost/ (and the flipped direction of slashes in Windows) is normal for a file that isn't quite where iTunes is expecting to find it.


tt2

Similar questions

5 replies
Question marked as Top-ranking reply

Dec 11, 2023 6:27 PM in response to CountryMan732

The "missing file" issue with exclamation marks happens if the file is no longer where iTunes 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, or the drive it lives on has had a change of drive letter, 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 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, or that you've been too aggressive when deleting duplicates. See Getting iTunes & Windows Media Player to play nicely if you're trying to access your media with any other media players.


Select a track with an exclamation mark, use Ctrl-I to Get Info, then click No when asked to try to locate the track. Look on the file 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, a folder renamed, or a drive letter 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 Windows.


In some cases iTunes 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 another application like Windows Media Player has moved/renamed the files, or the library has been moved from OS X to Windows, then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works. It might need some tweaking if your media is in a non-standard layout.


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

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


Note the addition of file://localhost/ (and the flipped direction of slashes in Windows) is normal for a file that isn't quite where iTunes is expecting to find it.


tt2

Dec 12, 2023 2:21 AM in response to CountryMan732

Hi,


You're using a non-standard layout that neither iTunes nor my script are having any success at predicting. The easiest approach might be to simply rearrange your drive letters and move the Music folder down into a Libraries folder, recreating the original paths that are still known to the library as shown by this line:


file://localhost/D:/Libraries/Music/Country/Randall King - Randall King [2018]/01 - Freightline.mp3


Alternatively I could cook up a variation of my script to work better with your layout. From the looks of things it is something along the lines of:


<Media Folder>\<Genre>\<Album Artist|Artist> - <Album> [<Year>]\## - <Name>.<Ext>


but I might have artist and album the wrong way around, don't know if/how you cope when Artist is not equal to Album Artist, or what happens when the year is unknown, or if the first folder is derived from the iTunes genre field or set manually. Restoring the original structure would be the easiest approach. Once fixed I can suggest how to rearrange without breaking things if you still want to go there. Or we can look at tweaking FindTracks if want me to try.


tt2

Dec 11, 2023 8:05 PM in response to turingtest2

Thanks for the reply.

I tried all the above and nothing seems to work. Here's the info you require

1: G:\Music\Itunes\Itunes Media

(I have tried moving this directory to just G:\Music but doesn't work either)

2: file://localhost/D:/Libraries/Music/Country/Randall King - Randall King [2018]/01 - Freightline.mp3

3: G:\Music\Country\Randall King - Randall King [2018]\01 - Freightline.mp3

if I then click locate and navigate to it's home, it finds it then changes the path to the correct one and plays it.

Then click find the rest of the files and comes back with the error: Itunes was able to find 11 of 19376 missing files

I've tried this a few times with different albums, sometimes Itunes finds the whole album, sometimes, just the track from that album and error says can't find any


I hope you can help...this is driving me crazy



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.

Cannot find multiple missing songs after restoring to new PC

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