grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple partition map bug


From: Paul Nasrat
Subject: Re: Apple partition map bug
Date: Tue, 21 Jun 2005 08:04:54 -0400

On Mon, 2005-06-20 at 23:18 -0500, Hollis Blanchard wrote:
> Attached is the first 4 sectors of the Ubuntu PowerPC Hoary CD. It has 
> 2 partition map entries, including the partition map itself. GRUB2 
> lists 8 partitions. Anybody want to take a look? It could be written to 
> a floppy or zip or CD I guess... If nobody gets to it I will try to 
> debug later.

Brain dump from airport:

It'll be a hybrid disk created with something like:

https://wiki.ubuntu.com/LiveCDCustomizationHowTo

mkisofs -r -V "Custom Ubuntu Live CD" \
            --netatalk -hfs -probe -map hfs.map \
            -part -no-desktop \
            -hfs-bless extracted_cd/install \
            -hfs-volid Ubuntu/PowerPC_hoary \
            -o custom-hoary-live-powerpc.iso extracted_cd

file -k ubuntu-powerepc_hoary
ubuntu_powerpc_hoary: x86 boot sector\012- Apple Partition data block
size: 512, first type: Apple_partition_map, name: Apple, number of
blocks: 2, second type: Apple_HFS, name: Ubuntu 5.04 ppc, number of
blocks: 1276984,

IIRC this is the partition table:

00001b0 1900 080f 1960 080f 19c0 080f 1a20 ff0f
00001c0 ffff ff0f ffff 080f bfc0 0831 4e88 ff0d
00001d0 ffff ff0d ffff 080d 5f18 080d 6008 ff0d
00001e0 ffff ff0d ffff 080d 6180 080d 61f8 ff0d
00001f0 ffff ff0d ffff 080d 6360 080d 9098 aa55

I'm guessing we get tripped up by the msdos partition table at the
start.  Note you can build CD's with -chrp-boot and -prep-boot like:

mkisofs -o boot.iso -chrp-boot -U \
-prep-boot ppc/chrp/yaboot \
-part -hfs -T -r -l -J \
-A "Fedora 4" -sysid PPC -V "PBOOT" -volset 4 -volset-size 1 \
-volset-seqno 1 -hfs-volid 4 -hfs-bless $(pwd)/ppc/ppc \
-map mapping -magic magic -no-desktop -allow-multidot \
$(pwd)/ppc

file -k boot.iso
boot.iso: x86 boot sector\012- ISO 9660 CD-ROM filesystem data 'PBOOT
'\012- Apple Partition data block size: 512, first type:
Apple_partition_map, name: Apple, number of blocks: 2, second type:
Apple_HFS, name: PBOOT, number of blocks: 65268,

00001c0 ffff ff96 ffff 0000 0000 ff04 0000 ff80
00001d0 ffff ff41 ffff 5060 0000 0153 0000 ff00
00001e0 ffff ff00 ffff 0000 0000 0000 0000 ff00
00001f0 ffff ff00 ffff 0000 0000 0000 0000 aa55

Here we have a 0x41 partition (PReP boot)

Which would have 4 msdos partitions and the apple partition map.

I'll try look at the grub2 code later, it is quite possibly "correct"
due to hybrid but we probably should display the mac partitioning tabley
if OF has mac-parts support else failback to plain iso9660.

Paul







reply via email to

[Prev in Thread] Current Thread [Next in Thread]