Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DkhVV-0004EC-NS for mharc-grub-devel@gnu.org; Tue, 21 Jun 2005 08:05:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DkhVS-0004DE-Hy for grub-devel@gnu.org; Tue, 21 Jun 2005 08:05:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DkhVQ-0004C1-HE for grub-devel@gnu.org; Tue, 21 Jun 2005 08:05:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DkhVQ-0004Bq-23 for grub-devel@gnu.org; Tue, 21 Jun 2005 08:05:28 -0400 Received: from [66.187.233.31] (helo=mx1.redhat.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DkhWk-00033G-Mv for grub-devel@gnu.org; Tue, 21 Jun 2005 08:06:50 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j5LC3miV015519 for ; Tue, 21 Jun 2005 08:03:48 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j5LC3lu25368 for ; Tue, 21 Jun 2005 08:03:47 -0400 Received: from vpnuser13.stuttgart.redhat.com (vpnuser13.stuttgart.redhat.com [172.16.4.13]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j5LC3jCv002711 for ; Tue, 21 Jun 2005 08:03:46 -0400 From: Paul Nasrat To: The development of GRUB 2 In-Reply-To: <2d5a560e06481e7a00c3495609cc49c9@penguinppc.org> References: <2d5a560e06481e7a00c3495609cc49c9@penguinppc.org> Content-Type: text/plain Organization: Red Hat, Inc. Date: Tue, 21 Jun 2005 08:04:54 -0400 Message-Id: <1119355494.3293.23.camel@enki.eridu> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 (2.2.2-7) Content-Transfer-Encoding: 7bit Subject: Re: Apple partition map bug X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2005 12:05:32 -0000 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