* Apple partition map bug
@ 2005-06-21 4:18 Hollis Blanchard
2005-06-21 11:43 ` Marco Gerards
2005-06-21 12:04 ` Paul Nasrat
0 siblings, 2 replies; 9+ messages in thread
From: Hollis Blanchard @ 2005-06-21 4:18 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 304 bytes --]
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.
-Hollis
[-- Attachment #2: ubuntu_powerpc_hoary --]
[-- Type: application/octet-stream, Size: 2048 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Apple partition map bug
2005-06-21 4:18 Apple partition map bug Hollis Blanchard
@ 2005-06-21 11:43 ` Marco Gerards
2005-06-21 12:04 ` Paul Nasrat
1 sibling, 0 replies; 9+ messages in thread
From: Marco Gerards @ 2005-06-21 11:43 UTC (permalink / raw)
To: The development of GRUB 2
Hollis Blanchard <hollis@penguinppc.org> writes:
> 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.
Sure!
--
Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Apple partition map bug
2005-06-21 4:18 Apple partition map bug Hollis Blanchard
2005-06-21 11:43 ` Marco Gerards
@ 2005-06-21 12:04 ` Paul Nasrat
2005-06-21 14:25 ` Hollis Blanchard
2005-06-21 15:46 ` Marco Gerards
1 sibling, 2 replies; 9+ messages in thread
From: Paul Nasrat @ 2005-06-21 12:04 UTC (permalink / raw)
To: The development of GRUB 2
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Apple partition map bug
2005-06-21 12:04 ` Paul Nasrat
@ 2005-06-21 14:25 ` Hollis Blanchard
2005-06-21 15:46 ` Marco Gerards
1 sibling, 0 replies; 9+ messages in thread
From: Hollis Blanchard @ 2005-06-21 14:25 UTC (permalink / raw)
To: The development of GRUB 2
On Jun 21, 2005, at 7:04 AM, Paul Nasrat wrote:
> file -k ubuntu-powerepc_hoary
> ubuntu_powerpc_hoary: x86 boot sector\012- Apple Partition data block
Ah, right! It also has a DOS map... this explains why the debug prints
I had in partmap/apple.c were not displaying. It seems the problem may
be not examining grub_pc_partition_entry.flag when iterating over DOS
maps,
Thanks, I was starting to get annoyed. :)
-Hollis
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Apple partition map bug
2005-06-21 12:04 ` Paul Nasrat
2005-06-21 14:25 ` Hollis Blanchard
@ 2005-06-21 15:46 ` Marco Gerards
2005-06-24 1:46 ` Hollis Blanchard
1 sibling, 1 reply; 9+ messages in thread
From: Marco Gerards @ 2005-06-21 15:46 UTC (permalink / raw)
To: The development of GRUB 2
Paul Nasrat <pnasrat@redhat.com> writes:
> 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.
You can always use the raw disk, in which case it will be detected as
iso9660. So in this case:
foo (cd)/
instead of:
foo (cd,0)/
--
Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Apple partition map bug
2005-06-21 15:46 ` Marco Gerards
@ 2005-06-24 1:46 ` Hollis Blanchard
2005-06-27 8:40 ` Marco Gerards
0 siblings, 1 reply; 9+ messages in thread
From: Hollis Blanchard @ 2005-06-24 1:46 UTC (permalink / raw)
To: The development of GRUB 2
On Jun 21, 2005, at 10:46 AM, Marco Gerards wrote:
>
> You can always use the raw disk, in which case it will be detected as
> iso9660. So in this case:
>
> foo (cd)/
> instead of:
> foo (cd,0)/
I assume you're implying tab-completion here. I just want a command to
list all partitions on the CD. It seems there is no such command?
Tab-completion feels awkward for this...
-Hollis
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Apple partition map bug
2005-06-24 1:46 ` Hollis Blanchard
@ 2005-06-27 8:40 ` Marco Gerards
2005-06-28 0:25 ` Hollis Blanchard
0 siblings, 1 reply; 9+ messages in thread
From: Marco Gerards @ 2005-06-27 8:40 UTC (permalink / raw)
To: The development of GRUB 2
Hollis Blanchard <hollis@penguinppc.org> writes:
> On Jun 21, 2005, at 10:46 AM, Marco Gerards wrote:
>>
>> You can always use the raw disk, in which case it will be detected as
>> iso9660. So in this case:
>>
>> foo (cd)/
>> instead of:
>> foo (cd,0)/
>
> I assume you're implying tab-completion here. I just want a command to
> list all partitions on the CD. It seems there is no such command?
> Tab-completion feels awkward for this...
No, what I mean is that the CDROM can be accessed directly without
using partitions.
For listing disks and partitions you can use the ls command, IIRC.
--
Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Apple partition map bug
2005-06-27 8:40 ` Marco Gerards
@ 2005-06-28 0:25 ` Hollis Blanchard
2005-07-13 16:46 ` Marco Gerards
0 siblings, 1 reply; 9+ messages in thread
From: Hollis Blanchard @ 2005-06-28 0:25 UTC (permalink / raw)
To: The development of GRUB 2
On Jun 27, 2005, at 3:40 AM, Marco Gerards wrote:
> Hollis Blanchard <hollis@penguinppc.org> writes:
>
>> On Jun 21, 2005, at 10:46 AM, Marco Gerards wrote:
>>>
>>> You can always use the raw disk, in which case it will be detected as
>>> iso9660. So in this case:
>>>
>>> foo (cd)/
>>> instead of:
>>> foo (cd,0)/
>>
>> I assume you're implying tab-completion here. I just want a command to
>> list all partitions on the CD. It seems there is no such command?
>> Tab-completion feels awkward for this...
>
> No, what I mean is that the CDROM can be accessed directly without
> using partitions.
>
> For listing disks and partitions you can use the ls command, IIRC.
ls lists *all* the devices present. This output overflows the screen
and there is no scrollback. Hence, this is not useful to me.
-Hollis
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Apple partition map bug
2005-06-28 0:25 ` Hollis Blanchard
@ 2005-07-13 16:46 ` Marco Gerards
0 siblings, 0 replies; 9+ messages in thread
From: Marco Gerards @ 2005-07-13 16:46 UTC (permalink / raw)
To: The development of GRUB 2
Hollis Blanchard <hollis@penguinppc.org> writes:
>> For listing disks and partitions you can use the ls command, IIRC.
>
> ls lists *all* the devices present. This output overflows the screen
> and there is no scrollback. Hence, this is not useful to me.
It seems I did not answer this email, or I never received my own reply
via the list. Anyway...
There is a variable (IIRC it is called pager), which you can set so
GRUB does wait instead of scrolling.
Thanks,
Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-07-13 16:58 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21 4:18 Apple partition map bug Hollis Blanchard
2005-06-21 11:43 ` Marco Gerards
2005-06-21 12:04 ` Paul Nasrat
2005-06-21 14:25 ` Hollis Blanchard
2005-06-21 15:46 ` Marco Gerards
2005-06-24 1:46 ` Hollis Blanchard
2005-06-27 8:40 ` Marco Gerards
2005-06-28 0:25 ` Hollis Blanchard
2005-07-13 16:46 ` Marco Gerards
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.