Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Moving I tunes media folder to external hard drive

I have followed a guide that was put on the forums for this and it temporarily worked however, every time I disconnect the external hard drive and open I tunes to see if it has worked it seems to create another I tunes media folder, is their something I am missing?? Or does it create a new one every time I tunes is opened. (the guide explained that when you have selected a new location in the advanced preferences you can delete the I tunes media file from your old hard drive, as the location of the file has been changed I expected it not to open properly when I disconnected the new external hard drive, but it did and created a new I tunes media file in the old location, so checked preferences again to see the location and it has reverted to what it was in the first place! Any help would be greatly appreciated!!!!!!!

iPhone 4, iOS 5.1.1

Posted on Jun 20, 2012 4:38 PM

Reply
Question marked as Best reply

Posted on Jun 20, 2012 11:52 PM

Mike__81,

Whats happend is normal.

If you have your music library on a external hard drive and you disconnect the ext. HD and start iTunes, iTunes shall make a library file on your computer (if there is not so one) because itunes can't read the library on the ext. HD.

In the preferences shall be the location reverted to the new location.

If you close iTunes and you connect back your ext. HD with the music en the library, iTunes recognice back the pad to your ext. HD. In the preferences you shall see that the pad is back to your ext. HD.


Stefaan.

32 replies

Feb 25, 2014 2:56 AM in response to turingtest2

Hello,


I have a split library and would have liked to make it portable. (Then i'd like to use it on several computers, a mac running OS X 10.5.8 and a pc running windows vista.)

I was trying to follow your directions (also, in this post: https://discussions.apple.com/thread/3992324?answerId=18525450022#18525450022) but i have the following problem: my media files are in the parent folder of my external drive. (I have no idea why we did this when we set it up, it was at least 6 years ago.. It seems really untidy in retrospect..)


My library files are on my internal drive, at the classic location (.../Music/iTunes).

My media files are on my external drive, in the parent folder. So, in the parent folder, i have the Music, Movies, Podcasts, etc folders that should be in a subfolder, if things were tidy..


I haven't found this elsewhere, but is there a way to move these media files to a subfolder? I am under the impression that if i do what apple support tells me to do (http://support.apple.com/kb/HT1449), it will copy the files. I can't do that, i don't have enough space on my external drive to copy the files. Is there a way to move them and not copy them?


I am running itunes 10.6.3 on OS X 10.5.8.


If there isn't a way to do that, is it possible to go on with making the library portable, and have the library files in the same folder as the media files folder? How bad is that?


Thanks if you can help!


Camille

Feb 25, 2014 4:20 AM in response to starfish_cam

To be portable the relative path from the library database to the media folder needs to be as a direct subfolder. Nothing else works, so putting the library files in the root won't cut it.


I gather there isn't enough room on this drive to temporarily duplicate the media. For Windows I have a script called ConsolidateByMoving which can be used to move rather than copy files to the correct path. I had hoped that Doug's script RelocateSelected would do something similar, although reading the notes it seems it just uses a flat folder. You could disable iTunes Keep organized option, relocate the files into /iTunes/iTunes Media/Temp, set the media folder as /iTunes/iTunes Media, then turn Keep organized back on to, um, organize things.


Might be better still to buy a new external drive, copy the existing iTunes folder from the internal drive to /iTunes on the new external, use option-start-iTunes to connect to the relocated library, set the media folder to /iTunes/iTunes Media and consolidate the library. Once you know it is all working properly you can wipe the old copy of the library on the other drive and clone the new one to it for security.


A portable library can be moved between computers quite easily, however when switching between Windows and OS X or vice versa there is fairly long internal adjustment process (well long if you have a big library) that happens on the first run.


tt2

Feb 25, 2014 4:41 AM in response to turingtest2

Thanks a lot.


I've thought about it, i think i will use an external drive, but i think what i'll do is make room on the existing drive (the reason it's full is it has a lot of other media that has nothing to do with itunes) by moving some other unrelated files to an external drive, enough to be able to duplicate the itunes media files, then move the itunes media files with the temporary duplication, and once that's done, move stuff back.. That way i just need to borrow an external drive...


(My library is 178G, is that big?)


Camille

Feb 25, 2014 6:55 AM in response to starfish_cam

Another idea that occurred to me is that you don't have to consolidate everything in one go. You could, for example, consolidate all tracks by artists beginning with A, then delete their original artist folders, then B etc. but there are potential gotchas with artists that begin "A ", "An ", or "The ", and the more steps that are involved the more chances there are that you'll delete the wrong thing by accident at some point.


If you don't have a second external drive now I urge you to buy your own now rather than borrow one temporarily. Hard drives can and do fail without warning. At a minimum your iTunes library, and all other data that matters to you, should be on two separate physical drives.


178Gb is big enough that you will notice the delayed start up time when you switch from OS X to Windows or back again.


tt2

Feb 25, 2014 2:01 PM in response to starfish_cam

What RAID level? And yes I'd still recommend another backup. Something like a slim 1Tb host powered USB drive is quite reasonable and taking a snapshot of the state of the library before any major change allows you to be radical knowing you can revert to the current state of play if things go horribly wrong.


In this case if you copy the library files to \iTunes on the new drive and consolidate the library into \iTunes iTunes Media then you can thoroughly test the library on the new drive with the old one disconnected before reconnecting, clearing away the old media files, cloning the new library into the RAID and switching the active library to copy on the RAID. You can subsequently update the backup disc at intervals of your choosing.


tt2

Apr 6, 2014 2:18 AM in response to Mike__81

iTunes 11.1.5 on Mavericks here. Trying to move the iTunes library and media files on a new NAS for (alternate) access from my 2 macs.


I did the steps suggested in this thread to consolidate my library before moving it to the NAS share, also to reorganize it as iTunes saw fit. The media files were located outside iTunes folder in a folder called Music, and even after the consolidation, iTunes did not touch anything related to the media files (did not copy the media files inside the iTunes Media folder as I was expecting).


Former location of the media on the original mac: /users/mihneam/Music


What I did next was to change the location of the iTunes media folder from Preferences -> Advanced -> Change to point inside the iTunes Media folder (so I could make the library portable). I was asked if I wanted iTunes to move and update the content to the new location, I said yes, and after the operation completed, the media files were still left in their original location outside iTunes folder.


I moved them manually inside iTunes Media folder and it worked for the original mac on which the library had been built. at this point the library is supposed to be portable as described in this thread. And I have copied the entire iTunes folder (containing both the library and media files) to the NAS, option-started iTunes and pointed it to the NAS library, and it works fine for the original mac.


Current location of the media on the NAS is: /Volumes/Muzica/iTunes/iTunes Media

User uploaded file


2 problems though:


1. I try to point the second mac to the same NAS location, iTunes opens the library, but cannot play music complaining it cannot find the files (I have the option to Locate file or Cancel).

2. When playing music from the original mac, the played songs are moved by iTunes in a subfolder called Music it created under the iTunes Media folder! It looks like there is still a reference somewhere in the library to the former Music folder which used to hold the media files. Very strange, since this scatters my music files.


What can I do to make it work from the second mac and also to make sure the library database is not corrupted internally so it stops moving my songs like this.


Thank you so much for your help!

Apr 6, 2014 8:14 AM in response to turingtest2

Thanks for replying, tt2!


The full path is /Volumes/Muzica/iTunes/iTunes Media, and now it works also on the second mac. I think all it needed was to open and close iTunes on the original mac, then re-point the second mac to the NAS library.


Do you think I should move manually the music from iTunes Media to the iTunes Media/Music folder? It seems iTunes is moving itself the played files, but it would take a while to cycle through my entire collection to get everything in the proper place like this :-)


Thanks again.

Apr 6, 2014 9:07 AM in response to MihneaM

In general don't move things by hand. With some limited exceptions that can confuse iTunes, although it is slightly more forgiving on a Mac.


First check under File > Library > Organize Library... that the option to Rearrange files... is greyed out. This confirms that the library should be using the modern layout that places music items in <Media Folder>/Music/etc.


Next go to iTunes > Preferences > Advanced and untick the option to Keep iTunes Media folder organized, click OK, then go back and turn the feature on again. All your files should move into the correct places.


tt2

Apr 6, 2014 9:41 AM in response to turingtest2

Yes, Rearrange option was grayed out from the first media folder reorganization I did earlier on.


But unchecking and rechecking the Keep iTunes Media folder organized did the trick and forced iTunes to move everything in the right location (well, except for the extra files I had in several folders with jpg covers and pdf cd slieves)!


Thanks a lot, tt2!

May 4, 2014 7:40 PM in response to turingtest2

Thank you turingtest2, you have turned my frustrations into success. Your 6 step process was what I needed to get my itunes working on my new computer. I have kept the Media Files on an external hard drive and my Preferences in iTunes was pointing to it. The folder with these files also held a library file and the rest of the files needed for the library. I have always thought this was the correct library file. When I copied this folder and pointed iTunes to it when I opened it, it did in fact open a library but it was all wrong. Very old, in fact. Old podcasts I had long ago deleted, most of the new movies missing, not locating a lot of the music, just a mess. I knew it couldn't be right because all the media was there, library had been set to keep media in the itunes library when adding, it was consolodated. It finally hit me to look in the normal place for iTunes library files. There was an iTunes folder in my home directory and sure enough, when I pointed iTunes to open that library all was correct again.

So, I followed your steps to move those files to the external drive and now I have a portable folder for iTunes that I was able to connect the hard drive to the new computer, tell my new copy of iTunes to open that library, and it's PERFECT. I can't thank you enough for taking the time to walk us through the process. Very helpful indeed.

Moving I tunes media folder to external hard drive

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