How To: keep your iTunes library on an external hard drive
For more helpful how-to guides, check out the TUAW Tips, iPhone 101 and Mac 101 topics.
After discussing how my iTunes library is set up with a few readers in the comments on my First Impressions/2G iPod nano post, I figured this might be a handy tip for readers who find themselves running out of room to store an expanding iTunes library. My only machine is a MacBook Pro with a 120GB hard drive, but after installing ~ 40GB of the entire Final Cut Studio suite and other various software and projects, I don't have room for my ~ 35GB iTunes library.
I decided to do some experimenting a couple weeks back with moving and keeping my library on an external hard drive. There are obvious initial disadvantages to this, but after some tinkering and getting comfortable with iTunes' baked-in library management genius, this can be a pretty useful setup for those who, like me, are cramped for space but aren't willing to trash those albums you're too embarrassed use in a Party Shuffle playlist. This setup also has the inherent, and obvious, advantage of keeping your library on an external hard drive, so it's more or less already backed up - though I, with my paranoid data habits, keep a backup of my library on a second hard drive, and I now also use Scott's iTunes 7 backup tip (instead of a previous Smart Playlist system) to burn my library to DVDs (the lesson from someone who knows: your data can never be too backed up - ever).
Getting back on topic: read on for a walkthrough (from a very mobile notebook user) of how to move your iTunes library to an external hard drive. I'll include some tips on how iTunes is already one step ahead of this setup, as well as a few habits you might need to adopt when living la vida external-iTunes-library.
The Setup
This isn't very difficult, but for those who aren't familiar with looking under iTunes' hood, I figured I'd lay this out and start from square one to make sure everyone can play along.

The one initial catch with running your iTunes library from an external drive is that you'll need a FireWire or USB2 drive for best performance; I have no idea how well this setup would perform on older machines with USB1, or if it would even work at all.
Now, if you're like most iTunes users, your library of music and movies (and now games) is stored locally on your Mac in ~/Music/iTunes/ (where ~ is your Home folder). With the latest iTunes 7 update, there are now (typically) two folders and two files in here (pictured above):
- Album Artwork folder (new with iTunes 7; missing from iTunes 6 and previous versions)
- iTunes Library (a database file iTunes needs)
- iTunes Music folder (this is where all your actual media like songs, podcasts, movies, and games live)
- iTunes Music Library (an XML library file iTunes also needs)
- if iTunes is running, quit it
- The only part of your iTunes folder you actually should move to the external hard drive is the iTunes Music folder (the one that holds all your media) itself; leave the Album Arwork folder, as well as the iTunes Library and iTunes Music Library files in place, locally on your Mac. Of course, if you want to back up your iTunes library for safe keeping (which I highly recommend, and again: Scott's iTunes 7 backup walkthrough is a great way to do it), including all your metadata, song ratings, song comments, etc., you should back up these local files in addition to your media
The Configuration
Fortunately, telling iTunes where its library now lives is a one-step process.

Go into iTunes' Preferences > Advanced pane, and click on the General tab. At the top of this tab is a record of where your library - your actual media - resides and, as you might guess, you can click the 'Change...' button to tell iTunes it's hopped the pond to external hard drive pastures. You simply need to browse through the Finder dialog and select your media library, wherever you put it, and click OK. That's it - iTunes writes the necessary changes to those aforementioned local database and XML library files, and you don't have to do any more heavy lifting. As long as your drive is still mounted and running, you can start playing your media just like before.
Unfortunately though, now that you're enjoying external iTunes library bliss, it's time to burst your bubble with a few gotchas to look out for. It's certainly possible to keep on trucking with this kind of setup (otherwise this would be a pretty useless post), but there are definitely some constraints to consider when going down this road.
The Gotchas
The most significant catch is, of course, the fact that if you ever disconnect your drive - perhaps you're a mobile notebook user like myself - you obviously can't play any of your media in iTunes. Unless you own an iPod and enable the setting to manage its music yourself, you're pretty much out of luck here.
As you might expect, this also means that managing an iPod with this setup can get quirky too. If you sync your iPod with iTunes, and you connect it while your library is unplugged, iTunes will freak out and, after a few moments, warn you that it can't update your iPod because none of your media is present. However: this doesn't remove any music from your iPod, and your iTunes media will be playable once you connect your drive again. A lot of those 'file not found' exclamation points will appear next to your songs in the iTunes media list after a scenario like this, but don't panic: once you reconnect your drive (and/or restart iTunes; that one's up to you), all your media will play and sync just fine again. I've tested this with both a 5G iPod and a nano.
If you want to be able to plug in your iPod and exchange files and folders without iTunes automatically starting (and potentially bringing up the aforementioned quirks), uncheck the 'start iTunes automatically when this iPod is connected' option. This way iTunes only starts when you're good and ready to interact with your media and/or your iPod. These might not be easy habits to develop if you're used to iTunes running the show for you, but they're most likely necessary if you've read this far into the post and you're still interested in living the external library lifestyle.
But what happens if I import media, download podcasts or buy something from the iTunes Store?
This is one of the many areas where I must tip my hat to Apple's engineers, for they really knocked one out of the park when it comes to this situation.

