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.

Regarding Consolidation & Recreation of my library...

Hello all !


After years of syncing my iTunes & iPhone + iPod with MS Outlook I recently started having various errors. iTunes would not sync my Outlook data to the iPhone, or would do so partly (sometimes only the contacts but not the calendar and the notes, some other times it would sync only the calendar but not the rest, etc).


Long story short, I initally thought the problem was my outlook .pst file, so I tried to fix it but this did not help. After hours and days of searching these topics I came to the conclusion that the problem is not my Outlook .pst file, but a corrupted iTunes library.


Now, let me point out that I have a rather big iTunes library. It points to 3 different hard discs. Two of them are SATA and the 3rd is an external (USB) one.


So I was thinking of buying a new SATA HD and moving / consolidating everything regarding my music / iTunes to that new HD.


So my question is: Does "consolidating my library" automatically recreates and fixes a corrupted library? Or should I first recreate my corrupted library by following this guide http://support.apple.com/kb/HT1451 and then proceed to consolidate that newly recreated library to my new HD ?


thank you in advance !

iPhone 4S, Windows 7, 4 GB RAM / iTunes / iPod Classic 120GB

Posted on Mar 7, 2014 10:43 AM

Reply
Question marked as Best reply

Posted on Mar 7, 2014 10:52 AM

Consolidating won't fix any internal errors in the database. Rebuilding the library with the media will lose ratings, play counts, playlists, date added values etc. Most of the data, with the exception of date added, can be backed up and restored into a new library if needed. Just be sure to back up the exitsting .itl and .xml files before trying to create a new library. Are you sure the library is really a problem? Are there other obvious issues apart from the syncing one? Double-checking also that you've uninstalled MobileMe... If not that could be part of the problem.


tt2

34 replies

Aug 20, 2014 10:12 AM in response to turingtest2

@ turingtest2


I have finally managed to buy a new 3TB sata HDD to put my music.


Before I end up consolidating the library and let iTunes take over, I'm thinking of an approach that might work as an alternative.


I think I might have written a post in a forum that is not suited for such questions ("Using iPhone") and you might never see it. The link is this:


Change itunes local music file path location iTunes?


Any help and feedback would be appreciated


regards

Aug 20, 2014 10:27 AM in response to IoannisGR

Frankly I'd go back to my advice of March 8th: Re: Regarding Consolidation & Recreation of my library...


This will leave your original library completely untouched while making sure that the new copy of it is in a suitable shape for backup and future moves. In essence you need to create one or two folders, copy four files, shift-start iTunes to switch libraries and then let iTunes do all the hard work. All of the playlists in iTunes will be preserved.


For more background see Make a split library portable.


tt2

Aug 20, 2014 11:40 AM in response to turingtest2

Thank you for your input on this (and your patience).


It's just that I'm not sure I will like the way iTunes will form my folders of music.

Furthermore, I'm not sure I can understand the way I will be adding music after that procedure.


So far I was just putting for example an album (folder with mp3s) of Phil Collins in the related "Phil Collins" artist folder I already have. Then I would always drag the mp3s I wanted to the playlist I wanted or created a new one within iTunes.


If I follow the "Let iTunes take over and consolidate..." approach, how would I be adding files without having as a result two instances of them?

I mean if iTunes has already created (after the consolidation) a folder "Phil Collins", would I just put his new album in that folder and then drag it to the playlist I want?

Aug 20, 2014 12:06 PM in response to IoannisGR

If you insert a Phil Collins CD and rip it, iTunes will rip to <Media Folder>\Phil Collins\<Album>\## <Name>.<Ext>


If you drop a collection of Phil Collins' tracks (assuming they are properly tagged) into <Media Folder>Automatically Add to iTunes, then iTunes will add them to the library and move them to <Media Folder>\Phil Collins\<Album>\## <Name>.<Ext>


If you put the tracks anywhere else inside the media folder and use File > Add Folder to Library or drag and drop the folder onto the library or a playlist then iTunes will add them to the library and move them to <Media Folder>\Phil Collins\<Album>\## <Name>.<Ext> and, if applicable, add to that playlist.


If you put the tracks anywhere outside the media folder and use File > Add Folder to Library or drag and drop the folder onto the library or a playlist then iTunes will add them to the library and copy them to <Media Folder>\Phil Collins\<Album>\## <Name>.<Ext> and, if applicable, add to that playlist.


If you change details, such as the album title, then iTunes will move them to reflect that change.


As long as iTunes knows where they are they can be played in iTunes, added or removed from as many playlists as you like, and so on. The physical location isn't really important. iTunes already has methods to show you all tracks by an artists, all those from the same album, all those of the same genre, and so on. The logical organization in iTunes is based on the tag metadata, not the file paths.


tt2

Aug 20, 2014 12:02 PM in response to IoannisGR

