Consolidate Library - music disappeared? size and number of files discrepancy

Hi,

I am a long time user of iTunes (Since iTunes 4 if I remember correctly).

I have always let iTunes manage my folders, i.e. "Keep iTunes Music folder organized" and

"Copy files to iTunes Music folder when adding to library" checkboxes checked.

A few years ago, can't remember when exactly, there was a new version of iTunes, where the default folder changed.

Before it was /Users/username/Music/iTunes/iTunes Music/Music

It changed to /Users/username/Music/iTunes/iTunes Media/Music


Since that point, all the music I imported was automatically placed into this "iTunes Media" folder.

A while back I stumbled upon this thread about this:

https://discussions.apple.com/thread/2559184?answerId=12188188022#12188188022

Today I finally found time to do as suggested in this thread: Consolidate library.

So everything would be organized neatly in one folder, as it's supposed to be, instead of two different folders.


Now after the Consolidate Library command finished, I find a huge discrepancy in folder sizes, and a small discrepancy in the total number of songs in my Library.


Before Consolidate Library :


iTunes window info at the bottom: 16570 items, 71:01:26:56 total time, 155,32 GB

Folder size:

Music>iTunes>iTunes Media>Music 32,44 GB

Music>iTunes>iTunes Music>Music 154,63 GB

together that is 187,07 GB


After Consolidate Library:


iTunes window info at the bottom: 16439 items, 70:18:38:38 total time, 154,74 GB

Folder size:

Music>iTunes>iTunes Media>Music 166,16 GB


So according to the iTunes window info at the bottom, 131 items disappeared, worth 0,85 GB data.

But according to the folder sizes, 20,91 GB disappeared.


I have two full back-ups (carbon copy cloner) of my system drive, so I can always revert. But I'd really like this issue to be solved.


So my questions:

- Where did these songs go? Why did iTunes not copy 131 songs?

- How can I know which songs were not copied? I can't start searching through 16k songs which ones are missing...

- How is it possible that before the consolidation, iTunes window at the bottom, said total size was 155,32GB, while through the finder > get info I get a sum of 187,07 GB for these 2 folders together??? that's almost 21GB difference.


I'm puzzled... does anybody have experience with this? Useful insights welcome !

MacBook Pro, Mac OS X (10.6.8), 2.66GHz Intel Core i7 4GB 17" 2010

Posted on Sep 8, 2012 2:06 PM

Reply
11 replies

Sep 8, 2012 5:58 PM in response to --A--C--

Part of the mystery I just found out myself, by scrolling through the music folder on my backup clone, where the "before consolidation" clone resides:


This year I've been cleaning up my library. Deleting a lot of music that I almost never listen to, to save some space. Have it backed up elsewhere anyway, don't need it on my laptop.


When you delete something within the library, a pop-up says "Are you sure blablah...", then you click "Delete Song(s)", then another pop-up says "Do you want to move the selected songs to the trash, or keep them in the iTunes Media folder?". Then I always clicked "Move To Trash".


For some mysterious reason, it didn't move the files that where in the "iTunes Music" folder to the trash. They disappeared from my Library, but were still there in the "iTunes Music" folder. That's where the 21GB difference goes I suspect, it's about the amount of music I removed from my laptop probably.

The more recent files that were in the new "iTunes Media" folder were probably trashed I guess.

So my theory is that this is a bug in iTunes, that probably started at the moment the default location was changed to "iTunes Media". Can't believe I'm the only one experiencing this?

Anyone else on the forum with these two folders (iTunes Music and iTunes Media) who can confirm that if you remove something (from the old Music Folder), the actual file is not trashed?


But still some questions remain:

131 items disappeared after consolidation. How to figure out which ones?

Why a difference of 11,4 GB between the Finder Folder Info and the iTunes window info?

166,16GB vs 154,74GB

and 131 songs does not correspond to a size of 11,4GB...

Sep 8, 2012 6:56 PM in response to --A--C--

