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.

Recovering mistakingly deleted "iTunes Library.itl" file (Bin emptied ...) ?

Hello all,


This is an example of a track path as it appears in iTunes 12.8.2.3 and I have almost the whole of my Music Library like this after having erased an important file (I think the hereabove mentioned one) :


file:///Users/cathlavender/.Trash/Music/Trust/Trst/02 Dressed For Space.mp3


No Time Machine, Bin emptied, no iCloud storage yet as I had just upgraded MAC OS X 10.6.8 into El Capitan 10.11.6 ...


I accidentally deleted this .itl file trying to clean redundant files without knowing it was a key one ...


Is there anyway I could safely recover these files ?


I've already tried to uninstall this iTunes version for an older one that would allow "iTunes Music Library.xml" but my "new" MAC OS X version wouldn't allow me to install earlier than iTunes 12.2 versions ...


Can anybody help please ? (and, forgive me if I'm a dummie ...)


Thanks,


Cath.


(maybe Mr. "turingtest2" could help ?)



Posted on Nov 27, 2020 6:34 AM

Reply

Similar questions

10 replies

Nov 27, 2020 3:19 PM in response to Cath.

The examples you've given suggest that you've probably deleted your music files, then emptied the trash. You may want to look into free unerase tools that might be able to restore some of this deleted content. If it can be recovered somewhere then it should be possible to relink it to the library.




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

Nov 27, 2020 10:22 AM in response to Cath.

Try Empty/corrupt iTunes library after upgrade/crash - Apple Community. Do you have a Previous iTunes Libraries folder or any hidden .tmp files in the iTunes folder? What is the actual location of 02 Dressed For Space.mp3? In fact if iTunes opens and lists content you must have some sort of active .itl file so perhaps it is the content that you've deleted rather than the .itl file. The file:/// form is used when iTunes cannot see the file at it last known or expected location. Assuming you've deleted media files do you have any of this media on a device from which it might be recovered?


tt2

Nov 27, 2020 3:07 PM in response to turingtest2

When I try to open the audio file in iTunes, it says "The song “Above Us” could not be used because the original file could not be found. Would you like to locate it?".


  • When I click "Locate", it brings me to the iTunes Media folder but where it isn't ... (there are some audio files there though that I recently added but not the ones whose contents are empty ...)

Then, I clicked "Cancel".


  • When I right-click on the audio file and choose "Song Info", it also says "The song “Above Us” could not be used because the original file could not be found. Would you like to locate it?"

Same happens again but then, there is an additional step where it indeed opens the window with the song info and when I then click "File", here's what it shows about the file path :

" file:///Users/cathlavender/.Trash/Music/The KVB/Only Now Forever/01 Above Us.mp3 "


All these audio files are preceded by an exclamation point.


Most of these missing content audio files,I don't have a back up, no ... I did a couple of years ago but since then, there are so many more I added ...


I tried beginning of the week to upload them to iCloud but, of course, the storage wasn't sufficient ...

But again, then, it listed the content of my Library but folders were empty ...


P.S. : the song I did try to open now is called "Above Us".

Nov 29, 2020 2:11 PM in response to turingtest2

Thank you very much for your offer for help, tt2.


I will try to provide you with the requested details :


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


/Users/cathlavender/Music/iTunes/iTunes Media


  • 2. The location of a sample missing track shown under Song Info > File > Location that begins file://


file:///Users/cathlavender/.Trash/Music/Trust/Trst/02 Dressed For Space.mp3


  • 3. The true path to the file whose details you gave in 2


I don't know, sorry ...


Now, I'm going to look around my hard drive (I've only got one) whether I can find any similar file back ...


Also, I vaguely remember deleting a "DS-store" file or something like that ... I don't know if it could be relevant info ...


Cheers,


Cath.


Nov 27, 2020 3:16 PM in response to turingtest2

Do you have a Previous iTunes Libraries folder or any hidden .tmp files in the iTunes folder?


No hidden .tmp files in the iTunes folder.


2 Previous iTunes Libraries which I'm unable to open ...

(one I renamed "iTunes 2016.itl" as it says it was created on February 23th, 2016 // the other named by the system "iTunes Library 2020-11-21 1.itl and created on that date)


What is the actual location of 02 Dressed For Space.mp3?


I think in the Bin I emptied ?

Here what it says in the Song Info window :

"file:///Users/cathlavender/.Trash/Music/Trust/Trst/02 Dressed For Space.mp3"


Nov 29, 2020 2:24 PM in response to Cath.

As noted file:///Users/cathlavender/.Trash/Music/Trust/Trst/02 Dressed For Space.mp3 strongly suggests it was in the trash. Once you emptied the trash it would be gone. Unless you have a backup elsewhere, or the tracks are stored on a device, your only real hope is some form of file recovery software.


Try https://www.easeus.com/mac-file-recovery/completely-free-data-recovery-software-for-mac.html.


You should recover to a separate hard drive.


tt2

Recovering mistakingly deleted "iTunes Library.itl" file (Bin emptied ...) ?

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