unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* grub-install failing while system reconfigure
@ 2023-01-15  6:03 Akib Azmain Turja
  2023-01-15  8:02 ` Julien Lepiller
  2023-01-16 16:40 ` Maxim Cournoyer
  0 siblings, 2 replies; 6+ messages in thread
From: Akib Azmain Turja @ 2023-01-15  6:03 UTC (permalink / raw)
  To: help-guix

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


grub-install is saying no space left, but I still have much space
available in both root and EFI partition.

--8<---------------cut here---------------start------------->8---
akib@gnu-guix:~/dotfiles$ sudo guix system reconfigure ~/dotfiles/guix/system-config.scm
The following derivation will be built:
  /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv

building /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv...
/gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system
/gnu/store/hhm7spb2xdd6i5ci8p6wjs9dalv9g18a-grub.cfg

activating system...
making '/gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system' the current system...
setting up setuid programs in '/run/setuid-programs'...
populating /etc from /gnu/store/dkr38kkqiykn86qxmqq0vmd86kf8v7qr-etc...
The following derivation will be built:
  /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv

building /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv...
guix system: error: '/gnu/store/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/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/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/sbin/grub-install: error: efibootmgr failed to register the boot entry: Input/output error.

--8<---------------cut here---------------end--------------->8---

-- 
Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
Fediverse: akib@hostux.social
Codeberg: akib
emailselfdefense.fsf.org | "Nothing can be secure without encryption."

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

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

* Re: grub-install failing while system reconfigure
  2023-01-15  6:03 grub-install failing while system reconfigure Akib Azmain Turja
@ 2023-01-15  8:02 ` Julien Lepiller
  2023-01-15 10:38   ` Akib Azmain Turja
  2023-01-16 16:40 ` Maxim Cournoyer
  1 sibling, 1 reply; 6+ messages in thread
From: Julien Lepiller @ 2023-01-15  8:02 UTC (permalink / raw)
  To: help-guix, Akib Azmain Turja

This happened to me recently. The system wouldn't even boot after that… It seems the issue is that grub appends some config in bios NV memory, which is separate from your EFI partition, and it filled up.

I found two potential solutions: remove the variables (somewhere in /sys I think) or enter bios and factory-reset it. After that, guix won't boot, so I had to use an installation disk and follow "entering a chroot" from the manual to reconfigure the system and finally boot. Grub now looks funny, but it worked :)

Le 15 janvier 2023 07:03:06 GMT+01:00, Akib Azmain Turja <akib@disroot.org> a écrit :
>
>grub-install is saying no space left, but I still have much space
>available in both root and EFI partition.
>
>--8<---------------cut here---------------start------------->8---
>akib@gnu-guix:~/dotfiles$ sudo guix system reconfigure ~/dotfiles/guix/system-config.scm
>The following derivation will be built:
>  /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv
>
>building /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv...
>/gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system
>/gnu/store/hhm7spb2xdd6i5ci8p6wjs9dalv9g18a-grub.cfg
>
>activating system...
>making '/gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system' the current system...
>setting up setuid programs in '/run/setuid-programs'...
>populating /etc from /gnu/store/dkr38kkqiykn86qxmqq0vmd86kf8v7qr-etc...
>The following derivation will be built:
>  /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv
>
>building /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv...
>guix system: error: '/gnu/store/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/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/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/sbin/grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
>
>--8<---------------cut here---------------end--------------->8---
>
>-- 
>Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
>Fediverse: akib@hostux.social
>Codeberg: akib
>emailselfdefense.fsf.org | "Nothing can be secure without encryption."

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

* Re: grub-install failing while system reconfigure
  2023-01-15  8:02 ` Julien Lepiller
