floater,
I think your problem is that your Ipod is formatted with the apple filesystem. For linux to work, you need to convert to a windows filesystem. You might not want to do this if you don't have a windows computer with iTunes, because if something goes wrong, you need iTunes to restore it. You will need PC fdisk, which is most likely installed already
first off:
You may want to back up your iTunes DB:
cp /mnt/****/iPod_Control/iTunes/iTunesDB /mnt/ipod/iPod_Control/iTunes/iTunesDB.bak **** = the directory where your ipod is mounted
Now, back up your firmware:
dd if=/dev/sda2 of=backup_firmware ****you may need to change /dev/sda2 if your ipod is labeled as a different device
Next, begin fdisk (this will erase ALL data)
pc-fdisk /dev/sda [start fdisk]
Command (m for help): n [make new partition]
Command action
e extended
p primary partition (1-4)
p we want primary
Partition number (1-4): 1
First cylinder (1-608, default 1): [just press enter]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-608, default 608): +32M [32M is the default for 1.x iPods]
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (6-608, default 6): 6 [Just use the default value, press ENTER (don't worry if it isn't 6)]
Using default value 6
Last cylinder or +size or +sizeM or +sizeK (6-608, default 608): [press ENTER]
Using default value 608 [If you don't own a 5gb iPod, this value will be different, don't care about it]
Command (m for help): t [Modify type]
Partition number (1-4): 1
Hex code (type L to list codes): 0 [we don't care about the warning below]
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 [this is where data will go]
Hex code (type L to list codes): b [b=FAT32]
Changed system type of partition 2 to b (Win95 FAT32)
Command (m for help): w [Writing new partition. Can take a while.]
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Now, rewrite the firmware:
dd if=backup_firmware of=/dev/sda1 <== sda1 if you are mounted under USB
Good Luck!
|