iTunes only offers to send files to the trash if they are in the designated media folder. This used to be called iTunes Music but is now called iTunes Media. iTunes shouldn't have switched to using the new layout if your library was working with the old one, but I guess it can happen.


Consolidation copies things outside the media folder inside it, leaving the originals behind. You have to tidy up by hand. Consolidation shouldn't lose any files, but again I guess it can happen.


tt2

Sep 9, 2012 4:34 PM in response to turingtest2

turingtest2 wrote:


iTunes only offers to send files to the trash if they are in the designated media folder.

Apparently not, I've always been offered the option to send the files I wanted to delete to the trash. Even when these files were located in the original Music folder, after the point where the Media folder was introduced. Until now I never realised iTunes doesn't want to trash stuff that is not located in its default Media folder. It acts as if it allows you to trash it, but it doesn't. No message at all that the operation couldn't be completed. This seems like a bug to me.

I'm quite sure that there must be other users out there with the same problem, but are unaware of it.

Please report here if anyone experiences the same.


Now can somebody please check : difference between total media size at the bottom of the iTunes window when you click on Library - and the size value of the Media folder you find in the Finder window through Get Info.

I still have that above mentioned 11GB size difference. (again, I have only music files)

Hypothesis:

Could it be that iTunes calculates a total size merely based upon track lenght and bitrate, without taking attached artwork into account? Because most of my music files have the artwork embedded in the file. (Not in the special artwork folder.) I've got my reasons for that. This could explain the difference, just thinking out loud...

Sep 9, 2012 4:55 PM in response to turingtest2

turingtest2 wrote:

If you have any logical dupes, that is two entries in the library connected to the same physical file, then iTunes would report larger values than Finder for the same content.

But the reverse is true: iTunes reports a LOWER value than the Finder. See above posts.

166,16GB (finder) vs 154,74GB (iTunes)

Thanks for trying to help anyway.


I'm a very organised person, my iTunes library doesn't contain many duplicates except for songs that appeared on an EP as well as on a full album. But those are different files, with the same song name, but different album name and other different meta data.

Sep 9, 2012 5:16 PM in response to --A--C--

You can always try the script Music Folder Files Not Added to check for and add any orphaned tracks.


I'm sure you know your library well, but you can confirm your library is clear of exact duplicates with Option+File > Display Exact Duplicates.


There is a seemingly random problem that sometimes occurs with new purchases that these are not listed in the main music folder. I wonder if consolidating could also mysteriously omit some tracks on occasion. The fix that often works is to get the current iTunes Free Single of The Week. Another method that should cause iTunes to double check its databases is to delete the hidden file sentinel in the iTunes folder, then start iTunes.


tt2

Sep 9, 2012 5:23 PM in response to turingtest2

If found another thread about this here:

https://discussions.apple.com/thread/2565775?start=0&tstart=0


Apparently the finder DOES calculate the size differently then iTunes !

I compared a bunch of individual files, first the size in iTunes, then right-click > show in finder.

Each time the Finder value is considerably higher than what iTunes reports.

Try it your self. (Didn't calculate a percentage yet.)

If that adds up for 16500 songs, the difference could be 11GB.


I'm gonna dig into that tomorrow, it's getting late, should get some sleep ;-)

Sep 10, 2012 2:40 PM in response to turingtest2

Ok, promblem solved then, that must be it. Base 10 - Base 2 difference.

This change was introduced in Snow Leopard apparently, according to this article.

http://hints.macworld.com/article.php?story=20111108130725594

Never noticed until now.

It was probably announced in a very small font somewhere at the bottom of a "what's new" document :-)

Interesting to know, now I can go on with my life, thanks for thinking along with me TT2, cheerz.


One last remark, it's not very consistent by Apple, to change this Base for the file size calculations in Finder only. If they decided to change it, they should have changed it through the whole OS, iTunes app included. For many years now, consistency through all apps is very important to them, so why did they fail here??

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Consolidate Library - music disappeared? size and number of files discrepancy

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