Itunes Library Genius.itdb File Is Locked

Posted on  by 

Update: Since the release of macOS Catalina, iTunes is no longer available on the Mac. The process below is still applicable to iTunes on Windows. On the Mac, you can manually save an XML file by choosing File > Library > Export Library. But you can no longer do this automatically.

Itunes Library Genius.itdb File Is Locked Back

Note: Since iTunes 12.2, iTunes no longer creates the iTunes Library.xml file, which I mention below, by default. It’s a good idea to tell iTunes to do this, so you can recover your library from that file if necessary. To do this, go to iTunes > Preferences > Advanced, and check Share iTunes Library XML with other applications.

Every now and then, an iTunes Library has problems. You may have tracks or songs that disappear in the library, but that are still in your iTunes Media folder. Or playlists may change or disappear. Or there may be other, inexplicable problems.

One way to try and fix these issues is to rebuild your iTunes library. I’ve done this from time to time, and it can solve some issues, and has even fixed problems with Genius.

If the error message iTunes library.itl file is locked still there after trying the methods above, you can try to repair iTunes library with Free Tenorshare TunesCare. This iTunes repair tool is able to fix a series of iTunes errors as well as syncing issues. Here's how it works.

  1. Hi I have downloaded the latest iTune Software on Windows 7. I went to open the file and it won't execute, I small box keeps popping up with this message:- 'The iTunes library.itl file is locked, on a locked disk, or you do not have write permission for this file'. I have tried to change the permission but nothing happens.
  2. Launch iTunes, and choose File Library Import Playlist. Navigate to the iTunes Library.xml file you moved earlier, and click Choose (Mac) or Open (Windows). ITunes will now examine the XML file, finding all your tracks and playlists, and add them to your library. This will create a new iTunes Library.itl file.

It’s a simple process, but one that may take a while if you have a lot of content in your library. Here’s how you do it.

  1. Back up your iTunes Media folder. While rebuilding the library doesn’t affect your media files, it’s best to be safe.
  2. Quit iTunes, then find your iTunes folder. If you’re on a Mac, it’ll be in the Music folder in your home folder (that’s the one with the house icon and your user name). On Windows, it can be in different locations according to the version of Windows you use:
  • Windows XP: Documents and Settings[your username]My DocumentsMy Music
  • Windows Vista: Users[your username]Music
  • Windows 7 or later: Users[your username]My Music

The two files you’ll be using are iTunes Library.itl (or, perhaps, just iTunes Library) and iTunes Library.xml.)

  1. Make copies of all these files; again, just in case.
  2. Move the iTunes Library.xml or iTunes Music Library.xml file to your Desktop or to another folder. You’ll be using this file to rebuild the library.

  3. Delete the iTunes Library or iTunes Library.itl file by moving it to the Trash or Recycle Bin.

  4. Launch iTunes, and choose File > Library > Import Playlist. Navigate to the iTunes Library.xml file you moved earlier, and click Choose (Mac) or Open (Windows).

iTunes will now examine the XML file, finding all your tracks and playlists, and add them to your library. This will create a new iTunes Library.itl file. If you have a lot of content in your iTunes library, this will take a while. The last time I did it with a library of about 70,000 tracks, it took well over an hour, so be patient.

If for any reason it doesn’t, you can always quit iTunes, delete the newly-created iTunes Library.itl file, and replace it with the one you backed up.

One thing you’ll notice is that all the view settings you applied have changed. You’ll have to go back and reset them the way you want for each playlist. (Choose View > Show View Options to tweak these settings.) But the new library should contain all your media, and all your playlists. Also, the Date Added for all your iTunes content will be the date on which you rebuild the library.

The dreaded exclamation points in your iTunes library! Edited metadata that doesn't show up outside of iTunes! Most of us have had at least some of these issues, and if you're unlucky most or all of your library can end up like this. Maybe you moved your library from one hard disk to another, you had to get your library back from an old backup, or maybe your disk was failing and this is what you got after running recovery software.

iTunes works really hard to try and fix these problems, but if you're reading this it means that you're running into problems that iTunes couldn't automatically work out on its own. No matter how your library became a frustrating mess, there's almost always something you can do to get your library happy again. Below are a number of different suggestions, each with its own upsides and downsides.

