Currently Being ModeratedJan 31, 2012 12:43 PM (in response to Jtrory)
Make a split library portable
Here are the typical layouts for the iTunes folders:
In the layout above, with the media folder (everything in the red box) inside the library folder, the library is considered to be portable. A portable library can be moved from one path to another without breaking the links between the library and the media and being self-contained is much easier to backup.
You can rearrange things to make a split library portable by taking a number of small steps which don't break the library.
Before you start any media files that are outside of the media folder will need to be consolidated. If the library is in the old style layout then it should ideally be be upgraded to iTunes Media Organisation (Library > Organise Library > Rearrange files in the folder <Media Folder>) to ensure that iPod Games, Mobile Applications etc. are brought inside the media folder.
The basic non-fatal manipulations are:
- You can connect to an alternate set of library files by holding down Shift (Win) or Option (Mac) when starting iTunes.
- You can move the library files to a new location as long as the media stays put.
- You can move the library files and the media together if the media folder is a direct subfolder of the library folder.
- If you have already moved/copied the media content from a subfolder of the library folder to a different location then you only need to copy the library files for it to appear as if you have moved the entire library in the way allowed above. I.e. just copy the library files into the parent folder of the media folder.
- You can rename the media folder to iTunes Media (if it isn't already) if the media folder is inside the library folder.
- iTunes uses the name of the folder holding the library files as the window title. Having made a library "portable" you may need to take a final step of renaming the library folder to iTunes or, if the library files have ended up at the root of a drive, moving all of the library files and content folders into a new folder called iTunes.
After each change you need to open, test and close the relevant library before attempting another change. If a change broke the library, undo it or revert to using the previous set of library files.
In essence all you need to do to make your library portable is copy the library files into the parent folder of the media folder on the external/secondary drive and use the hold-down-shift/option-when-starting-iTunes method to connect to it. Other manipulations may be required to normalize the library so that the library and media folders have standard names.
If you are making the library portable in advance of migrating it from one system to another, don't forget to deauthorise the old computer if you're not planning to use iTunes on it again.
Regarding your specific questions. once you've created a portable library on an external drive if the drive letter should be changed then shift-start-iTunes will let you connect to the new path and all will be well. If the drive is not connected when iTunes starts then iTunes will report an error, letting you cancel, connect the drive, and restart. Again all will be well. Hence the solution to "two" makes the solution to "one" unnecessary, that said the Disk Management tool within the Computer Management Control Panel will let you modify drive letters.
FYI the XML file is for use by third party tools and is not the main database of your library. The crucial file is iTunes Library.itl.
Currently Being ModeratedFeb 11, 2012 6:17 PM (in response to turingtest2)
Thanks for all the detailed info. I have placed all of my music within this folder structure on my external drive and reimported all my music. Everything is fine for the moment. The only thing I'm nervous about is that iTunes still places the .itl file on my C drive and will not write it to the external drive. Does iTunes insist on that file being in that location? Is it worth it to move the file? It seems like even if I did, iTunes would just write it again on the C drive. I'm still worried that if my external drive letter changes again iTunes will by default go looking for my music on the C drive instead of following the drive to the new letter, and then overwrite my library file when it can't find my music.
Currently Being ModeratedFeb 12, 2012 3:25 AM (in response to jtrory1)
To switch between .itl files you need to click the icon that launches iTunes and immediately press and hold down the shift key. Keep holding down until a dialog pops up asking you to choose or create a library. Click the choose button and navigate to the file you want to use. iTunes will carry on using the same file each time is starts unless the file can't be found or you use shift-start again.
If the .itl file was in the default location, but can't be found when iTunes starts, then it silently creates a new empty library. If the file was anywhere else it registers an error and then gives you a chance to choose or create a library. If you external drive is disconnected, cancel the dialog, connect the drive, launch iTunes. If the drive letter has changed, and you've made the library portable, click choose and browse to the new location, otherwise cancel and use disk management tools to reassign the correct drive letter.