2 Replies Latest reply: Apr 1, 2013 5:02 PM by turingtest2
dczip86 Level 1 Level 1 (0 points)

When I open itunes all my content is deleted.  When I go to reimport and my stuff, I get duplicate tracks of everything.

  • 1. Re: When I open itunes all my content is deleted.
    turingtest2 Level 8 Level 8 (46,570 points)

    Empty/corrupt library after upgrade/crash

    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping.  Note that in iTunes 11 an "empty" library may show your past purchases with links to stream or download them.


    In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.




    Alternatively, depending on exactly when and why the library went missing, there may be a more recent .tmp file in the main iTunes folder that can be renamed as iTunes Library.itl to restore the library to a recent state. Look for a recent .tmp file that is similar in size to the .itl files in the Previous iTunes Libraries folder.


    If applicable, see iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.


    When you get it all working make a backup!


    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device.


    I've noticed more of these missing library posts of late and a common factor to most since I started asking is AVG Anti-Virus. It seems in some cases it might be at least part of the reason why the library file disappears. Try excluding the iTunes folder from any AV scanning process.




  • 2. Re: When I open itunes all my content is deleted.
    turingtest2 Level 8 Level 8 (46,570 points)

    Use Shift > View > Show Exact Duplicates to reveal the duplicates as this is normally a more useful selection. You need to manually select all but one of each repeating group to remove. If the duplicates were added recently sorting on date added and deleting the recent additions can be straightforward, although you'll want to make sure there really two sets of files with the same content before you throw any away otherwise you may find your remaining tracks have been broken by the clean-up process.


    Use my DeDuper script if you don't want to do it by hand. Please take note of the warning to backup your library before deduping. See this thread for background.