Gentoo Archives: gentoo-user

From: Dan Johansson <Dan.Johansson@×××.nu>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] UEFI-fails to boot
Date: Thu, 25 Jan 2018 10:55:08
Message-Id: d1227942-4c94-e3a6-da2e-bd3226fc7bc2@dmj.nu
1 I have bought me a shiny new Supermicro X10DRi-T motherboard with two
2 Xenon-E5-2620-v3 CPUs for use as a server.
3
4 I have configured the MB for UEFI-mode only and my rescuecd-USB-key
5 boots find in UEFI-mode.
6
7 Following the Handbook and the "EFI System Partition" handbook I have
8 created the following GPT-disklayout:
9
10 root@sysresccd /root % parted /dev/sda print
11 Model: ATA ST1000DX002-2DV1 (scsi)
12 Disk /dev/sda: 1000GB
13 Sector size (logical/physical): 512B/4096B
14 Partition Table: gpt
15 Disk Flags:
16
17 Number Start End Size File system Name Flags
18 1 1049kB 3146kB 2097kB fat32 grub bios_grub
19 2 3146kB 137MB 134MB ext2 boot boot, esp
20 3 137MB 4429MB 4292MB linux-swap(v1) swap
21 4 4429MB 5503MB 1074MB root
22 5 5503MB 1000GB 995GB vg
23
24 Partition-1 was created like this: mkfs.fat -F 32 -n efi-boot /dev/sda1
25 Partition-2 was created like this: mkfs.ext2 -T small /dev/sda2
26
27 GRUB_PLATFORMS was set to "efi-64" in make.conf before emerging grub:2
28
29 /boot and /boot/efi is mounted like this
30 # mount | grep boot
31 /dev/sda2 on /boot type ext2 (rw,relatime,errors=continue,user_xattr,acl)
32 /dev/sda1 on /boot/efi type vfat
33 (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
34
35 I had to remount /sys/firmware/efi/efivars in rw-mode, otherwise
36 grub-install would complain.
37
38 grub-install was run like this
39 "grub-install --target=x86_64-efi --efi-directory=/boot/efi"
40
41 And "grub-mkconfig -o /boot/grub/grub.cfg" has been run without any errors.
42
43 efibootmgr shows my gentoo as the first entry
44 # efibootmgr
45 Timeout: 1 seconds
46 BootOrder: 0000,0001,0002,0003
47 Boot0000 gentoo
48 Boot0001 Hard Drive
49 Boot0002 Network Card
50 Boot0003 UEFI: Built-in EFI Shell
51
52
53 But when I boot without the USB-key inserted I always "lands" in the
54 Built-in EFI Shell - NO sign of GRUB.
55
56 Any suggestions where I have gone wrong?
57
58 KR
59 --
60 Dan Johansson,
61 ***************************************************
62 This message is printed on 100% recycled electrons!
63 ***************************************************

Attachments

File name MIME type
smime.p7s application/pkcs7-signature

Replies

Subject Author
Re: [gentoo-user] UEFI-fails to boot Wols Lists <antlists@××××××××××××.uk>
Re: [gentoo-user] UEFI-fails to boot Mick <michaelkintzios@×××××.com>