Gentoo Archives: gentoo-user

From: Bill Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] UEFI boot, again
Date: Sat, 13 Oct 2012 09:43:13
Message-Id: 1350121261.9049.12.camel@rattus
In Reply to: Re: [gentoo-user] UEFI boot, again by "Stefan G. Weichinger"
1 On Sat, 2012-10-13 at 11:06 +0200, Stefan G. Weichinger wrote:
2 > Am 2012-10-13 00:52, schrieb Bill Kenworthy:
3 >
4 > > another "feature" is you have to be booted via efi so the variables are
5 > > available so it can install itself - sorta catch 22 :(
6 >
7 > Yes, I know that. No problem, when I boot from that stick, I do that via
8 > EFI, so I get the correct environment.
9 >
10 > > I just remembered another step that I missed - I dont have the syntax
11 > > but "efibootmgr" - google for the correct options.
12 >
13 > Yes ;-)
14 >
15 > I do that for days now. What puzzles me:
16 >
17 > I get the entrompties into EFI: when I boot I see the entries created by
18 > efibootmgr, but when I chose one of the entries pointing to "GRUB2" or
19 > "gentoo" the PC tells me that the disk isn't bootable.
20 >
21 > And I still don't know what is missing. AFAIK that EFI system partition
22 > is allowed to be within the first 2 TB of the disk (easy on my 1 TB
23 > hdd), has to have the boot-flag set (in parted-terms), and must be type
24 > EF02. When EFI doesn't find something bootable on the disk, my
25 > interpretation is that it can't find that partition?
26 >
27 > S
28 >
29 >
30
31 Do an "ls" from the grub prompt ... when booted from the usb stick grub
32 will renumber the devices in a different order. You will need to use
33 "ls" to find out what the current grub order is, edit the grub menu
34 (i.e., "e" when at the menu selection) and press F10 (I think) when done
35 to boot. The reason is grub will set itself up with the usbstick as
36 root, whereas once you boot with the correct mapping you can reissue the
37 commands to write them properly.
38
39 BillK