Sync an iPod Touch to Two Computers

Mobile Devices No Comments

ipodtouch4gI use both a Macbook and a Windows desktop and wanted to see if I could sync the same iPod Touch to both machines. Below is one method I found to do this and some caveats about the method. (This method will work with iPhones and iPads also.)

Some background on how an iPod Touch pairs with an iTunes library

When you install iTunes on any computer, iTunes gets assigned a unique identifier. When you sync an iPod Touch to that same computer, the iPod Touch will store that unique identifier. If you attempt to sync the iPod Touch with another computer, the stored identifier won’t match that of the other computer’s iTunes library and the iPod Touch will refuse to sync. To get the iPod Touch to sync with the other computer, you would have to agree to overwrite the stored unique identifier and content of the iPod Touch with that of the new iTunes library.

Syncing to more than one machine

I found several websites that contained instructions on how to sync an iPod Touch (or iPhone or iPad) to more than one computer. However, the instructions did not work for the latest iTunes 10.5 version. In the comments of How to sync an iPhone with two (or more) Computers, I found a method which worked. While the old method was to change the unique identifier in two files (“iTunes Library.itl” and “iTunes Music Library.xml”), the new method only required changing one file (iTunes Music Library.xml).

  1. On the first computer (which the iPod Touch currently syncs to), locate the iTunes directory.
    • On Windows XP: \Document and Settings\username\My Documents\My Music\iTunes
    • On Windows 7: \Users\username\Music\iTunes
    • On Mac OS X: /Users/username/Music/iTunes
  2. Open the “iTunes Music Library.xml” file in your favorite text editor, search for the “Library Persistent ID” key, and copy the key value (a hex string that looks like “8ACF35DDCB78FEB1”).
  3. On the second computer, locate the iTunes directory.
  4. Open the “iTunes Music Library.xml” file, search for the “Library Persistent ID” key, and overwrite its value with the value from the first computer.
  5. Rename (or delete if you are brave) the “iTunes Library.itl” file.
  6. Create a new “iTunes Library.itl” file with zero size. You must create this file; otherwise, iTunes will generate a new Library Persistent ID without any warning.
  7. Run iTunes on the second computer, it will throw a warning that the “iTunes Library.itl” file is corrupt and it will then generate a replacement file. (If you don’t get a warning, iTunes will overwrite your inputted Library ID and you will need to start over.)
  8. Exit iTunes, open the “iTunes Library.itl” file, and double-check that the Library Persistent ID is still the value you want. (You can delete the “iTunes Library (Damaged).itl” file.)
  9. Because the iTunes Library was re-generated, you will need to re-add any apps, music, videos, etc. To re-add the content, go to the menu “File->Add File to Library” or “File->Add Folder To Library” and choose the file or folder to add. (The application files with extension “.ipa” are located in the “iTunes Media/Mobile Applications” subdirectory under the iTunes directory.) iTunes will automatically recognized what is being imported.

The iPod Touch is now sync’able against both computers. But wait, the information (music, video, contacts, notes, etc.) and applications on both computer are likely not identical. If that is the case, you will want to manually control how the sync works on either computer. You can start by configuring iTunes to not automatically sync.

Run iTunes on both computers and do the following:

  1. On Mac OS X, go to menu “iTunes->Preferences”. On Windows, go to menu “Edit->Preferences”.
  2. Select the Devices tab and check the “Prevent iPods, iPhones, and iPads from syncing automatically” option.
  3. If you would like to control the location where your music and video files are stored, select the Advanced tab and uncheck the “Keep iTunes Media folder organized” and “Copy files to iTunes Media folder when adding to library” options.
  4. If you would like to prevent automatic downloads from the iTunes store, select the Store tab and uncheck every option (including “Always check for available downloads”).

Doing the above does not solve the whole issue of having different content on the two computers. The problem is that the iPod Touch has its own configuration on what to sync (Apps, Music, Movies, TV Shows, Photos, and Info). To see those sync options (they show as tabs in the device details), connect the iPod Touch to the computer and click on the iPod Touch device in iTunes. If you configure the iPod Touch to sync Music, the same setting is used for both computers and if you don’t have the same music on both computers, then you have an issue.

The workaround I use for the above is manually intensive. Before syncing, I double-check the sync options on the iPod Touch. If I only have music on my first computer, I make sure to check “Sync Music” before syncing; while on the second computer, I make sure to uncheck “Sync Music” before syncing. (Strangely, the “Sync Info” options are not persisted for both computers, but this might be a Mac OS X and Windows side effect.) If I’m careful and don’t get confused, it works. Of course, if I mess up and accidentally get the music wiped from the iPod Touch, it is easy to re-sync the music back.

