Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] UEFI data corruption? [FIXED-FIXED]
Date: Mon, 30 Sep 2019 10:06:29
Message-Id: 6950436.lLdAxe0z9L@peak
In Reply to: Re: [gentoo-user] UEFI data corruption? [FIXED] by Peter Humphrey
1 On Tuesday, 24 September 2019 09:50:44 BST Peter Humphrey wrote:
2
3 > Right. After spending most of the last 10 days and some nights wrestling
4 > with the beast, I've got it fixed at last.
5
6 Except that I was wrong: I hadn't fixed it. I've just spent another two days
7 with an unbootable system finding a real fix.
8
9 When this all started, a couple of weeks ago or so, bootctl remove & install
10 threw a wobbler. It created two empty directories:
11 /boot/4eec63dc92f83de25e1e2e485d7f6536
12 /boot/EFI/Linux
13 then wailed about not finding some data file and stopped.
14
15 Ever since then I've been trying to force the system back into the directory
16 structure that used to work, and getting stung over and again.
17
18 This morning I decided to bend with the wind. I let bootctl create those
19 directories again, then copied the latest kernel image into /boot/EFI/Linux/.
20 On running bootctl install again, everything worked as expected. All I had to
21 do was to adjust the boot order with efibootmgr.
22
23 I suspect I have a hardware problem, because the UEFI BIOS boot menu doesn't
24 always show an entry I've just added, and it sometimes inserts a blank entry
25 among the real ones.
26
27 For the record, here's the layout of /boot now:
28
29 # tree /boot
30 /boot
31 ├── 4eec63dc92f83de25e1e2e485d7f6536
32 ├── config-4.19.72-gentoo
33 ├── config-4.19.72-gentoo-rescue
34 ├── config-4.19.72-gentoo-testsys
35 ├── early_ucode.cpio
36 ├── EFI
37 │ ├── BOOT
38 │ │ └── BOOTX64.EFI
39 │ ├── Linux
40 │ │ └── bzImage-4.19.72.efi
41 │ ├── systemd
42 │ │ └── systemd-bootx64.efi
43 │ └── TestSys
44 │ └── BOOT
45 │ └── bootX64.efi
46 ├── intel-uc.img
47 ├── loader
48 │ ├── entries
49 │ │ ├── 08-gentoo-4.19.66-rescue.conf
50 │ │ ├── 09-gentoo-4.19.66-rescue.nonet.conf
51 │ │ ├── 30-gentoo-4.19.72.conf
52 │ │ ├── 32-gentoo-4.19.72.nox.conf
53 │ │ ├── 34-gentoo-4.19.72.nonet.conf
54 │ │ ├── 40-gentoo-4.19.66.conf
55 │ │ ├── 42-gentoo-4.19.66.nox.conf
56 │ │ ├── 44-gentoo-4.19.66.nonet.conf
57 │ │ ├── 90-testsys-4.19.72.conf
58 │ │ └── 92-testsys-4.19.72.nonet.conf
59 │ ├── loader.conf
60 │ └── random-seed
61 ├── System.map-4.19.72-gentoo
62 ├── System.map-4.19.72-gentoo-rescue
63 ├── System.map-4.19.72-gentoo-testsys
64 ├── vmlinuz-4.19.72-gentoo
65 ├── vmlinuz-4.19.72-gentoo-rescue
66 └── vmlinuz-4.19.72-gentoo-testsys
67
68 9 directories, 27 files
69
70 Here's hoping I won't have to go through that pain again for a while...
71
72 --
73 Regards,
74 Peter.

Replies

Subject Author
Re: [gentoo-user] UEFI data corruption? [FIXED-FIXED] Neil Bothwick <neil@××××××××××.uk>