Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to use efibootmgr
Date: Mon, 19 Sep 2016 20:28:44
Message-Id: 1954032.SFuDlg1bAa@dell_xps
In Reply to: Re: [gentoo-user] How to use efibootmgr by Mike Gilbert
1 On Monday 19 Sep 2016 13:08:29 Mike Gilbert wrote:
2 > On Mon, Sep 19, 2016 at 10:23 AM, Peter Humphrey <peter@××××××××××××.uk>
3 wrote:
4 > > Hello list,
5 > >
6 > > I'm trying to install a customised version of SysRescCD on a USB drive,
7 > > and
8 > > it's all uphill.
9 > >
10 > > The current stage has me trying to create a UEFI boot entry for it. I have
11 > > several entries I no longer need and I'm trying to delete them with
12 > > efibootmgr. This is what happens:
13 > >
14 > > # efibootmgr --remove-dups
15 > > BootCurrent: 0002
16 > > Timeout: 1 seconds
17 > > BootOrder: 0003,0001,0000,0002,0008,0009,0010,0014
18 > > Boot0000* SysRescCD
19 > > Boot0001* SysRescCD
20 > > Boot0002* Linux Boot Manager
21 > > Boot0003* SysRescCD
22 > > Boot0008* CD/DVD Drive
23 > > Boot0009* Hard Drive
24 > > Boot0010* UEFI OS
25 > > Boot0014* UEFI: SanDisk
26 > >
27 > > # efibootmgr --delete-bootnum 0001
28 > > You must specify an entry to delete (see the -b option).
29 > >
30 > > But I have - number 1. The manual says:
31 > >
32 > > -b | --bootnum XXXX
33 > >
34 > > Modify BootXXXX (hex)
35 > >
36 > > -B | --delete-bootnum
37 > >
38 > > Delete bootnum (hex)
39 > >
40 > > No variation of 1, 01, 0x1, 0x0001 etc. makes any difference. I know I'm
41 > > not as bright as I used to be, but what on earth have I got wrong? /boot
42 > > is mounted.
43 >
44 > The manpage seems to be incorrect; -B/--delete-bootnum does not take
45 > any argument. Instead, you must specify the entry number using the -b
46 > option.
47 >
48 > Try this:
49 >
50 > efibootmgr -b 0001 -B
51
52 I recall having a similar problem and this worked last time I tried:
53
54 efibootmgr -b 0002 --delete-bootnum Boot0002
55
56 where:
57
58 -b 002
59
60 is the entry I want to modify.
61
62 --delete-bootnum Boot0002
63
64 is what I want to do to it. I don't remember if specifying "Boot0002" was
65 necessary, but it worked all the same. I guess you can try first:
66
67
68 efibootmgr -b 0001 -B
69
70 as already suggested and see if this does it. Also, before I delete a boot
71 stub entry, e.g. 0002, I change the boot order to make sure it is not first:
72 --bootorder 0003,0005,0010,0002
73
74 but I don't think it is necessary.
75 --
76 Regards,
77 Mick

Attachments

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

Replies

Subject Author
Re: [gentoo-user] How to use efibootmgr Peter Humphrey <peter@××××××××××××.uk>