Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volkerarmin@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't boot using UEFI
Date: Sun, 14 Jun 2015 14:37:07
Message-Id: 557D9187.80607@googlemail.com
In Reply to: Re: [gentoo-user] Can't boot using UEFI by "João Matos"
1 Am 14.06.2015 um 16:30 schrieb João Matos:
2 > / # gdisk -l /dev/sda
3 > GPT fdisk (gdisk) version 1.0.0
4 >
5 > Partition table scan:
6 > MBR: protective
7 > BSD: not present
8 > APM: not present
9 > GPT: present
10 >
11 > Found valid GPT with protective MBR; using GPT.
12 > Disk /dev/sda: 976773168 sectors, 465.8 GiB
13 > Logical sector size: 512 bytes
14 > Disk identifier (GUID): 757FFCA9-0B35-4AC3-BA77-B935FBBC57C9
15 > Partition table holds up to 128 entries
16 > First usable sector is 34, last usable sector is 976773134
17 > Partitions will be aligned on 2048-sector boundaries
18 > Total free space is 4029 sectors (2.0 MiB)
19 >
20 > Number Start (sector) End (sector) Size Code Name
21 > 1 2048 1026047 500.0 MiB EF00 EFI system
22 > partition
23 > 2 1026048 1107967 40.0 MiB FFFF Basic data
24 > partition
25 > 3 1107968 1370111 128.0 MiB 0C01 Microsoft
26 > reserved ...
27 > 4 1370112 2906111 750.0 MiB 2700 Basic data
28 > partition
29 > 5 2906112 127477759 59.4 GiB 0700 Basic data
30 > partition
31 > 6 961155072 976771119 7.4 GiB 2700 Microsoft
32 > recovery ...
33 > 7 127477760 227518463 47.7 GiB 8300
34 > 8 227518464 247998463 9.8 GiB 8300
35 > 9 247998464 961155071 340.1 GiB 0700
36 >
37 > 2015-06-14 11:25 GMT-03:00 Mick <michaelkintzios@×××××.com
38 > <mailto:michaelkintzios@×××××.com>>:
39 >
40 > On Sunday 14 Jun 2015 15:09:33 João Matos wrote:
41 > > 2015-06-14 11:02 GMT-03:00 Volker Armin Hemmann
42 > > <volkerarmin@××××××××××.com <mailto:volkerarmin@××××××××××.com>>
43 > >
44 > > > Am 14.06.2015 um 15:40 schrieb João Matos:
45 > > > Hi list,
46 > > >
47 > > > I've bought me a ultrabook dell vostro 5470, and I'm trying
48 > to get
49 > > >
50 > > > gentoo running on it.
51 > > >
52 > > > I'm having a few problems, but I'd like to correct the boot
53 > one first.
54 > > >
55 > > > I'm installing it from ubuntu live cd, and the comand:
56 > > >
57 > > > efibootmgr --create --disk /dev/sda --part 7 --label "Gentoo"
58 > --loader
59 > > >
60 > > > "\boot\efi\boot\bootx64.efi"
61 > > >
62 > > > seems to work. It put a entry on bios - Gentoo - but when I
63 > select it,
64 > > >
65 > > > the windows start (second boot).
66 > > >
67 > > > The handbook is not that clear, so I'm not sure if I should call
68 > > >
69 > > > /dev/sda7 of "--part 7". Other difference is I'm not using a
70 > separate
71 > > > /boot. Its everything at /, so I'm also not not sure if this
72 > path is ok.
73 > > >
74 > > > This seems to be the very simple, and I'd like to have it on
75 > my system.
76 > > >
77 > > > But I've also tried grub2, and got the following error:
78 > > > "grub2-install: error: cannot find EFI directory."
79 > > >
80 > > > What should I do?
81 > > >
82 > > > Thank you,
83 > > >
84 > > > --
85 > > > João Neto
86 > > >
87 > > > Linux User #461527
88 > > > http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552
89 > > >
90 > > >
91 > > > so you don't have an efi boot partition?
92 > > >
93 > > > That would be your answer.
94 > >
95 > > Volker, the efi is already working for Windows. I just want to
96 > create a new
97 > > entry. Is it really necessary to create a new partition?
98 >
99 > Can you please tell us what this shows:
100 >
101 > gdisk -l /dev/sda
102 >
103 > or
104 >
105 > fdisk -l
106 >
107 > assuming that /dev/sda is your drive.
108 >
109 > If you are multibooting then gummiboot would be advisable, but
110 > GRUB will work
111 > too.
112 >
113 > --
114 > Regards,
115 > Mick
116 >
117 >
118 >
119 >
120 > --
121 > João Neto
122 > Linux User #461527
123 > http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552
124
125 you have to put your gentoo binary into that efi boot partition. And
126 tell efibootmgr to look there