@ 2023-01-15 10:38   ` Akib Azmain Turja
  2023-01-15 13:52     ` Akib Azmain Turja
  2023-01-15 20:02     ` Felix Lechner via
  0 siblings, 2 replies; 6+ messages in thread
From: Akib Azmain Turja @ 2023-01-15 10:38 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: help-guix

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

Julien Lepiller <julien@lepiller.eu> writes:

> This happened to me recently. The system wouldn't even boot after
> that…

My Guix GRUB EFI boot entry is also now gone.  Fortunately, I had
another GRUB installed with a Guix entry, so I can still get into Guix
(an older system generation, though).

> It seems the issue is that grub appends some config in bios NV
> memory, which is separate from your EFI partition, and it filled up.
>
> I found two potential solutions: remove the variables (somewhere in
> /sys I think)

Does anybody know how?

> or enter bios and factory-reset it.

What are the consequences of that?  I'm afraid.  Would it make the still
existing EFI boot entries go missing?

> After that, guix
> won't boot, so I had to use an installation disk and follow "entering
> a chroot" from the manual to reconfigure the system and finally
> boot.

I think I don't have a Guix image.  Would a Trisquel image do?  (I guess
yes.)

> Grub now looks funny, but it worked :)

I don't care about GRUB's look, I just need to get into Guix.

>
> Le 15 janvier 2023 07:03:06 GMT+01:00, Akib Azmain Turja <akib@disroot.org> a écrit :
>>
>>grub-install is saying no space left, but I still have much space
>>available in both root and EFI partition.
>>
>>--8<---------------cut here---------------start------------->8---
>>akib@gnu-guix:~/dotfiles$ sudo guix system reconfigure ~/dotfiles/guix/system-config.scm
>>The following derivation will be built:
>>  /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv
>>
>>building /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv...
>>/gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system
>>/gnu/store/hhm7spb2xdd6i5ci8p6wjs9dalv9g18a-grub.cfg
>>
>>activating system...
>>making '/gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system' the current system...
>>setting up setuid programs in '/run/setuid-programs'...
>>populating /etc from /gnu/store/dkr38kkqiykn86qxmqq0vmd86kf8v7qr-etc...
>>The following derivation will be built:
>>  /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv
>>
>>building /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv...
>>guix system: error:
>> '/gnu/store/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/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/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/sbin/grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
>>
>>--8<---------------cut here---------------end--------------->8---
>>
>>-- 
>>Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
>>Fediverse: akib@hostux.social
>>Codeberg: akib
>>emailselfdefense.fsf.org | "Nothing can be secure without encryption."

-- 
Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
Fediverse: akib@hostux.social
Codeberg: akib
emailselfdefense.fsf.org | "Nothing can be secure without encryption."

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

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

* Re: grub-install failing while system reconfigure
  2023-01-15 10:38   ` Akib Azmain Turja
@ 2023-01-15 13:52     ` Akib Azmain Turja
  2023-01-15 20:02     ` Felix Lechner via
  1 sibling, 0 replies; 6+ messages in thread
From: Akib Azmain Turja @ 2023-01-15 13:52 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: help-guix

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

Akib Azmain Turja <akib@disroot.org> writes:

> Julien Lepiller <julien@lepiller.eu> writes:
>
>> This happened to me recently. The system wouldn't even boot after
>> that…
>
> My Guix GRUB EFI boot entry is also now gone.  Fortunately, I had
> another GRUB installed with a Guix entry, so I can still get into Guix
> (an older system generation, though).
>
>> It seems the issue is that grub appends some config in bios NV
>> memory, which is separate from your EFI partition, and it filled up.
>>
>> I found two potential solutions: remove the variables (somewhere in
>> /sys I think)
>
> Does anybody know how?
>
>> or enter bios and factory-reset it.
>
> What are the consequences of that?  I'm afraid.  Would it make the still
> existing EFI boot entries go missing?
>

It did it, thanks!!!

>> After that, guix
>> won't boot, so I had to use an installation disk and follow "entering
>> a chroot" from the manual to reconfigure the system and finally
>> boot.
>
> I think I don't have a Guix image.  Would a Trisquel image do?  (I guess
> yes.)
>
>> Grub now looks funny, but it worked :)
>
> I don't care about GRUB's look, I just need to get into Guix.
>
>>
>> Le 15 janvier 2023 07:03:06 GMT+01:00, Akib Azmain Turja <akib@disroot.org> a écrit :
>>>
>>>grub-install is saying no space left, but I still have much space
>>>available in both root and EFI partition.
>>>
>>>--8<---------------cut here---------------start------------->8---
>>>akib@gnu-guix:~/dotfiles$ sudo guix system reconfigure ~/dotfiles/guix/system-config.scm
>>>The following derivation will be built:
>>>  /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv
>>>
>>>building /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv...
>>>/gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system
>>>/gnu/store/hhm7spb2xdd6i5ci8p6wjs9dalv9g18a-grub.cfg
>>>
>>>activating system...
>>>making '/gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system' the current system...
>>>setting up setuid programs in '/run/setuid-programs'...
>>>populating /etc from /gnu/store/dkr38kkqiykn86qxmqq0vmd86kf8v7qr-etc...
>>>The following derivation will be built:
>>>  /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv
>>>
>>>building /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv...
>>>guix system: error:
>>> '/gnu/store/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/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/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/sbin/grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
>>>
>>>--8<---------------cut here---------------end--------------->8---
>>>
>>>-- 
>>>Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
>>>Fediverse: akib@hostux.social
>>>Codeberg: akib
>>>emailselfdefense.fsf.org | "Nothing can be secure without encryption."

