Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] UEFI data corruption? [SOLVED, mostly]
Date: Wed, 18 Sep 2019 18:31:28
Message-Id: 1957962.hAj6PSt54l@localhost
In Reply to: Re: [gentoo-user] UEFI data corruption? [SOLVED, mostly] by Peter Humphrey
1 On Wednesday, 18 September 2019 17:26:25 BST Peter Humphrey wrote:
2 > On Wednesday, 18 September 2019 14:20:11 BST Mick wrote:
3
4 > > I think --label can only be specified when you --create a new entry in the
5 > > UEFI boot menu. If there is an entry already present, I think you cannot
6 > > modify it. When I get things wrong at menu entry creation time, I delete
7 > > the whole entry and reconstitute it afresh.
8 >
9 > Ah, now why would the man page not say this?
10
11 Indeed. I could be wrong how the 'efibootmgr --bootnum' is meant to work, but
12 I share your experience with it, namely it doesn't seem to work with '--
13 label', but works with '--delete-bootnum'.
14
15
16 > > Hmm ... I wonder what bootctl reads to populate its "title:" field. Would
17 > > you care to share the output of:
18 > >
19 > > efibootmgr -v
20 >
21 > Taken just now, at 16:25 GMT:
22 >
23 > # efibootmgr -v
24 > BootCurrent: 0000
25 > Timeout: 1 seconds
26 > BootOrder: 0000,0001,0002
27 > Boot0000* EFI Stub HD(1,GPT,95b0a3f6-eae2-445c-
28 > b098-3c8174588948,0x800,0x7f800)/File(\EFI\BOOT\BOOTX64.EFI)
29
30 Boot0000 above is the first menu entry.
31
32 "EFI Stub" is the label of this entry.
33
34 Thereafter you can see the path of the bootable entry:
35
36 HD - it is a hard drive
37 1 - on the first partition
38 GTP - using a GPT partitioning schema
39 95b0a3f6-* - the UUID of the partition (not the fs)
40 0x800,0x7f800 - start-end of the partition in hex
41 File - the filesystem path of the bootable image.
42
43
44 > Boot0001* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........o.T.S.S.T.c.o.r.p.
45 > .C.D.D.V.D.W. .S.N.-.
46 > 2.0.8.F.B....................A...........................>..Gd-.;.A..MQ..L.
47 > 1.S.3.2.Y.6.G.B.0.C.B.0.G.K. . . . . . ........BO
48
49 Boot0001 is the second boot entry and is a CD/DVD drive. It seems you have a
50 CD in it, without it you would probably see something like this:
51
52 Boot0001* UEFI:CD/DVD Drive BBS(129,,0x0)
53
54
55 > Boot0002* Hard Drive BBS(HD,,0x0)..GO..NO........o.C.T.1.0.0.0.B.X.
56 > 1.0.0.S.S.D.
57 > 1....................A...........................>..Gd-.;.A..MQ..L.
58 > 5.1.4.0.0.F.2.0.8.3.4.6. . . . . . . . ........BO..NO........o.C.T.
59 > 1.0.0.0.B.X.1.0.0.S.S.D.
60 > 1....................A...........................>..Gd-.;.A..MQ..L.
61 > 5.1.4.0.0.F.2.0.8.3.F.8. . . . . . . .
62 > ........BO..NO..........S.A.M.S.U.N.G. .M.Z.V.P.V.2.5.6.H.D.G.L.-.
63 > 0.0.0.0.0....................A.......................................J..Gd-.
64 > ;.A..MQ..L.S.A.M.S.U.N.G. .M.Z.V.P.V.2.5.6.H.D.G.L.-.0.0.0.0.0........BO
65
66 Boot0002 is the final entry by the looks of it refers to a Samsung SSD.
67
68
69 > Is that the sort of thing you were expecting? I can't say it means much to
70 > me.
71
72 Yes, from what I see above there is only one label, "EFI Stub", corresponding
73 to the first bootable entry of the menu. You can contact me off-list if you
74 want help stringing the efibootmgr syntax, to create/delete entries in your
75 boot menu. It may help future recovery exercises of your ESP in the future,
76 without having to recreate partition tables, partitions and filesystems.
77 --
78 Regards,
79
80 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] UEFI data corruption? [SOLVED, mostly] Peter Humphrey <peter@××××××××××××.uk>