Gentoo Archives: gentoo-user

From: Facundo Curti <facu.curti@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cant boot with SSD, GPT, GRUB2 and UEFI
Date: Sat, 08 Mar 2014 07:18:20
Message-Id: CABxff5_iG3qVxj0ReNEkr8Ezdok3h6_dyKU7FudaqyCEpbgQLA@mail.gmail.com
In Reply to: Re: [gentoo-user] Cant boot with SSD, GPT, GRUB2 and UEFI by Pavel Volkov
1 2014-03-08 3:20 GMT-03:00 Pavel Volkov <negaipub@×××××.com>:
2
3 > On Saturday 08 March 2014 02:31:35 Facundo Curti wrote:
4 > > Hi all. I'm again with a newbie problem :/
5 > > I almost finish to install gentoo but I have a little problem, I can't
6 > boot
7 > > gentoo ._.
8 > >
9 > > I already installed the system with GRUB2 and systemd, I made partitions
10 > > with GPT using parted, but I can't boot.
11 > >
12 > > My partitions: http://bpaste.net/show/186352/
13 > >
14 > > This "legacy_boot" flag is a recent try I made :P. I also tried with
15 > "boot"
16 > > flag, and with no flags. But any way this does not work
17 > >
18 >
19 > With UEFI you don't need bios_grub partition.
20 > You also don't nee the legacy_boot flag.
21 >
22 > But what you need is a FAT32 partiton where the GRUB's UEFI binary will be
23 > installed.
24 >
25 > You mount that partition at /boot/efi
26 > You should also set GRUB_PLATFORMS="efi-64" in make.conf and update world.
27 >
28 > After that run "grub2-install /dev/sda" (or whatever block device you use).
29 >
30 > Then you can verify that GRUB 2 is added into UEFI boot menu: run
31 > efibootmgr as
32 > root (it's from sys-boot/efibootmgr package).
33 >
34 > Thank you men! You are awesome.
35
36 But I have a problem, after I do
37 emerge --update world
38 when I make grub2-install, I get off this error:
39
40 /usr/lib/grub/i386-pc doesn't exist. Please especify --target
41 or --directory
42
43 So I choice a target:
44 grub-install --target x86_64-efi/ /dev/sdb
45
46 And this says me:
47 Fatal: Couldn't open either sysfs or procfs directories for
48 accesing EFI variables
49 Try "modprobe efivars" as root
50
51 I try it and nothing happens... I mounted sys and proc following the gentoo
52 handbook:
53
54 # mount -t proc proc /mnt/gentoo/proc # mount
55 --rbind /sys /mnt/gentoo/sys # mount --rbind /dev
56 /mnt/gentoo/dev
57
58
59 This is my df -h:
60
61 Filesystem Size Used Avail Use% Mounted on
62 rootfs 15G 3.1G 11G 23% / udev
63 10M 4.0K 10M 1% /dev tmpfs 15G 3.1G 11G
64 23% / /dev/sdb2 15G 3.1G 11G 23% /
65 shm 1.8G 0 1.8G 0% /dev/shm /dev/sdb4
66 92G 60M 87G 1% /home /dev/sdb1 2.0M 124K
67 1.9M 7% /boot/efi udev 10M 4.0K 10M 1%
68 /dev shm 1.8G 0 1.8G 0% /dev/shm
69
70
71 No errors mounting :/
72
73
74 Thank you! Bytes! ;)

Replies

Subject Author
Re: [gentoo-user] Cant boot with SSD, GPT, GRUB2 and UEFI "Stefan G. Weichinger" <lists@×××××.at>