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 B3EBE138330 for ; Tue, 20 Sep 2016 09:26:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38F3FE0B80; Tue, 20 Sep 2016 09:26:24 +0000 (UTC) Received: from smarthost01c.mail.zen.net.uk (smarthost01c.mail.zen.net.uk [212.23.1.5]) by pigeon.gentoo.org (Postfix) with ESMTP id ED7A1E0B76 for ; Tue, 20 Sep 2016 09:26:22 +0000 (UTC) Received: from [82.69.80.10] (helo=peak.localnet) by smarthost01c.mail.zen.net.uk with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bmHJl-0006kQ-ET for gentoo-user@lists.gentoo.org; Tue, 20 Sep 2016 09:26:21 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to use efibootmgr Date: Tue, 20 Sep 2016 10:26:20 +0100 Message-ID: <3250753.MlRr93eS5B@peak> User-Agent: KMail/4.14.10 (Linux/4.7.4-gentoo; KDE/4.14.24; x86_64; ; ) In-Reply-To: <1954032.SFuDlg1bAa@dell_xps> References: <3555183.NN87cYWYpd@peak> <1954032.SFuDlg1bAa@dell_xps> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-smarthost01c-IP: [82.69.80.10] Feedback-ID: 82.69.80.10 X-Archives-Salt: c8cada22-0aab-4fd3-884e-50f866a2218d X-Archives-Hash: 42002894d0ee552d47c089996e0bdd66 On Monday 19 Sep 2016 21:28:25 Mick wrote: > On Monday 19 Sep 2016 13:08:29 Mike Gilbert wrote: --->8 > > 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. Or you could say, with hindsight, that the man page is not strictly incorrect, as it doesn't say anything that isn't true. You just have to know how to interpret it before you start. :) > > Try this: > > > > efibootmgr -b 0001 -B That worked a treat - many thanks. Except for this little wrinkle, which I hope is harmless: # efibootmgr -b 0000 -B BootCurrent: 0002 Timeout: 1 seconds No BootOrder is set; firmware will attempt recovery Boot0002* Linux Boot Manager Boot0008 CD/DVD Drive Boot0010* UEFI OS > I recall having a similar problem and this worked last time I tried: > > efibootmgr -b 0002 --delete-bootnum Boot0002 > > where: > > -b 002 > > is the entry I want to modify. > > --delete-bootnum Boot0002 > > is what I want to do to it. I don't remember if specifying "Boot0002" was > 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 stub entry, e.g. 0002, I change the boot order to make sure it is > not first: --bootorder 0003,0005,0010,0002 > > but I don't think it is necessary. Hah! Watch this: # efibootmgr --bootorder 0002,0010,0008 Could not set BootOrder: No space left on device I'll do a bit more poking around. -- Rgds Peter