Recommended method of changing library folders

What is the "official" recommended method of telling i-tunes that you are changing the location of your music files/libary?

Specifically, I used to keep my files on an external USB drive. When I upgraded my internal hard drive, I copied my library over to the c: drive. In i-tunes (version 8), I went Edit => Preferences => Advanced and changed the "itunes music folder location" to the new path pointing to c:/my music. Now itunes can't find any songs -- unless my external drive is connected, so it's obviously not "getting it" that the songs have been moved.

What is the "official" recommended method of telling i-tunes that you are changing the location of your music files/libary?

Windows XP, ThinkPad T60

Posted on Oct 24, 2009 11:05 AM

Reply
11 replies

Oct 24, 2009 12:31 PM in response to edgetunes

edgetunes wrote:
What is the "official" recommended method of telling i-tunes that you are changing the location of your music files/libary?


There is only one way that works. If you do it any other way, iTunes loses the songs.

Here is the one way: First use the Advanced Preferences to set the new location of the music folder. (You have already done this.) Then run the command Consolidate Library. This puts a copy of each song into the new location. (This is the step you missed.)

When you are sure that everything is proper in the new location, and that iTunes can find everything, you can go back and delete the original copies.

Oct 24, 2009 1:43 PM in response to ed2345

Hi Jerry,
Thanks for the help. I found the "consolidate library" command at File => Library ... and then I get a dialogue that warns: +Consolidating your library will copy all of your music into the iTunes Music foler. This cannot be undone.+ Does this mean that my entire 30 gigs of music is going to be copied to the itunes folder located at: C:\Documents and Settings\Paul\My Documents\My Music\iTunes ??? Or does iTunes just copy "pointer files" there. (My concern apart from the fact that the library occupies twice your hard drive space here is that bringing this large volume of data inside "my documents" bloats the win-doze boot up time and creates other inefficiencies.) Thanks! --Paul

Oct 24, 2009 2:08 PM in response to edgetunes

If you've already copied the files onto C: then consolidating will just duplicate the effort. In addition if the files are exactly where iTunes would put them it will create duplicates adding a trailing " 1" to each filename. Major bloat alert!

I don't have time to make a specific set of instructions (and I really must get around to producing something general with diagrams) but it's possible to repair the library so that it uses the new location without copying everything again. The gist of it is in this recent post: http://discussions.apple.com/message.jspa?messageID=10443550#10443550

I'll try to log in a bit later to provide a fuller explanation.

tt2

Oct 24, 2009 6:19 PM in response to turingtest2

tt2, i've partially absorbed the post you linked to. if you could do something tomorrow that addresses my specific scenario, that would be awesome. i'll be sure to save it. i know at least two other people who would love the same info. if the sysadmins are on the job, they'll make it a permanent, especially if you can include screen shots. if nothing else, you'll have my undying gratitude 😉

Oct 25, 2009 12:13 PM in response to edgetunes

...When I upgraded my internal hard drive, I copied my library over to the c: drive. In i-tunes (version 8), I went Edit => Preferences => Advanced and changed the "itunes music folder location" to the new path pointing to c:/my music. Now itunes can't find any songs -- unless my external drive is connected, so it's obviously not "getting it" that the songs have been moved.

Changing this setting would have changed the location that iTunes uses when it creates a file, e.g. downloads, rips, imports if you have copy on import selected etc. It does not update the location of exisitng files in the library unless certain conditions are met.

Normally the library files are held in an iTunes folder which is inside your profile's Music folder. iTunes creates another folder called iTunes Music (pre-Tunes 9) or iTunes Media in which to store your content. If all your content is inside this media folder then you can move the main iTunes folder to a new path or drive at will and iTunes will update the references to the files. Content that is outside of the iTunes Music or iTunes Media folder will be assumed to have stayed put. The same happens if you've relocated the media folder so that it is no longer a subfolder of the one containing the library database.

Let's assume that your music folder on your external drive is called *X:\My Music* and that your existing library files are at *C:\Documents & Settings\<User>\My Documents\My Music\iTunes*. The first step to repairing things is to use Windows Explorer to copy these library files ( iTunes Extras.itdb, iTunes Genius.itdb, iTunes Library.itl, iTunes Library.xml, sentinel & the *Album Artwork* folder) to the parent folder of that which holds your media on the external drive, e.g. X:\ if I've assumed correctly.

Next, click on the iTunes icon in your Start Menu and *immediately press & hold the SHIFT key* until a dialog appears asking you to choose a library. Browse to X:\ and open the iTunes Library.itl file there. Open preferences, advanced and change the location of the iTunes Media folder to X:\My Music (or whatever the true value is). Click OK. iTunes should process the library updating it's links. When it's complete check that your media plays. Close iTunes and wait for it to finish saving the libray.

Now copy the library files ( iTunes Extras.itdb, iTunes Genius.itdb, iTunes Library.itl, iTunes Library.xml, sentinel & the *Album Artwork* folder) from X:\ to C:\ - don't copy the My Music folder since you've already done that. Use shift-open iTunes to open the library file at C:\iTunes Library.itl, then change the media folder location to C:\My Music again. iTunes should once again process the library and when complete you should be able to turn off your external drive and still have access to all your content.

