Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Boot gentoo with GTP Disk label
Date: Wed, 12 May 2010 21:59:32
Message-Id: AANLkTikdZP2gePiOC-2zP1IZsyQxla0uId98pPynvePY@mail.gmail.com
In Reply to: Re: [gentoo-user] Boot gentoo with GTP Disk label by Mick
1 On Wed, May 12, 2010 at 4:47 PM, Mick <michaelkintzios@×××××.com> wrote:
2 > On Wednesday 12 May 2010 21:47:41 Paul Hartman wrote:
3 >> On Wed, May 12, 2010 at 3:00 PM, Mick <michaelkintzios@×××××.com> wrote:
4 >> > On Monday 10 May 2010 17:01:02 Paul Hartman wrote:
5 >> >> On Sat, May 8, 2010 at 9:16 AM, claude angéloz
6 >> >>
7 >> >> <claude.angeloz@×××××××.ch> wrote:
8 >> >> > Hello,
9 >> >> >
10 >> >> > I installed a gentoo on a very recent system (efi support) . AT the
11 >> >> > reception of the laptop it was a disk label msdos, with a boot
12 >> >> > partition w** installer ... I changed that against a GPt disk label.
13 >> >> > I can install without problem the gentoo , but now it doenst boot.
14 >> >> >
15 >> >> > I read some docs about gpt,mbr,boot principles and tried some tools
16 >> >> >
17 >> >> > - install the grub2 masked package and grub-install.
18 >> >> >
19 >> >> > - a special partion bios_grub as 1st bootable partition.
20 >> >> > but actually no succesful...
21 >> >> > but in the parted i did not see this "bios_grub" as flag...
22 >> >> >
23 >> >> > I found some tips from the web , but i guess that was only valid for
24 >> >> > a macintel system, not a normal pc with a disk labeled gpt and an efi
25 >> >> > support.
26 >> >> >
27 >> >> > I know that it is not required an efi partiton to boot the os with
28 >> >> > pc/bios and gpt disk. Or is it false ?
29 >> >> >
30 >> >> > If anybody has an other idea. Or I must abandon the gpt disk label ?
31 >> >> > Is there an equivalent refitr in OS x86 ?
32 >> >>
33 >> >> I'm using GPT partitions and with the grub-0.97-r9 in Gentoo it has
34 >> >> patches to boot from GPT disks. I just did normal grub install as
35 >> >> usual and everything seems to work. I'm not using the partition label,
36 >> >> though, but only "root (hd0,0)"
37 >> >
38 >> > Interesting. Does grub install its bootloader into the MBR, or in a GPT
39 >> > boot partition? I am not at all familiar with this new way of booting
40 >> > systems.
41 >>
42 >> I think basically GPT is a replacement for MBR, everything basically
43 >> works the same way otherwise. GPT has features like redunancy, removes
44 >> limits of MBR (no primary/logical designation anymore, no 2TB limit,
45 >> etc). I think it has a somewhat MBR-compatible layout in the first
46 >> sector so non-GPT-aware things can still partially recognize it.
47 >
48 > Am I right to assume that your 1st partition on the 1st disk is the GPT boot
49 > partition and therefore its 1st sector is what would on a conventional disk be
50 > the MBR?
51
52 From the standpoint of the fake MBR table, I think you are correct. To
53 non-GPT-aware utils it'll look like GPT is a partition of some type
54 but when using GPT-compatible things that is completely transparent.
55 Wikipedia has a good description of how it all works under the hood,
56 check out the LBA-0 section of the article here:
57 http://en.wikipedia.org/wiki/GUID_Partition_Table
58
59 From a normal user's perspective, creating the partitions and
60 installing grub was no different than with MBR, only I told parted to
61 great GPT instead of MBR partition table on my new disks. Enabled EFI
62 in kernel, used Gentoo's version of grub which has the GPT patches
63 included, and everything just worked. Maybe I was lucky? :)