-- 
Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
Fediverse: akib@hostux.social
Codeberg: akib
emailselfdefense.fsf.org | "Nothing can be secure without encryption."

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

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

* Re: grub-install failing while system reconfigure
  2023-01-15 10:38   ` Akib Azmain Turja
  2023-01-15 13:52     ` Akib Azmain Turja
@ 2023-01-15 20:02     ` Felix Lechner via
  1 sibling, 0 replies; 6+ messages in thread
From: Felix Lechner via @ 2023-01-15 20:02 UTC (permalink / raw)
  To: help-guix; +Cc: Julien Lepiller, Akib Azmain Turja

Hi,

Akib Azmain Turja <akib@disroot.org> writes:

> Fortunately, I had
> another GRUB installed with a Guix entry, so I can still get into Guix
> (an older system generation, though).

Even with an older Grub you should be able to load your latest Guix menu
with 'configfile'. [1] It should give you access to your most recent
system generation.

>> or enter bios and factory-reset it.

Instead of a factory reset, I would recommend the tool 'efibootmgr' from
a rescue disk after loading the necessary kernel module. The name of
that module changed recently, I believe, from 'efivars' to
'efivarfs'. (Please note the extra letter 'F'.)

It is possible that our version of Grub is not yet compatible with the
new kernel module or that the efivarfs file system was not mounted as
described here, when Grub ran. [2]

Kind regards
Felix Lechner

[1] https://www.gnu.org/software/grub/manual/grub/html_node/configfile.html#configfile
[2] https://www.kernel.org/doc/html/latest/filesystems/efivarfs.html


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

* Re: grub-install failing while system reconfigure
  2023-01-15  6:03 grub-install failing while system reconfigure Akib Azmain Turja
  2023-01-15  8:02 ` Julien Lepiller
@ 2023-01-16 16:40 ` Maxim Cournoyer
  1 sibling, 0 replies; 6+ messages in thread
From: Maxim Cournoyer @ 2023-01-16 16:40 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: help-guix

Hello,

Akib Azmain Turja <akib@disroot.org> writes:

> grub-install is saying no space left, but I still have much space
> available in both root and EFI partition.
>
> akib@gnu-guix:~/dotfiles$ sudo guix system reconfigure ~/dotfiles/guix/system-config.scm
> The following derivation will be built:
>   /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv
>
> building /gnu/store/ss6c3krd1wwbg7kybdr8pkrl7jy3cc79-grub.cfg.drv...
> /gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system
> /gnu/store/hhm7spb2xdd6i5ci8p6wjs9dalv9g18a-grub.cfg
>
> activating system...
> making '/gnu/store/i3bl3mpy92hwm6v1n74slvyvlgnpg85g-system' the current system...
> setting up setuid programs in '/run/setuid-programs'...
> populating /etc from /gnu/store/dkr38kkqiykn86qxmqq0vmd86kf8v7qr-etc...
> The following derivation will be built:
>   /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv
>
> building /gnu/store/77k62g58nhi9kaxfryfa3b54a9i53gd6-install-bootloader.scm.drv...
> guix system: error: '/gnu/store/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/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/ch9q9w5zbvgq8srr6dscq6hdf03pfqb4-grub-efi-2.06/sbin/grub-install: error: efibootmgr failed to register the boot entry: Input/output error.

I have experienced PC with buggy UEFI firmware; when I saw errors
similar to the above rebooting the machine would resolve it.

-- 
Thanks,
Maxim


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

end of thread, other threads:[~2023-01-16 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-15  6:03 grub-install failing while system reconfigure Akib Azmain Turja
2023-01-15  8:02 ` Julien Lepiller
2023-01-15 10:38   ` Akib Azmain Turja
2023-01-15 13:52     ` Akib Azmain Turja
2023-01-15 20:02     ` Felix Lechner via
2023-01-16 16:40 ` Maxim Cournoyer

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