From: Jonas Petersson <catellie@gm...> - 2008-06-21 20:52:06
Sorry if this looks odd - sent from a phone.
I just messed up my gpt, by fiddling with parted and fdisk. Now efi
disk shows up in MacOSX and Grub does not find the Linux partition.
rEFIt sees everything, but the EFI shell is broken. Could anyone dump
their full (working) gpt and mbr tables for me? Advice on fixing would
be greatly appreciated too.
Thanks and advance / Jonas
From: Jonas Petersson <catellie@gm...> - 2008-06-22 20:51:44
On Sat, Jun 21, 2008 at 07:25, Jonas Petersson <catellie@...> wrote:
> I just messed up my gpt, by fiddling with parted and fdisk. Now efi
> disk shows up in MacOSX and Grub does not find the Linux partition.
> rEFIt sees everything, but the EFI shell is broken. Could anyone dump
> their full (working) gpt and mbr tables for me? Advice on fixing would
> be greatly appreciated too.
With some help from Jean-Baka on this list I've dug somewhat deeper
into this problem and I have come to this conclusion:
* Most likely, the problem started when I tried to enable boot on a
memory stick and I accidentally typed /dev/sda when I meant /dev/sdb -
this seems to have confused the gpt/mbr beyond what gptsync could
* Initially, the gpt was just slightly broken and somehow half-mended
itself so that in MacOSX I would see the EFI partition (almost empty)
as well as the Linux ext3 partition.
* In grub I get the option to boot some kind of generic linux as well
as an explicit (but broken) reference to the correct partition (3),
plus a (seemingly) correct reference to partition 4 (but this one is
just swap so wont boot anyway).
* When I fiddle with the EFI partition in MBR to be of the correct
type (ee), MacOS will not boot, so I have to keep it "0b".
* As I keep fiddling with boot flags etc the gpt table keeps getting
worse to the point where it now claims not to exist at all and there
is only a MBR. MacOSX still boots quite happily.
I'd love to hear from anyone who knows how to repair the gpt (googling
appears to come up with nothing helpful, nor does the
My current theory is that I may be lucky if I start out with removing
all partition from OSX and recreating them with exactly the same
sizes. I just need to find a biggish backup drive first...
BTW: At the moment my gpt dump looks like this (from OSX):
# gpt -r show disk0
start size index contents
0 1 MBR
40 409600 1 MBR part 11
409640 41680896 2 MBR part 175
42090536 190396485 3 MBR part 131
232487021 1953126 4 MBR part 130
234441615 32 Sec GPT table
234441647 1 Sec GPT header
Still hopeful / Jonas