How to guarantee iTunes will only use a library on an external drive, and not start a new one when it can't be found
by, 10-23-2011 at 01:37 PM (989 Views)
iTunes by default creates its files in the user's home directory, in the Music subdirectory.
We like to keep everything on an external drive.
If, due to disk arbitration or any other glitch upon startup or login, iTunes does not see this external drive, it reverts back to ~/Music and starts creating stuff there. Moreover, if you re-load stuff, it will start moving and organizing on the internal drive under ~/Music.
The one method I have found to be 100% effective is this:
Delete the iTunes subdirectory in ~/Music. (Make sure everything you want is still on that external drive). Hiding it, or sticking it in the trash isn't good enough. You have to wipe that thing clean off your internal drive.
Next, fire up the terminal, and make yourself a symbolic link as follows:
Now it will always work. If the external drive is missing, unplugged, whatever, iTunes will simply fail to open, instead of creating a new library.Code:ln -s /Volumes/YourDriveName/subdirectory/iTunes /Users/yourusername/Music/iTunes