Bug#475718: Bug #475718 grub gets confused by hybrid apple/pc partmap
A message that is not in the archive (sent off-list or not yet received): 0DFB020F860A4320BA3DE2814B0CE305@fz
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 20080725201516.GA17686@thorin
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Chris Knadle
If you ask me, I think this unfortunately looks like a complex detection
problem -- which I think is eventually going to start with a *successful* detection of the Apple partition (because Apple + PC partitions can co-exist), followed by somehow *rejecting* that based on not finding any Apple HFS+ partitions (avoiding scanning partition 0), re-detecting partmaps (avoiding the failed Apple detection), and then going from there. :-/ I've been thinking about that problem. No matter how I look at this issue, it's messy.
It can't be so complicated; your layout is properly detected on Linux, isn't it?
Maybe we just need to give preference to MSDOS partitions.
Btw, adding grub-devel to CC. Let's try to have discussions in upstream list..
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What good is a phone call… if you are unable to speak? (as seen on /.)
Quoted 10 lines · Robert Millan
Quoted 8 lines · Chris Knadle
If you ask me, I think this unfortunately looks like a complex
detection problem -- which I think is eventually going to start with a *successful* detection of the Apple partition (because Apple + PC partitions can co-exist), followed by somehow *rejecting* that based on not finding any Apple HFS+ partitions (avoiding scanning partition 0), re-detecting partmaps (avoiding the failed Apple detection), and then going from there. :-/ I've been thinking about that problem. No matter how I look at this issue, it's messy.
Quoted 2 lines
It can't be so complicated; your layout is properly detected on Linux, isn't it?
Ah. Yes I suppose that's true, and it gives me a thought -- I suspect it
may be due to the Linux kernel being built on the PC architecture. I *think* all of the Apple boxes that run a PC architecture use EFI and the GPT partition scheme rather than the Apple one -- so it might be possible to simply not include Apple detection based on a decision at compile time. And that's likely to be much easier to code.
Quoted 1 line
Maybe we just need to give preference to MSDOS partitions.
Hmm. If we do that, will that avoid the problem if the hybrid disk is in
an Apple? [I haven't tested it.]
Quoted 2 lines
Btw, adding grub-devel to CC. Let's try to have discussions in upstream list..
Sounds good to me.
-- Chris
Signature · 2 lines
Chris Knadle [email protected]
Quoted 11 lines · Robert Millan
Quoted 9 lines · Chris Knadle
If you ask me, I think this unfortunately looks like a complex detection
problem -- which I think is eventually going to start with a *successful* detection of the Apple partition (because Apple + PC partitions can co-exist), followed by somehow *rejecting* that based on not finding any Apple HFS+ partitions (avoiding scanning partition 0), re-detecting partmaps (avoiding the failed Apple detection), and then going from there. :-/ I've been thinking about that problem. No matter how I look at this issue, it's messy.
Quoted 6 lines
It can't be so complicated; your layout is properly detected on Linux, isn't it?
Maybe we just need to give preference to MSDOS partitions.
Btw, adding grub-devel to CC. Let's try to have discussions in upstream list..
If I only know what you were talking about here... ;-)
--
Marco
Quoted 16 lines · Marco Gerards
Quoted 15 lines · Robert Millan
Quoted 8 lines · Chris Knadle
If you ask me, I think this unfortunately looks like a complex
detection problem -- which I think is eventually going to start with a *successful* detection of the Apple partition (because Apple + PC partitions can co-exist), followed by somehow *rejecting* that based on not finding any Apple HFS+ partitions (avoiding scanning partition 0), re-detecting partmaps (avoiding the failed Apple detection), and then going from there. :-/ I've been thinking about that problem. No matter how I look at this issue, it's messy.It can't be so complicated; your layout is properly detected on Linux, isn't it?
Maybe we just need to give preference to MSDOS partitions.
Quoted 7 lines
Quoted 2 lines
Btw, adding grub-devel to CC. Let's try to have discussions in upstream list..
If I only know what you were talking about here... ;-)
--
Marco
Who, me or Robert? ;-)
If you mean me -- I was confused. Pavel made the suggestion of fixing the
Grub2 issues with hybrid Apple/PC partition maps by searching for "the Apple magic" of 0x4552. I've never dealt with Apple partition maps before, and so I didn't realize that Apple machines have a special "Apple" partition on the first partition of the drive -- so I mistakenly took Pavel's words to mean looking for an Apple *filesystem* (meaning searching on partitions > 0), so in my mind 0x4552 was for an HFS or HFS+ magic number. I found some Apple documentatino that mentioned it, but if it mentioned that the 0x4552 magic was on partition 0, I missed it, so the logical train of thought led me to a bunch of erroneous conclusions.
So yeah, if you don't understand what I wrote, it's because it's nonsense.
Robert committed a fix for this bug and uploaded a new package, and the bug
is closed.
-- Chris
Signature · 2 lines
Chris Knadle [email protected]