How Do I Point iTunes to use my backup ext drive?


I use iTunes on a Mac Mini with 2 external 500GB disk drives. I use one of the external disk drives strictly as a backup. All I do to backup my iTunes information is I copy the complete contents of the iTUNES folder on my primary drive to the backup drive by the drag & drop (copy) feature. As you Mac users know, the iTunes folder contains 4 sub folders with the Music Library, Album artwork and XML file.

Well the dreaded day has come and I suffered a hard disk crash. No problem as my backup disk contains all of my needed iTunes files. However when I try to access my playlists, iTunes tells me it can't find the song title. I can change the location of the song title to the backup drive and it finds it successfully, but with over 4,000 songs ripped I can't imagine that I have to do this for every song. I changed the Advanced Preferences in iTunes to point to the backup location, but I think this is only to tell iTunes where to rip new music.

How do I tell iTunes to reference the backup drive so that it can find my playlists and music files?

Thanks in advance,
Brian ...
cycles2

Showing 6 responses by rel


I believe the solution is fairly simple.

First, quit iTunes (if it is currently running). Then, relaunch iTunes while holding down the "Option" key.

You should be presented with a dialog box that reads:

Choose iTunes Library

iTunes needs a library to continue. You may choose an existing iTunes library or create a new one.

Click on the "Choose Library" button, which will allow you to navigate to the iTunes folder on your backup drive. Be sure you choose the actual iTunes folder, and not one of the folders contained within the iTunes folder, such as "iTunes Music."

Assuming your backup was current, you should be back in business, with everything working exactly as it did before your disc crashed.

Once you're satisfied that all is well, create a NEW backup of your entire iTunes folder on a backup drive, just as you did before.

Good luck!
-

Also, regarding those Advanced Preferences in iTunes:

I changed the Advanced Preferences in iTunes to point to the backup location, but I think this is only to tell iTunes where to rip new music.

What this does is point iTunes to the location of the "iTunes Music" folder. This folder is where the actual music files reside. And, as you point out, the "iTunes Music" folder is just one component of the iTunes Library.

Making this change does NOT change the location of the "iTunes" folder (which normally CONTAINS the "iTunes Music" folder). What it does, in effect, is put an alias of your "iTunes Music" folder into your "iTunes" folder. This alias then directs iTunes to the ACTUAL location of the music files, wherever that may be.

So while this allows iTunes to locate the music itself, it DOES NOT tell iTunes where the actual "iTunes" FOLDER resides. And since iTunes is expecting this folder to be on your now kaput disc (which it can no longer access), until you redirect it to the "iTunes" folder on your backup disc, it is at a loss as to how to proceed, so it will appear "broken."

Redirecting iTunes to the proper folder on the backup disc should restore everything to its pre-crash state.

Hope this makes sense!
-

Herman,

Don't mean to be contentious, but I believe it is you that has it completely wrong.

Holding the option key on launch allows iTunes to work with multiple libraries (have you ever actually tried this??).

In this case there are two libraries in question: the original (now fried), and the back-up (hopefully identical to the original).

If iTunes is pointed to the back-up, it should not be able to tell the difference between the back-up and the original library.

The only thing that MAY prevent this from working, is that the back-up was made by dragging and dropping, which could conceivably result in iTunes becoming confused.

Your point that iTunes is versatile enough to not require all music files to be in the "iTunes Music" folder is certainly correct. However, disasters like this make a very strong case for keeping all your music in one place, rather than scattered hither and yon on your hard drive--or worse yet--on multiple hard drives.

Perhaps Brian (Cycles2), the original poster, could update us on his progress?
-

I've been tied-up for the past few days, so haven't had a chance to chime-in till now.

First, in the "All's Well that Ends Well" Department, I'm very happy to hear that you've recovered your music, Brian.

However, I still think the way you're using iTunes is unwise, and likely to cause you problems in the future. I don't have a lot of time at the moment for a detailed discussion, but I would suggest that deselecting "Copy files to iTunes Music Folder" is a big mistake!

