PDA

View Full Version : [ubuntu] How to Restore iPod Classic Without Windows



jdforsythe
September 11th, 2009, 03:21 PM
I could not find this information and saw some people in the forums asking, but the answer was always to find a Windows or Mac machine to do the restore. This is actually not necessary and it ended up being a really simple process to restore my iPod with only Ubuntu.

Warning: This will erase ALL data on your iPod. You should only restore your iPod as a last resort.

You'll need to find out which device name your iPod uses, so plug it in and unmount it (but not eject) if it is automatically mounted by Ubuntu.

Then open up a terminal and:

sudo fdisk -l

To get a list of drives and partitions. Find the one that matches your iPod. If it's Windows-formatted, you'll have 2 partitions. HFS+, Mac-formatted iPods have 3 partitions. Note whether your iPod is at /dev/sda (although this is probably your hard drive!), /dev/sdb, /dev/sdc, etc.

For the rest of this article, you will replace /dev/sdx or /dev/sdx1 with your proper device name (and the trailing number, where it exists).

1. Go to the Rockbox project iPod FAT32 conversion page (http://www.rockbox.org/twiki/bin/view/Main/IpodConversionToFAT32) and download the correct MBR file for your iPod model. If you are unsure of your model, go to Felix Bruns' iPod firmware site (http://www.felixbruns.de/iPod/firmware/) and click the link for "If you don't know what iPod or specific iPod generation you got, click here". Enter the last 3 characters of your iPod's serial number and it will tell you your iPod generation and size. Go ahead and download the firmware for your iPod because you will need it momentarily.

2. Once you have your MBR file, write the partition table to your iPod. The example is for my 4th generation 20gb iPod classic.

sudo dd if=mbr-4g-20gb.bin of=/dev/sdx

Now make Ubuntu re-read the partition table:

sudo hdparm -z /dev/sdx

3. If you haven't already, download the proper firmware for your iPod from Felix Brun's iPod firmware site (http://www.felixbruns.de/iPod/firmware/). The file will have a .ipsw extension, but it is actually just a .zip file that has been renamed. Rename it to .zip and extract it. You will find two files inside the folder:
manifest.plist which we will ignore
Firmware-#.#.#.# which we will write to the iPod


sudo dd if=Firmware-#.#.#.# of=/dev/sdx1

4. Format the second partition as FAT32, Windows-formatted

sudo mkfs.vfat -F 32 /dev/sdx2
(Note: If you are restoring a 5.5gen iPod, look for more information on the Rockbox project iPod conversion page (http://www.rockbox.org/twiki/bin/view/Main/IpodConversionToFAT32) where they explain the difference with the 5.5gen iPod and explain how to properly format it.

5. Eject and disconnect your iPod from your computer. It should boot up and display an image directing you to plug it into the wall outlet. Do so and follow the on-screen directions. Do not, under any circumstances, interrupt your iPod while it is resetting. You may brick your iPod and not be able to recover it.

Once your iPod has reset, it should be ready to go.

If you can't get your iPod to show in Ubuntu (doesn't show with fdisk -l), try putting the iPod in disk mode before connecting it to the computer. For my iPod, you simply hold select and menu until the Apple logo appears and then hold select and play until it shows "disk mode". This allowed me to access the drive on the iPod without it being in the infinite loop it was otherwise in.

meditatingfrog
October 12th, 2009, 09:43 PM
Cool post. Was curious what software you use to sync your ipod. I have a 5th gen ipod, and i haven't found a suitable solution to transferring files to and from my ipod.

Now that i wrote this, i'm going to try copying files manually to see what the ipod does.

Thanks for the post.

meditatingfrog
October 12th, 2009, 09:49 PM
Just tried deleting and copying files from/to my 5th gen ipod in nautilus. Doesn't work.

adamn
November 15th, 2009, 05:34 PM
The 1,2,3,4,5th generation of iPods are NOT called "iPod Classic". Just thought I would clarify. ipod "classic" is the 6th gen (and later) iPod video w/ hard drive. Big difference.

PS Rockbox does not support iPod classic:
"1st through 5.5th generation iPod, iPod Mini and 1st generation iPod Nano
(not the Shuffle, 2nd/3rd/4th gen Nano, Classic or Touch) "

adamn
November 15th, 2009, 05:40 PM
The 1,2,3,4,5th generation of iPods are NOT called "iPod Classic". Just thought I would clarify. ipod "classic" is the 6th gen (and later) iPod video w/ hard drive. Big difference.

PS Rockbox does not support iPod classic:
"1st through 5.5th generation iPod, iPod Mini and 1st generation iPod Nano
(not the Shuffle, 2nd/3rd/4th gen Nano, Classic or Touch) "

Although, technically, Apple doesn't refer to the classic as a 6th generation iPod Video, that is essentially what it is.

TokyoYank
November 20th, 2009, 05:58 PM
ipod "classic" is the 6th gen (and later) iPod video w/ hard drive. yep. Googled in only to find this error

If OP could edit the otherwise great post & title, much thanks!

thebestofall007
January 23rd, 2010, 11:06 PM
does anyone have any idea on where to get the mbr file for an ipod nano 2g? there's one for the 1g nano, but not the 2g.

b0arer753
January 8th, 2011, 12:43 AM
The 1,2,3,4,5th generation of iPods are NOT called "iPod Classic". Just thought I would clarify. ipod "classic" is the 6th gen (and later) iPod video w/ hard drive. Big difference.

PS Rockbox does not support iPod classic:
"1st through 5.5th generation iPod, iPod Mini and 1st generation iPod Nano
(not the Shuffle, 2nd/3rd/4th gen Nano, Classic or Touch) "

Sorry to revive an old thread, but does anyone know how I'd accomplish reformatting my 160gb 6th Gen iPod? Can't find an MBR file or any real info on reformatting new iPods.

meditatingfrog
January 8th, 2011, 04:19 AM
Sorry to revive an old thread, but does anyone know how I'd accomplish reformatting my 160gb 6th Gen iPod? Can't find an MBR file or any real info on reformatting new iPods.

i think you just have to follow the OPs instructions, perhaps this alone will do it.


sudo mkfs.vfat -F 32 /dev/sdx2

i think the x in sdx2 may vary from system to system.

but, if it doesn't work, you'll probably need to format it on a windows or mac system (unfortunately). i never tried the OPs instructions on my 5th gen, at least i know what i can try via a terminal if i ever need to reformat the ipod.

bababooey
January 8th, 2011, 05:13 AM
i tried rockbox on my 5th gen 80gb video ipod, and the rockbox interface is too slow :( it has awesome ipod management within the ipod though.