LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2009, 12:21 AM   #1
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Rep: Reputation: 18
Ipod Nano i limbo


My thirteen year old daughter left her beloved Nano plugged into my experimental LInux box for charging. I was playing about unifying the physical devices inside the box into an LVM and Kelly's ipod became part of the new system....at least until she unplugged the play to discover all the songs were gone.

Now begins the saga. Itunes will normally restore an ipod but Itunes7 did not recover the device and gave an error, I tried reformatting under using the Winodows format and Itunes still failed with 1429. Googling the problem reveals many persons around the world accusing Apple (Itunes 7) of not doing reformats on older ipods to encourage new purchases. Throw away ht eold and buy new Ipods.

Restore is the name of software you could down load to re-initialise an Ipod. I could not get the old ipod Restore software that used to do this job instead you are directed to use Itunes. I managed to find a copy in an archive, but whadayaknow, intead of running, a window opened to say this software is depricated and you should use Itunes 7

Linux to the rescue. Using fdisk I can create the two partitions, normal for an Ipod Nano. A 5 sector untyped partion and the rest FAT32. The firmware has however been blown away however I can either extract a copy from the apple firmware installer or copy it from another 1st generation Nano, then use dd to install the Ipod firmware. Aplle don't supply it any more....their download site now directs you to Itunes.

Surely someone knows where dd might get some firmware source.
If I can get such an animal I will put write a script to recover Nanos and make it available to one and all.
 
Old 02-03-2009, 01:35 AM   #2
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
To restore an ipod using linux
This assumes that all the usual restores have failed you have lost your songs and nothing works. Itunes has failed you.

First get the right firmware. \Be sure to identify the correct model with judicious use of Google. You can download the firmware from http://www.felixbruns.de/iPod/firmware/
it will down load a file with a name that end with ipsw
The downloaded file is a zip file. Create a working directory put the zip file in there and unzip the file. do an ls and you should see something like

Firmware-14.5.3.1 iPod_14.1.3.1.ipsw manifest.plist

The first file is the one you want.
Use df to see what file systems are in place, plug in the ipod, run df again to identify which device is your ipod. Many instructions refer to /dev/sda which may not be you ipod. In my case it was /dev/sdc
If the ipod is mounted, umount it. If it has mounted you may wish to only copy new firmware and maybe your songs can be recovered. Try skipping to the text below labelled COPYFIRMWARE. If that doesn't work go through the whole procedure again.

Erase the partition table and everything on the ipod. From her on your committed
dd if=/dev/zero of=/dev/sdc bs=1M count=10

Create some new partitions
fdisk /dev/sdc


Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xbbda16dc.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p
#Create the firmware partition and the data partitionCommand (m for help): p

Disk /dev/sdc: 4095 MB, 4095737344 bytes
126 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 7812 * 512 = 3999744 bytes
Disk identifier: 0xbbda16dc

Device Boot Start End Blocks Id System

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1023, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1023, default 1023):10S


Command (m for help): p

Disk /dev/sdc: 4095 MB, 4095737344 bytes
126 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 7812 * 512 = 3999744 bytes
Disk identifier: 0x9d80036a

Device Boot Start End Blocks Id System
/dev/sdc1 1 10 39029 83 Linux

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (11-1023, default 11):
Using default value 11
Last cylinder, +cylinders or +size{K,M,G} (11-1023, default 1023):
Using default value 1023

# Now type the partitions the first partition is type zero, don't worry about that however make the firmware partition bootable using the a command

Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): 0
Type 0 means free space to many systems
(but not to Linux). Having partitions of
type 0 is probably unwise. You can delete
a partition using the `d' command.
Changed system type of partition 1 to 0 (Empty)

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): b
Changed system type of partition 2 to b (W95 FAT32)

Command (m for help): a
Partition number (1-4): 1
Warning: partition 1 has empty type

Command (m for help): p

Disk /dev/sdc: 4095 MB, 4095737344 bytes
126 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 7812 * 512 = 3999744 bytes
Disk identifier: 0x9d80036a

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 10 39029 0 Empty
/dev/sdc2 11 1023 3956778 b W95 FAT32

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.

quit out of fdisk

Create a FAT32 file system in the second partition

mkfs.vfat -n "IpodName" -F 32 /dev/sdc2


COPYFIRMWARE:

Back at the Linux prompt copy the firmware into the first partition
dd if=Firmware-14.5.3.1 of=/dev/sdc1

removed ipod from computer and charge
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ipod nano asalford Linux - Software 1 12-31-2007 06:52 AM
iPod Nano pengudeus SUSE / openSUSE 0 04-06-2007 07:53 PM
iPod nano issues PsypherPunk Linux - Hardware 5 02-22-2006 10:48 AM
iPod Nano dstrbd1 Linux - Software 2 01-02-2006 02:46 AM
iPod Nano unihiekka Linux - Hardware 0 12-24-2005 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration