unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix@gnu.org>
To: David Dashyan <mail@davie.li>
Cc: 47329@debbugs.gnu.org
Subject: bug#47329: efibootmgr failed to register the boot entry: Input/output error
Date: Mon, 22 Mar 2021 22:17:24 +0100	[thread overview]
Message-ID: <87v99i99cr.fsf@nckx> (raw)
In-Reply-To: <87wntz3shi.fsf@davie.li>

[-- Attachment #1: Type: text/plain, Size: 1795 bytes --]

David,

David Dashyan 写道:
> failed to register the boot entry: Input/output error.
[...]
> same effect on guix system, but works fine when runned in ubuntu
> live cd.

Thank you for noting this!  This error is not uncommon in general, 
but this is the first time I've heard (or it's even occurred to 
me) that there's a difference between different efibootmgr builds. 
I'll keep that in mind when this next happens to me.

> I don't get why it complains that there is "no space left on 
> device"
> though.

Because your UEFI firmware reports that the storage NVRAM (a chip 
on your motherboard) is full.

There's no magic (simple + safe + guaranteed to work) way to fix 
this.  I don't think Guix could reliably automate one if we tried.

One of the safer things to try is looking at the output of 
‘efibootmgr’, then deleting ‘obviously irrelevant’ BootNNNN 
entries with ‘efibootmgr -b NNNN -B’.  IIRC, my Lenovo X230T came 
with options to boot from a floppy and/or optical drives, neither 
of which it has.  Each one takes up a tiny bit of the very limited 
NVRAM storage.

Deleting just a few clearly-unused entries can fix the problem, 
and is a lot safer than, e.g., manually mucking about in 
/sys/firmware/efi/efivars.  That could theoretically brick your 
machine.

Some people also report success from the ‘load defaults’ or ‘load 
optimised defaults’ options in the firmware's set-up menu.  Of 
course you'll lose all custom firmware settings, but you might not 
have any, and they're quite easy to restore by hand.

> output of `df -h` contains:
>> /dev/nvme0n1p1         548M  212K  548M   1% /boot/efi

The problem you're having has nothing to do with drives; you can 
ignore them.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

  reply	other threads:[~2021-03-22 21:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-22 19:20 bug#47329: efibootmgr failed to register the boot entry: Input/output error David Dashyan
2021-03-22 21:17 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix [this message]
2021-03-22 21:20 ` Maxime Devos
2021-03-22 21:22   ` Maxime Devos
2021-03-22 21:32 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
     [not found]   ` <87sg4mkr2a.fsf@davie.li>
2021-03-23 13:01     ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-03-23 13:21     ` Tobias Geerinckx-Rice via Bug reports for GNU Guix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v99i99cr.fsf@nckx \
    --to=bug-guix@gnu.org \
    --cc=47329@debbugs.gnu.org \
    --cc=mail@davie.li \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).