While this works iTunes will give itself the window title of C:\, being the name of the folder in which the iTunes Library.itl file lives. You can choose to leave the music just where it is, copy the library files to the original location - C:\Documents and Settings\<user>\My Documents\My Music\iTunes - and shift-open the library there, or create a folder called C:\iTunes and move the library files & content folder into it, then shift-open once more.

You may also need to repair links to any iPod Games/Mobile Applications that were not inside the media folder before you started.

tt2

Oct 28, 2009 8:55 PM in response to turingtest2

tt2, man, i followed your sequence above exactly. and all your assumptions about the location of my files were correct -- yet itunes continues to be able to find some files, but not others. (same as any other time i've had to move my music library with itunes.)

i read in the thread you referred me to about taking the xml music library and doing a find/replace with the old/new location. after your instructions failed, i did that -- still no joy.

the files itunes cannot find are in fact at both locations, the old and the new. (Obviously i'm doing this with the usb disconnected though.) it will find them at f:\my music, but not at c:\my music, despite the fact that is the path in the xml files, and that I selected the new music library xml file from c: (the parent) via shift-open on itunes launch. i am sick of wrestling this beast -- can you provide reliable instructions even if destructive, so i can just recreate everything from scratch and kiss goodbye my lists, tweaks, etc and be done with the science project? Uncle, Apple. I promise -- I'll never move my music files again!

Oct 31, 2009 6:36 PM in response to turingtest2

If I delete all my itunes library files, uninstall and reinstall itunes, can I then just drag my c:\my music into the library section and expect itunes to accurately find my files?

I know I'll lose all my playlists, but at this point I just want to stop wrestling.

Also, can someone describe the changes that itunes 9 makes with respect to the library files?

Any help greatly appreciated...

Oct 31, 2009 8:08 PM in response to edgetunes

You can, of course, do just what you like. However there's no need to delete or uninstall anything. You can delete your old library files once you are happy with the new library you get around to creating.

If you're asking my opinion I would recommend you start by creating a brand new empty iTunes libray at either C:iTunes or C:MediaiTunes. Under iTunes 9 the default media folders for these would be *C:\iTunes\iTunes Media* or *C:\Media\iTunes\iTunes Media* respectively. The layout of what goes inside looks something like this:
User uploaded file
Although since I don't have any ringtones I'm not quite sure where the new & old locations for those are. If you still want to manually orgainse your media then I would recommend you do so within the pre-drefined categories that iTunes 9 provides, otherwise just leave it up to iTunes to keep your media organised.

As to rebuilding your playlists, one approach would be to add the playlist names into the grouping field in your existing library, then when you move & rebuild you could create smart playlists that would draw in the correct tracks.

tt2

Oct 31, 2009 10:03 PM in response to turingtest2

I've been following this thread as I was hoping to be able to pick up some info re changing library folders that would be appropriate to what I am trying to do. Briefly I need to clear some space on my C: drive and I thought the easiest way to do this would be to shift gigabytes of music from C: to a 500G drive and still be able to use Itunes.I have Itunes 9 and Vista ultimate. Shifting the music files is easy enough but what do I need to do to get Itunes to find the new location of the music files? is it even possible? I have copied the files from the C: Itunes folder to the new location ie Itunes Library extras .ITB ''Genius.ITB ''Library.ITL "" Library.XML Sentinel and Album Artwork. Any help would be appreciated

Nov 1, 2009 9:06 AM in response to turingtest2

+>> You can, of course, do just what you like. However there's no need to delete or uninstall anything. You can delete your old library files once you are happy with the new library you get around to creating. <<+

tt2 - Well, I really can't can I, since the new files that I created don't function properly?! Again, despite reconstructing these files according to directions, itunes recognizes some files' location correctly, but many it does not.

I think myself, and many others, would appreciate it if the itunes development team would: 1) stop moving around and changing the architecture of the library files with each upgrade, and 2) +*recognize that users have a need to, on a pretty regular basis, move their music files around, as their individual needs change, and provide a simple method of doing so within the application,*+ instead of a series of hacks that, as has now been proven, are not always reliable. (#2 may require some medication for the Apple folks to decrease their paranoia level regarding people "stealing" music.)

Thanks for all your help - you have provided excellent information, including the most recent post with the screen shots. If I get the urge to use itunes again, I'll follow your recommendations on folder hierarchy.

In the meantime, I've really had it with Apple's idea of software, and have found a freeware product called CopyTransManager that is simple and fast. Anyone interested can find it here: http://www.copytrans.net/

Message was edited by: edgetunes

Nov 1, 2009 9:02 AM in response to morg01

morgo1 - print this thread out, start from the top and read it through. Then write out the instructions in stepwise fashion for yourself. tt has provided all the information necessary to do exactly what you are looking to accomplish.

I've been in and out of these "help I moved my files" threads for 5 years. It seems that for some users these instructions work, but for many others such as myself they do not: itunes fails to reliably recognize the information contained in the library files. Good luck. (If you can live without the itunes store, go get copytransmanager and see how simple this stuff should be.)

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.

Recommended method of changing library folders

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