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 74A76138330 for ; Mon, 19 Sep 2016 17:09:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6CC021C06A; Mon, 19 Sep 2016 17:08:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 98643E0AD7 for ; Mon, 19 Sep 2016 17:08:53 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id D34D83409C8 for ; Mon, 19 Sep 2016 17:08:51 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id w11so204501206oia.2 for ; Mon, 19 Sep 2016 10:08:51 -0700 (PDT) X-Gm-Message-State: AE9vXwMm/Ph55uPq/IKuj/9M2XH1ldvybxNZJh0RwRH5O+AHE/3lqDplS31mRpCC9NzND4rBsN/Cui3uZ8DlTw== X-Received: by 10.202.77.82 with SMTP id a79mr33302994oib.36.1474304929581; Mon, 19 Sep 2016 10:08:49 -0700 (PDT) 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 Received: by 10.202.96.5 with HTTP; Mon, 19 Sep 2016 10:08:29 -0700 (PDT) In-Reply-To: <3555183.NN87cYWYpd@peak> References: <3555183.NN87cYWYpd@peak> From: Mike Gilbert Date: Mon, 19 Sep 2016 13:08:29 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-user] How to use efibootmgr To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: d442d619-beaa-47f1-b424-4710628489eb X-Archives-Hash: 772a202a55c38211f470f84fd0e8001f On Mon, Sep 19, 2016 at 10:23 AM, Peter Humphrey wrote: > Hello list, > > I'm trying to install a customised version of SysRescCD on a USB drive, and > it's all uphill. > > 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: > > # 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 > > # efibootmgr --delete-bootnum 0001 > You must specify an entry to delete (see the -b option). > > But I have - number 1. The manual says: > > -b | --bootnum XXXX > Modify BootXXXX (hex) > > -B | --delete-bootnum > Delete bootnum (hex) > > No variation of 1, 01, 0x1, 0x0001 etc. makes any difference. I know I'm not > as bright as I used to be, but what on earth have I got wrong? /boot is > mounted. 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. Try this: efibootmgr -b 0001 -B