From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 047B1138330 for ; Mon, 19 Sep 2016 20:28:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64315E08F8; Mon, 19 Sep 2016 20:28:37 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 78866E08B8 for ; Mon, 19 Sep 2016 20:28:36 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id 133so16834618wmq.2 for ; Mon, 19 Sep 2016 13:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:reply-to:subject:date:message-id:user-agent:in-reply-to :references:mime-version; bh=qKA4gPmhCSjslhF+UeVpKk/Vhx3dnKMYIQU2NPcyQD0=; b=DzWEU8OfMzPyejh6TUj3VE5V+9rAV/WH30nCo3lCSVERwgXIDEa/Q6up8ZPq2OF374 H3uf62HhaFIHOeFYhAtJoMiznDc49yN8QO4vv46ADrxBEGrdFbAHlZyxkC//LwYM1lX2 PxkAdW9RpCUXsx/ZPv0QB/j/IovjNMRIPRTToiVGhCsKZT9swrKWr3pge9SbEbG2L2g3 E9eV2ygc639wM6ljJFrE+UQIw26zvp7UYh//ikO5JaSvi0GRex3IwjB5lGK+aNbU7Xt9 frSFE8vy3e8gpGE/LMdq7FuizEJpyrtmSr9Am1Weg6wcfRmr6QbDtB9MO29OZr3S1Ik3 3tqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:reply-to:subject:date:message-id :user-agent:in-reply-to:references:mime-version; bh=qKA4gPmhCSjslhF+UeVpKk/Vhx3dnKMYIQU2NPcyQD0=; b=ia9MnTWgTtYGw0SvLxkyfEr6hKsn19/DYX8fkf4Yyz1oya+QRyyiRjDOvlvc0dmHgI YHNAklikWpgydWS1w6kAftHIMYyoygsRbFhl9X5HllxHPKs+YiWiZBJNTXZA2t24Z21Y IvU6J02ePczm2nJXC0XKVl1lbfLHONbl4X7fO5AhJHMDQHYfc0Tj6njxM9UPaAtRHUrw c8FiNJwHsTtTsh9OiIeJH1NLsmbHawuSHi6LyfysR1I17vW6KkUt8/PkRpoQGJmK56vD brOEZJ3GpMDaKmwt9d/KZevHUXU5fbys4Txj1b8NukjcrUw8zkIalakJXOtbVuYVn/c1 g29g== X-Gm-Message-State: AE9vXwP3b5GiMQzyBgi4hNp2XfpJHXpebFv08JrvnDQaAqbPFPWqXPqjzFaXJmAcmVr4zg== X-Received: by 10.194.106.103 with SMTP id gt7mr17672960wjb.201.1474316914901; Mon, 19 Sep 2016 13:28:34 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id u64sm23782353wmd.20.2016.09.19.13.28.33 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Sep 2016 13:28:34 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to use efibootmgr Date: Mon, 19 Sep 2016 21:28:25 +0100 Message-ID: <1954032.SFuDlg1bAa@dell_xps> User-Agent: KMail/4.14.10 (Linux/4.4.6-gentoo; KDE/4.14.24; x86_64; ; ) In-Reply-To: References: <3555183.NN87cYWYpd@peak> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart9639936.GTQTjoGucA"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: ad38f935-fe1f-46be-a7ac-a7119f25cbf2 X-Archives-Hash: 1ceb86f4ab8fb1db301f7354cf142414 --nextPart9639936.GTQTjoGucA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" On Monday 19 Sep 2016 13:08:29 Mike Gilbert wrote: > On Mon, Sep 19, 2016 at 10:23 AM, Peter Humphrey =20 wrote: > > Hello list, > >=20 > > I'm trying to install a customised version of SysRescCD on a USB dr= ive, > > and > > it's all uphill. > >=20 > > The current stage has me trying to create a UEFI boot entry for it.= I have > > several entries I no longer need and I'm trying to delete them with= > > efibootmgr. This is what happens: > >=20 > > # efibootmgr --remove-dups > > BootCurrent: 0002 > > Timeout: 1 seconds > > BootOrder: 0003,0001,0000,0002,0008,0009,0010,0014 > > Boot0000* SysRescCD > > Boot0001* SysRescCD > > Boot0002* Linux Boot Manager > > Boot0003* SysRescCD > > Boot0008* CD/DVD Drive > > Boot0009* Hard Drive > > Boot0010* UEFI OS > > Boot0014* UEFI: SanDisk > >=20 > > # efibootmgr --delete-bootnum 0001 > > You must specify an entry to delete (see the -b option). > >=20 > > But I have - number 1. The manual says: > >=20 > > -b | --bootnum XXXX > >=20 > > Modify BootXXXX (hex) > >=20 > > -B | --delete-bootnum > >=20 > > Delete bootnum (hex) > >=20 > > No variation of 1, 01, 0x1, 0x0001 etc. makes any difference. I kno= w I'm > > not as bright as I used to be, but what on earth have I got wrong? = /boot > > is mounted. >=20 > The manpage seems to be incorrect; -B/--delete-bootnum does not take > any argument. Instead, you must specify the entry number using the -b= > option. >=20 > Try this: >=20 > efibootmgr -b 0001 -B I recall having a similar problem and this worked last time I tried: efibootmgr -b 0002 --delete-bootnum Boot0002 where: =2Db 002 is the entry I want to modify. =2D-delete-bootnum Boot0002 is what I want to do to it. I don't remember if specifying "Boot0002" = was=20 necessary, but it worked all the same. I guess you can try first: efibootmgr -b 0001 -B as already suggested and see if this does it. Also, before I delete a = boot=20 stub entry, e.g. 0002, I change the boot order to make sure it is not f= irst: =20 =2D-bootorder 0003,0005,0010,0002 but I don't think it is necessary. =2D-=20 Regards, Mick --nextPart9639936.GTQTjoGucA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJX4EpxAAoJELAdA+zwE4YeeegH/3lYLNVas2z7OrKBNIT+8Aon Iaol+NwKDcMZoGtgeLGodk+0CCWei/mohHIKeJvFRwz5I0slSVHR+nX3HFl1AiC4 9Eiimpk78fAM9BI2lAqmz4+dSnghfwYhtxok5WzMouS7aO+yejOTVxBRgFuL9soS mUNINsu3HzYX3epB1E3IJZfccJvPqRm0vzoe+sPey8rRVcKNAKbaBQnaskMuCakJ lyDsEXMPX6xIaI5VV4sgnXyHdlszQ2Owh463CrFrvhOT2+W4LRc6nkWyOw8wcsUO H2OAcjO2/YCAgkS7EW/eJ4I3h2me5ND4JIWBMm65nHVK+GiNlG0Cs8NfOOnZ+Ug= =qYkC -----END PGP SIGNATURE----- --nextPart9639936.GTQTjoGucA--