I have found that the best approach is simply not to think how and where iTunes stores your music, except that it is in a well structured, common location that's easy to backup. To use your example, if I buy a Phil Collins album as an Amazon mp3 download:


  • The mp3 files will be downloaded, by the Amazon Music app, to C:\Users\user_name\Music\Amazon MP3\Phil Collins\album_name
  • Depending on settings in the Amazon Music app, the album may be automatically added to iTunes
  • If not, I use File > Add Folder to Library ... to add the album to iTunes
  • Now I have the as-downloaded copy in C:\Users\user_name\Music\Amazon MP3\Phil Collins\album_name and the iTunes copy which on my system happens to be in K:\iTunes\iTunes Media\Music\Phil Collins\album_name
  • I move the original folder & files to a separate drive (that's later replicated to another server) as a backup (also as a source for the one device I have that won't run iTunes)
  • Now I can can update the metadata in iTunes to match how I like it to be, for example:
    • Year is always the original release year
    • Make the Sort Artist "Collins, Phil"
    • Set the Sort Album to "Collins, Phil yyyymmdd" where yyyymmdd is the actual release date of the album (as far as it can be determined) - this allows everything in my library to be sorted in the way I like it (and for that order to be reflected on iDevices)
    • etc.


The key thing here is that I'm using iTunes as a metadata management tool without worrying about folder names, locations, etc. All I need to know is that I can replicate everything in the K:\iTunes folder as a backup against hardware failure/data loss and as a means of transferring the library to secondary and tertiary systems; I have this set up as a "portable" library so that it contains the iTunes Library.itl file and other database files, the Album Artwork folder, etc. as well as the iTunes Media folders. Obviously I do end up with two copies/versions of the album but to me that's an advantage - I have an unmodified copy of the music purchased, and a second copy modified as per my preferences.

Aug 20, 2014 12:19 PM in response to IoannisGR

Your original library files and media will remain untouched until you decide you want to do something about them. Consolidate copies files, never moving them. iTunes only ever moves files located within the designated media folder and then only if Keep organized is checked.


If you don't like the result use shift-start-iTunes to go back to the original library.


t2

Aug 20, 2014 12:37 PM in response to turingtest2

Ok I started the procedure.


i am at this step:


Open the menu item Edit > Preferences > Advanced (press Alt or Ctrl+B to reveal the menu bar if needed) and, if necessary, change the media folder to M:\iTunes\iTumes Media - if you make a change iTunes will offer to consolidate files but say no at this point.

the subfolder "iTunes Media" does not exist yet on my new HDD's newly created iTunes folder.

Should I manually create it myself ?

Aug 20, 2014 1:00 PM in response to turingtest2

OK.


It has started copying the files.


Already I see that some albums are being placed into a folder named "Compilations" when they should not be there.... I guess for some reason the "compilation" option was checked within the info of the album or something like that, right ?

For example I have a folder for the group A-HA and it contains only one of their albums.

All the other albums of A-HA are being put into that "Compilation" folder.

How can I change this when iTunes completes the copying ?


thank you again

Aug 20, 2014 1:16 PM in response to IoannisGR

Yes, if you unset the Part of a Compilation flag the media will be moved to an artist-specific folder. You should also check that when you unset this flag that all tracks have the same Album Artist value so that they are grouped correctly. For "genuine" compilations you can either leave the Part of a Compilation flag set (media remains under Compilations) or set the Album Artist to "Various Artists" (or similar).

Aug 20, 2014 1:22 PM in response to hhgttg27

Thank you.

So every change I make at a tag or info, will make iTunes to automatically relocate the file and if needed it will delete the needless folder ?


for example:

I have an artist that his name is Dimitris Papaspyropoulos


Right now (obviously) due to spelling mistakes, iTunes has created 3 different artist folders for him:


1) Dimitris Papaspyropoulos (this is the right one)

2) Dimitris Papaspiropoulos (wrong spelling)

3) Dimitris PAPASPYROPOULOs (wrong way of writing it)

Aug 20, 2014 1:39 PM in response to IoannisGR

In general, yes. I've seen a few cases where an empty folder was not deleted - if that's an issue, there are several utilities (I use one called Remove Empty Directories) can be used to tidy folders up. If you adjust - using your example - the Artist Name for all the relevant albums to be "Dimitris Papaspyropoulos" then you should end up with one iTunes Media\Music\Dimitris Papaspyropoulos folder containing all the artist's albums.

Aug 21, 2014 3:57 AM in response to hhgttg27

I'd like to thank you both once again turingtest2 and hhgttg27 for helping me on this.

Everything went fine and now I also have two copies of my music. The iTunes Media consolidated is the one and the other is just a folder with all my original music files for backup purposes. At that second folder I will be downloading my music originally before I import it into iTunes playlists, etc.


Only thing that needs hours of work to "fix" is a lot of albums, tracks, etc that did not have the right tags - most of them are just untagged so I have now artists folders called "unknown artist", and other ones similar to that, or files that come with the name "Audiotrack 01", etc. These I have to find time and an efficient way to fix them, because even within the iTunes Media folder I'd like everything to be as tidy as possible.

Regarding Consolidation & Recreation of my library...

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