Note that if you're on Windows and your iTunes isn't showing its menu (it doesn't by default), turn it on with Ctrl+B now.

Another important note: There are a couple of features in iTunes that are on by default on Mac but are normally off on Windows. If you're unfamiliar with them, you probably should have them turned on, as they will help keep all of your music tidy going forward. In File > Preferences > Advanced, you should allow iTunes to Keep iTunes Media folder organized and Copy files to iTunes Media folder when adding to library.

You don't need to do this, but it will make your life easier and will help prevent problems in the future. That said, if your library is huge and some of it is stored on an external drive (i.e. you don't have room for all of your music files to be stored on a single volume), you are an exception and should not turn on the “Copy files to iTunes Media...” feature.

Solution #1: Reorganize your iTunes library

This is a simple way to tell iTunes to have a look at every single song in your library, try and find it, and move it into a nice folder structure if it isn't already. From the iTunes menu, select File > Library > Organize Library....

Turn on Consolidate files, and if your library is rather old you can also turn on Reorganize files in the folder “iTunes Media”. Click OK and let it do its thing.

There are a number of types of problems that this will not help with, but it's a good first step to take care of some minor issues.

The upside:
  • Works on your entire library all at once
  • Very unlikely to make anything worse
  • Free
The downside:
  • Only fixes minor problems

Solution #2: Rebuild your iTunes library

If reorganizing your library didn't fix all of the issues you have, you can take more extreme measures by completely rebuilding your music library. There's at least a few types of information that will be lost in the process, which may be considered valuable bits of metadata for some folks: star ratings, “Loves”, play counts, and date added. If you can live without that information, this method tries to preserve everything else about your iTunes music library.

What Is Itunes Library Genius.itdb

The first thing to note is that this method is drastic, and depending on the types of problems you have with your library, it's possible that you can end up worse off than when you began. Thus I very strongly recommend that you back up your existing iTunes folder before going any further, even if it's a mess.

Where is your music library?

You'll need to know where iTunes keeps all of its files. Normally, this is in your (home) > Music > iTunes folder but if you're a bit more advanced you might have set it up to be elsewhere and therefore you likely already know where it is. When you get to it in Finder or File Explorer, you'll recognize it by the .itdb files within. Note that you have either a “iTunes Media” or “iTunes Music” folder in here.

Export your library

Don't worry, you don't need much disk space for this step as you're not exporting your actual entire library, you're only creating a simple databaseof what is in your library and playlists. In iTunes, choose File > Library > Export Library.... Give it a unique name and save it somewhere like your Desktop.

Remove the database

You now need to remove your existing database files so that new ones can be created from scratch. Quit out of iTunes, then delete any of the following files you saw in the first step: “iTunes Library”, “iTunes Library.itl”, “iTunes Library.xml”, “iTunes Music Library.xml”, “iTunes Library Genius.itdb”. Note that you will not have all of these.

Add the media back in

Now we're adding everything back into a fresh clean library. Start up iTunes again, and don't be shocked that your library is completely empty. Select File > Add to Library..., then choose the “iTunes Media” or “iTunes Music” folder that you saw earlier. This will take a while to import everything back into your library. If you know that you had music stored in several different locations, you will want to repeat this step for each.

Restore your playlists

Now choose File > Library > Import Playlist... and select the database file that you created in the “Export your library” step earlier. Note that you will end up with duplicate smart playlists that you'll later want to remove.

That's it! Your entire library is rebuilt with all playlists preserved, and hopefully all problems gone away.

The upside:

Itunes Library Genius.itdb File Is Locked Windows 10

  • Thoroughly fixes many problem types
  • Works on your entire library all at once
  • Free
The downside:
  • Might make some problems worse
  • Loses Star Ratings, Loves, Play Count, Last Played
  • Resets Date Added
  • Not for the squeamish

Solution #3: Use Song Sergeant

A much less stressful method is to use an application created specifically to repair damaged iTunes libraries. It's called Song Sergeant, and when it is launched it will automatically find and scan your music library for a variety of problems, some of which it can silently fix immediately while scanning.


The upside:

The Itunes Library Extras.itdb File Is Locked Mac

Genius.itdb

Itunes Library Genius.itdb File Is Locked Button

  • Almost entirely automatic
  • Safe and simple to use
  • Free for some problem fixing
  • Preserves metadata
The downside:
  • Not free to automatically fix some types of problems
  • Fixes other kinds of problems you may not care about

Here are links to download for macOS and Windows.

Final note

Having a broken iTunes library can sometimes make you want to nuke it from orbit and start over. Depending on what is messed up, one of the above methods is almost certainly going to fix it without needing to pull your hair out, and without losing much (or any) music or metadata from your library.

Coments are closed