23/10/2010 – iTunes DB Cloner 0.9.1.0 – added support for iTunes 10.x.
iTunes DB Cloner is a tool that allows you to synch your iPhone/iPod Touch or iPod nano with two or more computers.
- What’s the problem?
- The techie reason
- The solution
- iTunes DB Cloner
- Quick Instructions
- How to retrieve the Persistent ID directly from your iPhone
- Download
- Credits
- Disclaimer
Whats the problem?
By default, these iPod models can only be synchronized with a single iTunes. To ensure this, a unique identifier is stored in the database used by iTunes to keep track of your playlists, music, video and podcasts on your computer, the iTunes Library. This database is created per user meaning that you cannot manage your device from different user accounts in the same machine.
Attempt of trying to synchronize any of them with iTunes on a different computer, or even with the same iTunes copy in the same computer but logged on as a different user, will raise the following warning.
Your only alternatives here were either relinquishing synchronizing with the new computer or accepting to erase the media contents in the device so you could associate it again with the new iTunes… Isn’t this annoying!?!? Especially since this restriction is not present in any other models of the iPod family (iPod Classic and fatter siblings).
The techie reason
In a nutshell this tie between the iPhone/iPod and the iTunes to which it is associated with is based on this unique identifier, namely the Library Persistent ID, which is checked every time the device is connected to the computer. Only if the ID in iTunes matches the one previously stored in the device you will be able to browse, listen, watch and update the contents on the iPhone. If device and iTunes have different IDs, you will only be able to see a list of what’s stored in the device, but nothing else. You cannot listen to the music you are seeing on the screen, view any videos and let alone modifying the contents. This library ID is generated by iTunes the first time it is started up for a given user. Different users on the same computer will get different IDs for their iTunes libraries. This ID is transferred to the iPhone during the first synchronization, and will remain there until the user decides to overwrite it with a different one by synching with a different iTunes.
The solution
You can see now that if you could use the same identifier across all your iTunes libraries, in different computers (at work/home, Macs or PCs); you would then be able to play the music, videos and podcasts stored in your device(s) everywhere and, add or remove contents to it regardless of the you are using. By “cloning” this unique identifier of your iTunes Libraries across your different computers you will effectively be able to manage your device(s) in any of them. Nothing is ever touched in the device. Fortunately for all of us, Mr. Andrew Grant (hats off to him! :)) discovered where this ID was stored. Furthermore he discovered that it was perfectly safe to modify just this ID on a given iTunes library. This means that all of our information (play lists, imported albums and videos) will remain intact after altering the identifier.
iTunes DB Cloner
Modification of this database id involves altering both an XML file and a binary file which not everybody is well used to. For the lazy ones (and that includes me) or those who think they might need to do this fairly often, iTunes DB Cloner is a handy tool. iTunes DB Cloner reads and writes the identifier of your iTunes library in just one click, without needing to tinker manually with hexadecimal editors or XML syntax
Quick Instructions
The idea is to read the ID of the iTunes Library currently associated with your device, and then update your other libraries to use this ID.
Read ID
- Execute iTunes DB Cloner on the computer already associated with your iPhone/iPod Touch/nano. Note that iTunes DB Cloner automatically displays the Current persistent ID (for the current user).
- Write down the value in the Current persistent ID box somewhere, you’ll need it on the next step.
Update ID
- Go to another iTunes (different PC or different user session on the same machine); and execute iTunes DB Cloner there. Notice the ID displayed this time is different from the once you read before.
- Enter the ID from the working iTunes on the black box and click Update ID. If iTunes is already running, iTunes DB Cloner will prompt you to confirm if it is OK to close it. After a few seconds, you will hear a chime, and a confirmation of the changes.
- Click on Read ID to double-check that the Library ID is now what you entered.
- Repeat from step 3 in any other PC if necessary.
Done! You can now connect your iPhone/iPod Touch/nano to any of the modified iTunes and listen and manage your contents from them.
How to retrieve the iTunes Persistent ID directly from your iPhone
If you have no access to the computer that your iPhone is currently paired to, there’s is still a way to retrieve the Persistent ID directly from your iPhone.
Download
iTunes DB Cloner is free.
Latest version
0.9.1.0
Download iTunes DB Cloner v 0.9.1.0 for Windows. Installer (837 KB) | ZIP file (657 KB)
Older versions
0.9.0.2
Download iTunes DB Cloner v 0.9.0.2 for Windows. ZIP file (591 KB)
I developed it because I really wanted a tool like this and there was no other similar one around by the time (remember Im lazy). And yes also for fun and to learn a couple of things on the way too. My skills in Objective-C/Cocoa programming are not good enough yet to release a Mac OS version of this tool.
Credits
This tool is based on the discovery by Andrew Grant and he deserves credit for his work. You can check out his blog posting on the subject here.
If you want to know more about how this works, or need to modify an ID on a Mac OS version of iTunes, I recommend you to check the original HOWTO by Andrew, which describes how to do this manually, both on Mac and Windows.
iClarified has another great guide based on his work with step-by-step screenshots for manually altering the ID in both platforms.
Disclaimer
I tried to focus on making iTunes DB Cloner safe in that it will be really hard to break things. Additionally, a backup of the original files is always created just in case you need to revert back the changes.
Having said this and also for dramatic effect, I will add that I am not responsible for any damage of any kind produced by the use of this (otherwise innocent) tool.
This tool is free. It is also free of virus or malware of any form (or at least of any one detectable by an up-to-date antivirus).
#1 by Davinelli on March 27, 2009 - 8:43 pm
Quote
The Dogs Bollocks mate!
Amazing. No time now, but promise download it and try it. We need something like this, absolutelly.
I go back to you with feedback 🙂
Pingback: Windows: Toevoeging op artikel "Synchroniseer multimedia op je iPhone met meerdere computers" - iPhone Forum - alles over de Apple iPhone en iPhone 3G
#2 by David on April 2, 2009 - 9:26 pm
Quote
Thanks so much for this utility!!! Alleviates the need to alter the xml and itl files manually. Worked like a charm.
#3 by dijon on April 7, 2009 - 2:34 pm
Quote
I’m trying to sync my iPhone with a new computer and no longer have access to the old one. I moved my library to the new comp and installed a fresh itunes there. I just want to start managing my music manually with the new computer – will this tool help me if i don’t know the old itunes id?
#4 by Felipe on April 7, 2009 - 4:43 pm
Quote
Hi dijon,
If you want to preserve the media data already on the phone, you need to know the Persistent ID it is currently using (and this is precisely the only input value you have to enter in this tool).
iTunes DB Cloner only reads files on the computer, so it cannot help you in recovering the ID currently stored on the phone.
However, you could extract the current ID manually from the binary file in the device. Just bear in mind that it is encoded differently byte-order wise, and of course you need it to be jailbroken to be able to access the files.
#5 by Ken on April 9, 2009 - 6:00 pm
Quote
This is awesome. Thanks. I was not looking forward to trying to hex edit myself. I’ve been beating my head against the wall figuring out how I could store additional video on my laptop so that I could switch out video on my iPhone on vacation, and this is the perfect solution.
#6 by haani on April 20, 2009 - 10:46 am
Quote
thanks it worked great!!! got vista/windows 7 on one computer!!!
#7 by Texasann on April 23, 2009 - 7:41 pm
Quote
Oh boy! I cannot wait to try this! I found Andrew Grant’s instructions, but was not excited about finding/editing. You (and Andrew of course) ROCK!
#8 by AndrewBoldman on June 4, 2009 - 11:01 pm
Quote
da best. Keep it going! Thank you
#9 by Ronald on June 5, 2009 - 7:39 pm
Quote
Could you help me on this: my notebook was stolen, so I don’t have access to the original Library Persistent ID. Can I read it from somewhere within the iphone?
#10 by Felipe on June 5, 2009 - 11:21 pm
Quote
Hi Ronald,
So sorry to hear you had your notebook stolen.
Yes, there’s a way to read the persistent ID directly from the iPhone. Mind you it’s not a particularly simple process, but it does work.
Check this howto.
#11 by Kelly Brown on June 13, 2009 - 1:28 am
Quote
Hi, gr8 post thanks for posting. Information is useful!
#12 by D on July 1, 2009 - 11:12 am
Quote
Felipe, you’re a pearl among the flotsam. Just gave this a whirl and it worked exactly as described; now my iPhone works the way my Touch did. You’ve made me very happy today.
#13 by Faisal on July 4, 2009 - 10:37 pm
Quote
Felipe,
Thank you so much for doing this for teh rest of us. It worked great. I tetsed it with the 3GS phone and the latest itunes……
Many thanks to Andrew as well.
#14 by CrisBetewsky on July 6, 2009 - 7:42 pm
Quote
Hello! Thanks for the post. It is really amazing! I will definitely share it with my friends.
#15 by Brett on July 6, 2009 - 8:16 pm
Quote
I can get the 2nd computer’s iTunes setup correctly. I want to just sync with my 2nd computer for my work calendar.
The problem is that iTunes keeps trying to sync applications, and since I have no apps on my 2nd computer, it erases all of the apps off of the phone.
If I try to uncheck the sync apps block, it warns me that doing so will cause it to erase all of may apps.
So, how do you sync with to computers without erasing apps?
#16 by KonstantinMiller on July 7, 2009 - 4:59 am
Quote
Hello. I think the article is really interesting. I am even interested in reading more. How soon will you update your blog?
#17 by buy_vigrxplus on July 15, 2009 - 12:32 pm
Quote
Great post! Ill subscribe right now wth my feedreader software!
#18 by Michael on July 17, 2009 - 12:51 pm
Quote
Hola de parte de parejaspareja.es, encontre tu blog navegando por la red buscando el otro lado en google. Me parece super interesante la información que tienes en tu blog y sin lugar a dudas regresare a leerlo. Tengo una pregunta, si podria traducir tu blog “iTunes DB Cloner « freaky notes” y añadirlos a un de mis blogs en italiano? Y por supuesto con el link direccionando a tu blog. Estare esperando tu respuesta. parejaspareja.es
#19 by LnddMiles on July 22, 2009 - 9:52 pm
Quote
Pretty cool post. I just stumbled upon your blog and wanted to say
that I have really liked reading your blog posts. Anyway
Ill be subscribing to your blog and I hope you post again soon!
#20 by Kasey on September 17, 2009 - 4:49 pm
Quote
If I were a weaker and less masculine man I would be compelled to kiss you. Swooning and wishing for a womb from which I could spawn your offspring will have to suffice. You are a gentleman and a scholar.
#21 by Jacob on October 7, 2009 - 1:35 am
Quote
When i try to open the exe file it says “This program cannot be run in DOS mode.”
What does that mean??
#22 by Felipe on October 7, 2009 - 9:44 am
Quote
Hi Jacob,
Try to download it again, since that message might mean something’s not right with the file.
#23 by Don on October 13, 2009 - 8:28 pm
Quote
I’m dying to make this work. Spent all day yesterday changing (over and over again) the ID manually. I have two PC’s and a Mac. It never worked, so I figured I may have done something wrong. I restored the files in the 2 other computers from backups.
I found your little app and tried it on the 2nd PC, using the ID from the 1st PC.
When connecting the iPhone to the 2nd PC, I still get the “this iPhone is synced with another library, and all will be erased, etc.”
Just to see what would happen, I just tried changing the ID on the original computer to match the 2nd computer. When I connect the iPhone it works as it always did on the original computer even though the ID is changed.
Evidently it doesn’t seem to matter what ID is in the iTunes files.
I use external drives on all three computers, and the actual music files are stored there. Could that have something to do with why it doesn’t work?
Have you verified that this procedure still works on the newest iTunes?
I’d give anything to get this too work!!!
Thanks so much, Don
#24 by Jason Espado on January 4, 2010 - 12:09 am
Quote
I believe that is another way to construe it. I never thought guessed I’d hear you say this, however, after all your other blogs about Apple!
#25 by Jason on January 4, 2010 - 10:38 pm
Quote
is there a way to manually edit the music library location? its not even letting me try to copy/edit the library id, because iTunes changes the library name..
#26 by Hendrik on April 8, 2010 - 11:58 am
Quote
This app really works great!!!
No complicated workaround, especially when you are at friends and want to drop something from your iPhone to their library – just change to your id, copy and afterwards change it back again. Great!
But in case you are at friends with macs, is there any similar possibility / tool that works on mac os???
#27 by G-Man on July 26, 2010 - 3:56 pm
Quote
yeah thanks alot for this it really saves time when i wanna give my girlfriend some music or something to her iPhone and vice versa, i recommended it to a couple ppl too THANKS!
Pingback: iPhone / iPad mit mehreren Computern synchronisieren – so geht’s | www.48hours.de
#28 by koolzero on September 1, 2010 - 3:39 pm
Quote
Has something changed with the newer version of iTunes. I’m unable to get this to work. I’ve even followed manual instructions and am unable to make it work. I did however get it to work on Jan 26th 2010 via the manual editing method.
I have a suspicion that something in itunes has been changed to make this no longer work. Can anyone verify that they are having issues making this work? on 9.2.+
#29 by Jack on September 7, 2010 - 4:04 am
Quote
I used this method successfully on the older itunes, but with the new release the iD keeps getting reset. I noticed a new file called sentinel which contained the ID and so I changed it there as well but the minute I restarted itunes the ID’s reverted back.
Anyone have any ideas on what to try next ???
#30 by Kal on September 16, 2010 - 6:41 pm
Quote
I tried the manual method by Andrew Grant and the ID reverts back.
My itunes is 10.0.0.68 and iPhone 4.1
Any new ideas for fix?
#31 by Drew on October 14, 2010 - 7:30 pm
Quote
Something definitely changed. This changes the ID, but as soon as I go into iTunes and try to sync my iPhone, it is changed back to the old ID. This is beyond frustrating. Why the hell does Apple have to make changing machines such a HUGE pain in the ass?
#32 by Felipe on October 22, 2010 - 10:54 pm
Quote
Hi all,
I have just uploaded a new version (0.9.1.0) that works with iTunes 10.X. Hope that it helps!
#33 by miller on October 26, 2010 - 8:18 am
Quote
I can’t wait to use this. THANK YOU
Curious what the fix was to correct the new ID from reverting?
#34 by waymon on October 27, 2010 - 1:50 am
Quote
thanks! worked great 😀
#35 by Jason on October 29, 2010 - 1:47 pm
Quote
Can you give us some details on how you got it to work with iTunes 10.0? I’ve got a Mac and did this often but it’s broken in iTunes 10.0….thanks!
Pingback: Library Persistent ID in iTunes 10.0 « freaky Notes
#36 by Felipe on October 29, 2010 - 4:51 pm
Quote
Hi Miller/Jason,
Sorry guys, I haven’t had time to update this page with the changes introduced in version 0.9.1.0.
However I have just posted a new entry about what has changed in iTunes 10.0 regarding the ID that will probably help you.
http://www.corsino.com/blog/?p=153
In a nutshell, change the ID in the XML and corrupt the binary file. I just truncate the file to 0 bytes and it works 🙂
@Jason: could you please confirm if this still works for you on a Mac?
#37 by Jason on October 29, 2010 - 8:57 pm
Quote
I will def try this but how do I corrupt the binary file? just add nonsense data via a hex editer?
#38 by Felipe on October 29, 2010 - 10:26 pm
Quote
That could work, but to be sure, I would simply truncate the file (after making a backup of course). That’s what I do in iTunes DB Cloner. You could:
A) open the binary file in a text editor and delete everything, so it remains as an empty file (0 bytes long),
or…
B) open a command shell, delete it and create it again with 0 size.
rm libraryfile
touch library file
You can acomplish the same with your hex editor if you want… just empty the file and save it.
that will leave you with a 0 bytes file.
#39 by Schedule on October 29, 2010 - 11:09 pm
Quote
Maybe you could edit the page title iTunes DB Cloner freaky Notes to more specific for your webpage you make. I loved the the writing however.
#40 by Felipe on October 30, 2010 - 9:40 am
Quote
You are right Schedule … The title is awful and not descriptive at all. I am afraid I spent my little creativity in the application icon, lol. Need to find something more descriptive. Any suggestions?
Pingback: Anonymous
#41 by Jeremy on November 6, 2010 - 2:18 am
Quote
Can’t get it to work… iTunes 10.0.1.22 on two PCs. I changed the persistent number over as instructed in the docs. But when I go to sync up music on the newly authorized computer, it still tells me that it will overwrite my iphone with the new computers library. Aargh! Did apple block this again?
#42 by Felipe on November 6, 2010 - 4:09 pm
Quote
Nope, not that I know 🙁 Stupid question, but have you double checked that the ID is actually the same on both computers? This works for adding/removing media manually. If you want to synchronize other types of data the iPhone’s data may be wiped too.
BTW, 10.0.1.22 is the version I used to test this update.
#43 by Tomas on November 9, 2010 - 7:23 pm
Quote
I used this for the first time today (both PCs are running Itunes 9.2)and when I plugged in the Iphone to the new laptop, it made a backup on it and I thought I was good to go..
However now I see that all my downloaded Apps are gone….why is that? I dont mind re-downloading them all again…I might just re-sync with my first PC and have it re-install it from there but why did the new PC not save them too?
Am I also supposed to see my videos and Music lists the same way as well?
Perhaps I could do that trick where the entire backup from my OLD PC is copied over to the new one?
Thanks
#44 by Tom on November 9, 2010 - 11:19 pm
Quote
Can’t get it to work 🙁 The program seems to be unable to locate the .xml and the .itl file.
The String in the program window is \itunes\itunes Music library.xml but it should be D:\eigenedateien\musik\itunes\itunes Music library.xml
Any suggestions? I appreciate your help!!
#45 by Rory on November 12, 2010 - 10:39 pm
Quote
AWESOME. Was having trouble getting the hex-edit trick to work with iTunes 10, found my way onto your site here and this did the trick =D
#46 by Jared C. on November 13, 2010 - 5:51 am
Quote
I’m another VERY happy camper, extolling the virtues of this application.
A problem that I had was that the iTunes process lingered even after I closed it so the installation did not occur properly, but this was easily fixed by opening task manager and closing said process. After that everything worked like a charm.