unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47329: efibootmgr failed to register the boot entry: Input/output error
@ 2021-03-22 19:20 David Dashyan
  2021-03-22 21:17 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: David Dashyan @ 2021-03-22 19:20 UTC (permalink / raw)
  To: 47329


Dear Guix,

I ran 'guix system reconfigure' yesterday and it failed during
bootloader installation. I couldn't load system afterwards.

> activating system...
> making '/gnu/store/agdqqyc7wm3gv53dgca9gir09h9ax0ym-system' the current system...
> setting up setuid programs in '/run/setuid-programs'...
> populating /etc from /gnu/store/bvvsriahzjxv8m977j84xsn802rrz27d-etc...
> The following derivation will be built:
>    /gnu/store/cx5i04kjidixkkdi2cj01v0ij72frsan-install-bootloader.scm.drv
> 
> building /gnu/store/cx5i04kjidixkkdi2cj01v0ij72frsan-install-bootloader.scm.drv...
> guix system: error: '/gnu/store/q5mhiwj4rap24i2b2y9svwbfsn3ya0v1-grub-efi-2.04/sbin/grub-install --boot-directory //boot --bootloader-id=Guix --efi-directory //boot/efi' exited with status 1; output follows:

>   Installing for x86_64-efi platform.
>   Could not prepare Boot variable: No space left on device
>   /gnu/store/q5mhiwj4rap24i2b2y9svwbfsn3ya0v1-grub-efi-2.04/sbin/grub-install: error: efibootmgr failed to register the boot entry: Input/output error.

Running 
> sudo efibootmgr --create --disk /dev/nvme0n1p1 --part 1 --loader \
> '\EFI\Guix\grubx64.efi' --label Guix
has same effect on guix system, but works fine when runned in ubuntu
live cd.

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

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

Haven't woked out how to fix it manually, just keep suspending for now :)

-- 
David aka zzappie




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#47329: efibootmgr failed to register the boot entry: Input/output error
  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
  2021-03-22 21:20 ` Maxime Devos
  2021-03-22 21:32 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-03-22 21:17 UTC (permalink / raw)
  To: David Dashyan; +Cc: 47329

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#47329: efibootmgr failed to register the boot entry: Input/output error
  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
@ 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
  2 siblings, 1 reply; 7+ messages in thread
From: Maxime Devos @ 2021-03-22 21:20 UTC (permalink / raw)
  To: David Dashyan, 47329

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

On Mon, 2021-03-22 at 22:20 +0300, David Dashyan wrote:
> Dear Guix,
> 
> I ran 'guix system reconfigure' yesterday and it failed during
> bootloader installation. I couldn't load system afterwards.


> > activating system...
> > [...]
> > 
> > building /gnu/store/cx5i04kjidixkkdi2cj01v0ij72frsan-install-bootloader.scm.drv...
> > guix system: error: '/gnu/store/q5mhiwj4rap24i2b2y9svwbfsn3ya0v1-grub-efi-2.04/sbin/grub-install --boot-directory //boot --bootloader-id=Guix --efi-directory //boot/efi' exited with status 1; output follows:
> >   Installing for x86_64-efi platform.

The directory here is /boot (and /boot/efi) ...

> >   Could not prepare Boot variable: No space left on device
> >   /gnu/store/q5mhiwj4rap24i2b2y9svwbfsn3ya0v1-grub-efi-2.04/sbin/grub-install: error: efibootmgr failed to register the boot entry: Input/output error.

That ‘Input/output error’ looks bad.

> Running 
> > sudo efibootmgr --create --disk /dev/nvme0n1p1 --part 1 --loader \
> > '\EFI\Guix\grubx64.efi' --label Guix
> has same effect on guix system, but works fine when runned in ubuntu
> live cd.
> 
> I don't get why it complains that there is "no space left on device"
> though.
> 
> output of `df -h` contains:
> > /dev/nvme0n1p1         548M  212K  548M   1% /boot/efi

But you are only looking at /boot/efi here ...

Are /boot/efi and /boot separate file systems?
Maybe paste the full output of "df -h"

Greetings,
Maxime

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#47329: efibootmgr failed to register the boot entry: Input/output error
  2021-03-22 21:20 ` Maxime Devos
@ 2021-03-22 21:22   ` Maxime Devos
  0 siblings, 0 replies; 7+ messages in thread
From: Maxime Devos @ 2021-03-22 21:22 UTC (permalink / raw)
  To: David Dashyan, 47329

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

Nevermind, it seems Tobias Geerinckx knows what's going on here.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#47329: efibootmgr failed to register the boot entry: Input/output error
  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
  2021-03-22 21:20 ` Maxime Devos
@ 2021-03-22 21:32 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
       [not found]   ` <87sg4mkr2a.fsf@davie.li>
  2 siblings, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-03-22 21:32 UTC (permalink / raw)
  To: David Dashyan; +Cc: 47329

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

David,

David Dashyan 写道:
> Haven't woked out how to fix it manually, just keep suspending 
> for now :)

Didn't we talk on #guix yesterday?  I thought manually adding an 
entry for \EFI\Guix\grubx64.efi fixed your next boot.  Did it not?

Kind regards,

T G-R

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#47329: efibootmgr failed to register the boot entry: Input/output error
       [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
  1 sibling, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-03-23 13:01 UTC (permalink / raw)
  To: David Dashyan; +Cc: 47329, Maxime Devos

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

David,

David Dashyan 写道:
> After running `rm /sys/firmware/efi/efivars/dump-*` followed by 
> reboot
> guix system reconfigure went without errors.

Happy to hear that!

I *think* that's a safe thing to do, at least on Lenovo devices.

> Also. While rebooting (I had to boot to ubuntu live cd first) I 
> noted
> that ubuntu has efibootmgr version 17.  And It works there. 
> Maybe we
> just need to update it?

Thanks, I'll try to update our efibootmgr.  Upstream[0] is still 
at 16.  Need to figure out what the Debian package actually 
contains.

Kind regards,

T G-R

[0]: https://github.com/rhboot/efibootmgr

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#47329: efibootmgr failed to register the boot entry: Input/output error
       [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
  1 sibling, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-03-23 13:21 UTC (permalink / raw)
  To: David Dashyan; +Cc: 47329, Maxime Devos

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

David Dashyan 写道:
> Also. While rebooting (I had to boot to ubuntu live cd first) I 
> noted
> that ubuntu has efibootmgr version 17.  And It works there. 
> Maybe we
> just need to update it?

Done on master.

Kind regards,

T G-R

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-23 13:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).