Of course, you can avoid the above complexity by having the same content exist on both computers. In that case, instead of following the steps above to get sync working with both computers, you might consider copying the “iTunes Library.itl” file over to the second computer and deleting the “iTunes Music Library.xml” file on the second computer. On startup, iTunes will regenerate the “iTunes Music Library.xml” file with the library identifier from the “iTunes Library.itl” file. The content info (stored in “iTunes Library.itl”) will show up in iTunes on the second computer; you will need to have the actual content files, like mp3 music files, exist in the same directory locations. I also read that you could just copy the whole iTunes directory from the first to the second computer, but I have never tried this so don’t know if it will work.

Alternatively, there is a way to sync the content from the iPod Touch to the second computer. This is possible according to Sync iPhone to iTunes – Transfer iPhone to iTunes synchronization. I haven’t tried this, but it looks very interesting and opens up new possibilities.

I hope that the above info will help you to get the most from your iPod Touch.

No Comments

Jailbreak iPod Touch 4G Running IOS 5.0.1 Using RedSn0w

Mobile Devices No Comments

Luckily, just when I needed to jailbreak a new iPod Touch 4G with iOS 5.0, I found that the iPhone devteam had released a version of RedSn0w (version 0.9.10b3) that would jailbreak the latest iOS 5.0.1 operating system. And better yet, this version would allow untethered usage (thanks to @pod2g!) which means that it is possible to reboot the iPod Touch without having to connect the device (“tether”) and re-running the jailbreak software. You can read up on the details at Dev-Team Blog – Untethered holidays.

You can download RedSn0w 0.9.10b3 from the Dev-Team Blog link above. I downloaded the version for Mac OS X, which worked perfectly on my Mac OS X 10.6 Snow Leopard macbook. This new version of RedSn0w did not prompt me for the iOS 5.0.1 IPSW firmware image so you don’t need to download that (previous RedSn0w versions would require the correct IPSW image file).

Before running redSn0w, I used iTunes to upgrade the iPod Touch 4G to the latest iOS 5.0.1 version. When that was completed (about 10 minutes), I installed and ran RedSn0w. I noticed that on launch, RedSn0w now quits iTunes automatically; this is nice because in the past, I had to manually quit iTunes in order to avoid popup messages from iTunes during the jailbreak.

I followed the instructions like so:

  1. I selected “Jailbreak and install Cydia”.
  2. I shutdown the iPod Touch as instructed. (Leave the iPod Touch connected to the computer by USB cable.)
  3. The next screen provides instructions to get the device into DFU mode: press power 3 seconds, press both power and home for 10 seconds, press home for 15 seconds.
    • The number of seconds were very generous but I still followed them regardless. In the second stage, the screen shut off after the power and home were held for 6 seconds. In the third stage, the device entered DFU mode after the home button was held for 5 seconds.
    • When I was jailbreaking a second iPod Touch, I didn’t follow the instructions closely and ended up putting the device into recovery mode, instead of DFU mode. There are several utilities to exit a device from recovery mode and I ended up using TinyUmbrella. Though I had to reboot the iPod Touch a couple of times with TinyUmbrella running before TinyUmbrella would recognized the device and enabled the “Exit recovery mode” button.
  4. RedSn0w will recognized when the device enters DFU mode and will start the jailbreak process.
  5. After about 20 seconds, RedSn0w will offer some options. I just kept the default “Install Cydia” and “Enable battery percentage” options checked. The “Enable battery percentage” is very useful (to tell when it is fully charged) and I’m surprised Apple doesn’t provide it by default.
  6. RedSn0w ends after a minute or two and the iPod Touch continues the jailbreak process for another few minutes. The iPod Touch’s screen will show a pineapple logo with a progress bar.
    • The second iPod Touch froze during the jailbreak; I think I moved the USB connector and interrupted the process. If that happens to you, just quit RedSn0w and shutdown the device so you can start over. You can force a shutdown by holding both the Power and the Home button for 5-10 seconds until the screen turns off. If the device goes into recovery mode, RedSn0w will complain about it and you can use TinyUmbrella (like above) to exit recovery mode.

Once the iPod Touch has completed the jailbreak and started successfully, I recommend doing the following on the device:

  • Enable battery percentage by going to Settings->General->Usage and turning On the “Battery Percentage” option.
  • Install the “Installous 4” application by doing the following:
    1. Run Cydia and select a User profile (or any other profile). Wait for Cydia to update itself; you can watch the spinning icon near the top. This will take about 30 seconds.
    2. Go to Manage->Sources->Edit->Add, input “http://cydia.hackulo.us”, hit Add Source, and hit Add Anyway. Once the data is reloaded (10-20 seconds), tap on “Return to Cydia” near the bottom.
    3. Go to Search, tap on the input field at the top, and input “Installous”. Tap on “Installous 4” in the search results, hit Install and Confirm. After the install completes (about 30 seconds), tap on “Restart SpringBoard” and you will be placed back into the normal unlock screen.
    4. You should now see an Installous application icon next to the Cydia icon.

Thanks to RedSn0w, the jailbreak process has never been easier. Good luck with your jailbreak.

No Comments