1 |
On 25.01.2018 12:35, Mick wrote: |
2 |
> On Thursday, 25 January 2018 10:54:28 GMT Dan Johansson wrote: |
3 |
>> I have bought me a shiny new Supermicro X10DRi-T motherboard with two |
4 |
>> Xenon-E5-2620-v3 CPUs for use as a server. |
5 |
>> |
6 |
>> I have configured the MB for UEFI-mode only and my rescuecd-USB-key |
7 |
>> boots find in UEFI-mode. |
8 |
>> |
9 |
>> Following the Handbook and the "EFI System Partition" handbook I have |
10 |
>> created the following GPT-disklayout: |
11 |
>> |
12 |
>> root@sysresccd /root % parted /dev/sda print |
13 |
>> Model: ATA ST1000DX002-2DV1 (scsi) |
14 |
>> Disk /dev/sda: 1000GB |
15 |
>> Sector size (logical/physical): 512B/4096B |
16 |
>> Partition Table: gpt |
17 |
>> Disk Flags: |
18 |
>> |
19 |
>> Number Start End Size File system Name Flags |
20 |
>> 1 1049kB 3146kB 2097kB fat32 grub bios_grub |
21 |
> |
22 |
> The above implies an MBR partition table approach to booting your OS, which a |
23 |
> non-UEFI (BIOS only) MoBo will need. However you are meant to be using UEFI |
24 |
> *only* and GPT ... |
25 |
> |
26 |
> |
27 |
>> 2 3146kB 137MB 134MB ext2 boot boot, esp |
28 |
> |
29 |
> and this partition is what should be used for an UEFI MoBo, but the fs is |
30 |
> wrong. Change it to fat32 and check with gdisk that its partition code is |
31 |
> EF00, which according to your 'boot, esp' flags it should be. This is your |
32 |
> EFI System Partition (ESP). |
33 |
> |
34 |
> |
35 |
>> 3 137MB 4429MB 4292MB linux-swap(v1) swap |
36 |
>> 4 4429MB 5503MB 1074MB root |
37 |
>> 5 5503MB 1000GB 995GB vg |
38 |
>> |
39 |
>> Partition-1 was created like this: mkfs.fat -F 32 -n efi-boot /dev/sda1 |
40 |
>> Partition-2 was created like this: mkfs.ext2 -T small /dev/sda2 |
41 |
>> |
42 |
>> GRUB_PLATFORMS was set to "efi-64" in make.conf before emerging grub:2 |
43 |
>> |
44 |
>> /boot and /boot/efi is mounted like this |
45 |
>> # mount | grep boot |
46 |
>> /dev/sda2 on /boot type ext2 (rw,relatime,errors=continue,user_xattr,acl) |
47 |
>> /dev/sda1 on /boot/efi type vfat |
48 |
>> (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mi |
49 |
>> xed,errors=remount-ro) |
50 |
>> |
51 |
>> I had to remount /sys/firmware/efi/efivars in rw-mode, otherwise |
52 |
>> grub-install would complain. |
53 |
> |
54 |
> Yes, this has been the case for some time now. You will always need to |
55 |
> remount it as rw before you change the contents of the ESP boot partition. It |
56 |
> is also mentioned here: |
57 |
> |
58 |
> https://wiki.gentoo.org/wiki/GRUB2 |
59 |
> |
60 |
> |
61 |
>> grub-install was run like this |
62 |
>> "grub-install --target=x86_64-efi --efi-directory=/boot/efi" |
63 |
> |
64 |
> But ... /boot/efi is not your ESP. |
65 |
> |
66 |
> |
67 |
>> And "grub-mkconfig -o /boot/grub/grub.cfg" has been run without any errors. |
68 |
>> |
69 |
>> efibootmgr shows my gentoo as the first entry |
70 |
>> # efibootmgr |
71 |
>> Timeout: 1 seconds |
72 |
>> BootOrder: 0000,0001,0002,0003 |
73 |
>> Boot0000 gentoo |
74 |
>> Boot0001 Hard Drive |
75 |
>> Boot0002 Network Card |
76 |
>> Boot0003 UEFI: Built-in EFI Shell |
77 |
> |
78 |
> Use 'efibootmgr -v' to check the path of the .efi image it tries to boot and |
79 |
> check the path is correct without any typos. What you show above is only a |
80 |
> label. |
81 |
> |
82 |
> |
83 |
>> But when I boot without the USB-key inserted I always "lands" in the |
84 |
>> Built-in EFI Shell - NO sign of GRUB. |
85 |
>> |
86 |
>> Any suggestions where I have gone wrong? |
87 |
>> |
88 |
>> KR |
89 |
> |
90 |
> The ESP needs to be formatted as vfat and the GRUB boot image grubx64.efi |
91 |
> should be installed there. |
92 |
|
93 |
Thanks for the advice, now grub starts and I get the menu (now I just |
94 |
have to figure out why the kernel hangs after being loaded). |
95 |
And just for reference, my partition-table now looks like this: |
96 |
|
97 |
Number Start End Size File system Name Flags |
98 |
1 1049kB 137MB 136MB fat32 boot boot, esp |
99 |
3 137MB 4429MB 4292MB linux-swap(v1) swap |
100 |
4 4429MB 5503MB 1074MB root |
101 |
5 5503MB 1000GB 995GB vg |
102 |
|
103 |
|
104 |
KR |
105 |
|
106 |
-- |
107 |
Dan Johansson |
108 |
*************************************************** |
109 |
This message is printed on 100% recycled electrons! |
110 |
*************************************************** |