[parted-devel] parted with iPod 80GB
Mario Rossi
mariofutire at googlemail.com
Tue Mar 20 00:17:09 CET 2007
On 3/19/07, David Cantrell <dcantrell at redhat.com> wrote:
> I can try. That will probably help figure out how to read the label.
> I'd prefer a copy of the entire disk, but that might be too large. If
> you can blank it out, then dd the disk and gzip the image, that would
> work.
As promised, I've copied the first 48MB of the disk + 2M at the
beginning of each partition
http://xoomer.alice.it/enodetti/ipod/ipod.sda.bz2
http://xoomer.alice.it/enodetti/ipod/ipod.sda1.bz2
http://xoomer.alice.it/enodetti/ipod/ipod.sda2.bz2
respectively from
/dev/sda
/dev/sda1
/dev/sda2
using
dd if=/dev/sda of=ipod.sda bs=1M count=48
dd if=/dev/sda1 of=ipod.sda1 bs=1M count=2
dd if=/dev/sda2 of=ipod.sda2 bs=1M count=2
If you need a bigger file, I will need to find a different host. I've
tried with 64MB but I could not upload it.
The output of fdisk is
[root at thinkpad tmp]# /sbin/fdisk /dev/sda
Note: sector size is 2048 (not 512)
The number of cylinders for this disk is set to 2432.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 2048 = 32901120 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 4 128394 0 Empty
/dev/sda2 5 2432 78011640 b W95 FAT32
Command (m for help): q
and this is what "file" says about the 3 files
ipod.sda1: data
ipod.sda2: x86 boot sector, code offset 0x3c, OEM-ID "*UOKJIHC",
Bytes/sector 2048, sectors/cluster 8, Media descriptor 0xf8, heads
255, hidden sectors 64260, sectors 39005818 (volumes > 32 MB) , FAT
(32 bit), sectors/FAT 9521, serial number 0x890cf46a, label: "IPOD
"
ipod1.sda: x86 boot sector, code offset 0x58, OEM-ID "MSDOS5.0",
Bytes/sector 2048, sectors/cluster 8, reserved sectors 512, Media
descriptor 0xf8, heads 255, sectors 39070080 (volumes > 32 MB) , FAT
(32 bit), sectors/FAT 0, infoSector 0, Backup boot sector 0, reserved3
0x20000, physical drive 0x2, serial number 0xa88b3652, label: "
iPod"
Hope this helps
Cheers
More information about the parted-devel
mailing list