What happens when you do this is that your music files stay wherever they started out, and what you add to your library are merely POINTERS to those files. This is all well and good when everything is working well, but when you make a drag and drop copy of your iTunes folder, you have ONLY COPIED THE POINTERS, NOT THE MUSIC.

Should disaster strike your primary drive, you are left either without the music files (unless they're backed up elsewhere), or without a simple way to reconstitute your library, as the pointers now point to an inaccessible drive (as Herman has alluded to).

So in the "Flogging a Dead Horse" Department (are you reading this, Herman?), I would like to report the results of a little experiment I did.

Starting with a brand-new, completely empty iTunes library, I added a single disc to the library--and before anyone objects that this is not a useful real world experiment, I'll remind you of the newly chartered "Minimalist School" of Audiophilia, whose members pledge to own only one disc.

In order to eliminate as many variables as possible, the files I added to the library were ripped directly from a CD so as to insure they had no previous contact with iTunes or any other program, and hence, no association with any computer, file structure, etc.

Then, I copied this newly created library (by means of drag and drop) onto another drive. When I quit iTunes, I disconnected the drive containing the original library, leaving only the back-up drive (with a completely different name) connected to the computer.

On relaunching iTunes (with the option key held down), I choose the newly created back-up of the newly created library, and discovered the back-up was indeed IDENTICAL to the original.

I really can't think of anything simpler than this, and would be very leery of the suggestion made by Onhwy61 to "rename the backup drive whatever name you gave the drive that died," which, for many reasons, is likely to lead to a whole lot of trouble.
-
Since Herman has thrown down the gauntlet, I'll try to shed some light on this whole iTunes thing--with the very clear disclaimer that I am not a computer scientist, programmer, or even, for that matter, a Unix jockey.

The whole "flogging" thing was, of course, directed towards the aforementioned dead horse, not any of our esteemed 'Gon'ers. So even though Herman has admitted to actually enjoying being flogged, perhaps this personal tidbit is best kept between him and his therapist(s). Or as the old joke goes:

Masochist: Go ahead, hit me!

Sadist: No way!

So let the flogging begin....

It seems one of the primary causes of confusion in these iTunes discussions is nomenclature. Apple is at least partly to blame for this by using terms that are often less than clear, or even downright ambiguous. The prime example is the term "iTunes Library."

This term is merely a concept that refers to the complete collection of software components and data used by iTunes to perform its familiar functions, such as playing music, displaying album art, keeping track of playlists, presenting track information, etc., etc. Your "iTunes Library" is, in effect, all the music you've imported into iTunes and its associated data and metadata.

By default, this entire collection of information (including the music files themselves), is contained within a FOLDER named "iTunes," and this folder is (again, by default) contained within the user's "Music" folder.

Within the "iTunes" folder, however, are four items: the "Album Artwork" folder; the "iTunes Library" file; the "iTunes Music" folder; and a file called "iTunes Music Library.xml."

This is where the confusion begins. "iTunes" (the computer program), requires an "iTunes LIBRARY" (a term used to convey a concept referring to a collection of data), which data are contained within a FOLDER named "iTunes," which contains a FILE named "iTunes Library," plus another FILE named "iTunes Music Library.xml." Fantastic!

The "iTunes Library" file contains all the non-music, non-artwork information used by iTunes to organize your music collection (including track names, album titles, playlists, ratings, etc.); while the "iTunes Music Library.xml" contains essentially the same information, but is used primarily to exchange information with other programs in the iLife suite (such as iPhoto, iMovie, etc.)

If the "iTunes Library" file becomes lost, damaged, or corrupted, you'll still have all your music and artwork, but iTunes (the program) won't know how to deal with it. Re-importing your music and artwork will restore iTunes functionality, but you will have lost information regarding playlists, ratings, number of times played, etc. If, on the other hand, your music is lost, damaged, or corrupted, it's time to pray that you have a backup of some kind. Same goes for artwork, but to a much lesser extent, since much of it can be downloaded (free) from the iTunes Store (not to be confused with the iTunes Program).

So this is how Apple sets up the iTunes environment by default. If you are content to leave things as they are, everything is likely to be just fine. The problems start when well-meaning users begin to take advantage of various flexibilities that Apple builds into the iTunes program.

The most "dangerous" choice is to UNCHECK the box in "Advanced Preferences" that reads "Copy files to iTunes Music folder when adding to library." Once you do this, every bit of music "added" to your iTunes Library consists solely of POINTERS to the actual music files. If those music files are scattered all over the place, you had best be sure your backup procedure includes backing those files up. Copying your "iTunes" folder or your "iTunes Music" folder (or both) to another drive will succeed in copying ONLY the pointers, NOT the music!

Another somewhat less dangerous choice allowed by Apple is to move the "iTunes Music" folder to a different location. Granted, for large collections (hundreds of GB's), this makes a lot of sense. By dedicating an external drive (or even a network accessible drive) to your music, it is possible to have an enormous collection without using up all the space on your primary drive. In this case, however, you'll need to back up both your "iTunes" folder and your "iTunes Music" folder. Merely backing up your "iTunes" folder will save all your artwork and metadata, but NO MUSIC! Backing up just your "iTunes Music" folder will save your music, but lose your metadata.

So to answer your specific questions, Herman, here's how my little experiment was carried out. My primary drive (which contains OS X and my home folder) goes by the default name of Macintosh HD; the two drives I used we'll call Drive A and Drive B.

Launching iTunes with the option key depressed allowed me to create a new "iTunes LIBRARY" on Drive A. To this LIBRARY, I added the tracks ripped from a single CD, so the track data that the iTunes PROGRAM grabbed from CDDB (the online CD DataBase) got added to the "iTunes Library" FILE within the "iTunes" FOLDER. The music itself got added to the "iTunes Music" FOLDER, also within the "iTunes" folder, and the album artwork (downloaded from the iTunes STORE), was placed into the "Album Artwork" folder, which again, was contained within the "iTunes" folder.

I then quit the iTunes program, and copied the entire "iTunes" FOLDER on Drive A by dragging and dropping onto Drive B. Drive A was then ejected (removed completely from the computing environment), and I relaunched iTunes with the option key depressed. This time, rather than creating a new library, I chose an existing library (the one copied to Drive B), represented in the Finder by the FOLDER on Drive B named "iTunes." Upon selecting this folder I was presented with an iTunes library IDENTICAL to the one I had copied from Drive A.

The reason I did NOT run into the problems you predicted is that although the absolute names of the files on Drive B were different (they were, after all, on Drive B), the relative names were not: everything other than "Drive B" was identical, so iTunes didn't really care. It's kind of like the old days, before Area Codes started multiplying like rabbits. If you wrote down the phone numbers of all your friends in your town, there was no need to write down the Area Code--it didn't matter. But if you travelled around the country collecting phone numbers from people wherever you went, neglecting to write down the Area Codes could lead to serious problems.

And Jpod, to answer your question, I don't think you could do any better than backing up your drive using some kind of drive imaging program. My understanding of these is that you get a bit-for-bit "clone" of your original drive, something impossible to do by means of drag and drop copy. Assuming you keep your backups current, should disaster strike, you merely substitute your "cloned" disc for the original, and your computer is none the wiser. Everything should work exactly as it did with the original disc.

Final disclaimer: I'm a Mac-only guy, and know NOTHING about Windows.
-

Jethro, I been flogging this here dead horse for days now, and it don't hardly budge none.

Cletus, sometimes them dead horses just enjoy it too damn much. If I wuz you, I'd just stop and see if he don't just git up and gallop off all by hiself.

Sorry, but I've been getting ready for a trip and won't be back till next week, so haven't had time to respond.

The short answer is:

NO

WRONG!

NO

NO

YES IT DOES!

NO THEY DON'T

YES IT DOES!

NO

HUH??

YES IT IS!

READ WHAT I SAID

I AGREE, THIS POINT WAS EXPRESSED POORLY, SORRY.

Don't mean to be a smart ass, but that's all I have time for now!

Cheers!
-