Ever wonder what the Advanced > Consolidate Library menu option does? Well, it was made for just such a setup as your new external iTunes library. If your drive isn't connected when you start iTunes and, for example, import a CD or download a subscribed podcast, iTunes needs to put it somewhere, and it defaults to placing that media in your local ~/Music/iTunes/iTunes Music/ folder. "But TUAW, this is going to turn my library into a mess!" you exclaim from atop your desk chair. Fear not, intrepid reader, for the Advanced > Consolidate Library command is to the rescue! This ingenious command tells iTunes to copy any media it's imported to the local default media folder over to your recently customized external folder - once it's reconnected, of course. This is beautiful, because it's a two-click process to move all that new media over with the rest of your library and organize it properly, defusing a potentially complicated library mess.
However, a fortunate perk of iTunes' ability to have a split library personality is its ability to update an iPod with a new podcast or recently imported album while you're out 'n about, sans-external library drive. This has the potential to get confusing though, so for the sake of your organizational sanity, I hope you don't need your new podcast episode fix too often while you're on the go.
Finally, as far as reuniting your libraries is concerned, it seems that iTunes copies your new media files over to the drive when consolidating, instead of moving them. Every so often after you run this option, it might be a good idea to dig into your local iTunes Music folder and trash all those files, as they're just dead weight after a consolidation.
Be one with your external iTunes Library, young Padawan
This should be just about everything you need to cut the chord on your iTunes library if you're looking to save space on your Mac, or if you're simply a nut for using external hard drives. I've been poking around at this setup for about a month now, and I've been pretty happy with it. Aside from the catches I mentioned to watch out for, I was able to save almost 35GB of space on my MacBook Pro and make way for other projects, with room to spare. As always with feature posts like this, I'll try to answer any questions you may have in the comments. Enjoy!
Share
Categories
For more helpful how-to guides, check out the TUAW Tips, iPhone 101 and Mac 101 topics. After discussing how my iTunes library is set...
Add a Comment
When I try to back up from my external drive - where all my music is stored - some tracks appear with a (!) and the message is they can't be found. For ex, out of about 1300 tracks about 200 are said to not be found. What am I doing wrong?!
November 21 2007 at 5:12 PM Report abuse Permalink rate up rate down ReplyI read this and it was really helpfull for my situation... but I still have some issues. I just got a new laptop and an external hard drive. So I'm using the external hd to transfer my iTunes library to the new laptop from the old one, but I also intend to new keep my iTunes library on the hqard drive. I'm most of the way through the process, I copied the library from the old computer and now have connected the HD tot he new computer, reassigned the iTunes music folder location, consolidated the two libraries (because I had added a few things to the library on the new computer). Now what what I need is to add all of the files from the folder into my iTunes, but I'm guessing that if I do "Add to Library" that will duplicate all my files... right? Because they already are in the library, I don't need to add them to the library I just need to add them so I can play them in iTunes. I hope this description wasn't to confusing.
December 08 2006 at 1:17 PM Report abuse Permalink rate up rate down ReplyWhat about connencting your computer with an airport. Is a usb connection too slow? For me the purpose of the macbook is to achieve a degree of portability around the house but I am not sure if listening to music from an external hard drive connected to an airport will work.
Any input anyone?
So here's the big question.
I have a 300GB portable harddrive that I have moved my iTunes library to. Orginally it was on my desktop PC at home.
I now have 2 other computers I want to use the library with, my MAC laptop and my desktop PC at work.
When I try on both of those machines to simply change the record of where the library is, none of the songs show up. The only way it seems is for me to go Import, add File to Library.
I'm not sure what I'm missing here.
My next question revolves around playlists, ratings etc. I've tried copying over the files, but it seems that the library files on my orginal PC are samller in size than the ones on any of the other machines, and even when I copy them, my playlists and ratings don't show up on the other machines.
What is it here that I'm missing, can anyone help?
Thanks!
T.
But can an ipod nano interface directly with an ext. HD (esp. a PC-based, NTFS-formatted one), w/o a computer as an intermediary? Maybe using a USB hub? (I'd like one to serve as an (mp3-only) media player right next to the stereo in the living room; no room in the shelf unit for a computer; & the missus wants to keep it uncluttered & doesn't even want a laptop.)
November 12 2006 at 4:36 PM Report abuse Permalink rate up rate down ReplyThanks!!!!!! Your The Best!!! That WasThe Easiest Thing To Do Ever, And I'm No Mac Pro.
November 11 2006 at 4:40 PM Report abuse Permalink rate up rate down Replycan one set up TWO libraries? i am mid-level tech: i have a 120G external hard drive, but only a 40G dell laptop. i want to keep all of my daily-used music on the laptop (c. 10G or less) but all of it on the external for parties (c. 25G). is there a way to switch back and forth between the libraries? can one just simply change the "itunes music folder location" whenever one wants to without any consequences? it would certainly be nice to have TWO libraries listed - one to default to and an alternate - does Libra do this? thanx.
November 11 2006 at 9:41 AM Report abuse Permalink rate up rate down ReplyAw, you know what, i just tried WozFan's "add to library" suggestion, and ive got it all back again! You can imagine how happy I am! Thanks folks!!!
October 24 2006 at 9:34 AM Report abuse Permalink rate up rate down ReplyHmmmm, a friend moved my heavy stuff to my external hard drive when i got it a few years ago. I just recently had some hard drive troubles and erased and reinstalled the start-up disk and found I didnt know how to get it to read iPhoto and iTunes from the external hard drive. Your post helped a lot, and I got iPhoto back with the Option pressed at start up, but neither that nor your suggestions will bring my music back up from the hard drive... I wonder what ive done wrong???
October 24 2006 at 8:57 AM Report abuse Permalink rate up rate down ReplyMy pet peeve has been the progressive 'outdating' of the different versions where I suddenly can't use my iTunes 4.01 after getting 6, 7, etc..
A bit of hex-editing in the iTune's (show package contents)
Contents>Resources>iTunes.rsrc file of the different versions I change the Itunes Music Library string to say, Itunes4Music Library for 4.0)
I can't emphasise enough that this can make an app break if you do it wrong and you should only change that exact phrase, substituting the number for the space between iTunes Music in that string. Work with a copy till you're sure it's working.
Do the mod, open up your older iTunes, whoops, no music. Don't Panic!
Add to library, choose your itunes music folder, and it updates. Repeat when you've changed something in your music library. Pain, but if you're going to the trouble of keeping different versions around, worth the trouble. Won't make any difference for accessing your iPod library.
Some older versions won't change the file names of your songs when adding them to your iPod, which can be useful in some situations. (wink wink)
And that, folks, is a very unauthorized way to have multiple versions of iTunes active. I have used this as far back as 1.12, but it won't recognize my iPod, that starts with 2.0 in my situation (mini).
Hot Apps on TUAW
Deals of the Day
more deals- Altec Lansing Octiv Duo iDock for $48 + free shipping
- Used Apple iMac 17" Core 2 Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



74 Comments