apt-get install libfile-ncopy-perl |
$ su Password: # cd gnupod-tools/ # cp *.pl /usr/local/bin/ |
Do not connect iPod yet! # modprobe ohci1394 # insmod sbp2 Now connect iPod |
tar -xjvf util-linux-X.XXx.tar.bz2 cd util-linux-X.XXx ./configure cd fdisk make cp fdisk /usr/sbin/pc-fdisk |
# dd if=/dev/sda2 of=/root/firmware # md5sum /root/firmware 09f2a78b00a17dbedc74397a6da47db0 firmware |
dd if=/dev/zero of=/dev/sda Kill Mac partitions, you can kill dd using CTRL+C after about 5 seconds rmmod sbp2 && insmod sbp2 Reload this module. Forces linux to re-read the new partition table 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 number 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): 5S Look out: 5S .. S as in Ship 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 is okay, or even needed.. just press enter Using default value 6 Last cylinder or +size or +sizeM or +sizeK (6-608, default 608): press ENTER Using default value 608 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. #dd if=/root/firmware of=/dev/sda1 here we write the firmware we backed up back to /dev/sda1 65536+0 Records in 65536+0 Records out #mkfs.vfat -F 32 -n "LUNIX" /dev/sda2 formatting the data partition. "LUNIX" is the name of the iPod. #rmmod sbp2 remove module |
Load FireWire stuff first, see 'Testing FireWire' mkdir /mnt/ipod mount /dev/sda2 /mnt/ipod |
gnupod_INIT.pl -m /mnt/ipod |
mkdir /mnt/ipod/iPod_Control/.gnupod tunes2pod.pl -m /mnt/ipod |
Load FireWire stuff mount /dev/sda2 /mnt/ipod |
gnupod_addsong.pl -m /mnt/ipod seiken_densetsu_2/* ico_melody_in_the_mist/* |
gnupod_delete.pl -m /mnt/ipod/ `./search.pl -m /mnt/ipod -a foobar -n | xargs` |
gnupod_delete.pl -m /mnt/ipod 688 693 |
mktunes.pl -m /mnt/ipod umount /mnt/ipod rmmod sbp2 |
mount iPod tunes2pod.pl -m /mnt/ipod |
rmmod sbp2 && insmod sbp2 |
tunes2pod.pl -m /mnt/ipod |