unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Cannot write to /boot directory No space left
@ 2020-12-10 20:33 znavko--- via
  2020-12-10 21:04 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 2+ messages in thread
From: znavko--- via @ 2020-12-10 20:33 UTC (permalink / raw)
  To: help-guix

Hi! Can you help me? My usual reconfiguratio with my usual confug now fails.

# guix system reconfigure /etc/config.scm
....
ctivating system...
making '/gnu/store/23hk1si942jxxsp85hikidhyyn3gjqws-system' the current system...
setting up setuid programs in '/run/setuid-programs'...
populating /etc from /gnu/store/y8jinvvspwi3r28ga6vmv38rdymg4lv3-etc...
The following derivation will be built:
 /gnu/store/wm0ci788xclkh1i3j283wn4rsbd7s4j3-install-bootloader.scm.drv

building /gnu/store/wm0ci788xclkh1i3j283wn4rsbd7s4j3-install-bootloader.scm.drv...
guix system: error: '/gnu/store/d1i6x7vwr83j1m0zms580mh2dqgx1s6m-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/d1i6x7vwr83j1m0zms580mh2dqgx1s6m-grub-efi-2.04/sbin/grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
# mount | grep boot
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
# df -h
Filesystem Size Used Avail Use% Mounted on
none 12G 0 12G 0% /dev
/dev/sda2 47G 28G 17G 63% /
/dev/sda1 519M 152K 519M 1% /boot/efi
tmpfs 12G 119M 12G 1% /dev/shm
none 12G 24K 12G 1% /run/systemd
none 12G 0 12G 0% /run/user
cgroup 12G 0 12G 0% /sys/fs/cgroup
none 12G 0 12G 0% /var/cache/fontconfig
tmpfs 2.4G 16K 2.4G 1% /run/user/1000
/dev/sdc2 227G 3.5G 212G 2% /mnt
I see that "//boot" is using -- with two slashes.
Is it a bug?
Ps: this happened after I installed Debian on /dev/sdc

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

* Re: Cannot write to /boot directory No space left
  2020-12-10 20:33 Cannot write to /boot directory No space left znavko--- via
@ 2020-12-10 21:04 ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-12-10 21:04 UTC (permalink / raw)
  To: znavko; +Cc: help-guix

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

Hi,

znavko--- via 写道:
> Cannot write to /boot directory No space left

You got lost.  This has nothing to do with a ‘/boot directory’, or 
how it's mounted.  The bug is in your hardware.

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

Your UEFI NVRAM is full.

This happens on my ThinkPad X230T for unknown reasons.  The only 
‘solution’ I've found is to delete some unused default boot 
entries so GRUB can add one for Guix.

I have a script that deletes everything except ‘Guix’, ‘ATA‌ HDD0’, 
‘USB HDD’, and Important-Looking Things like ‘Setup’:

  $ efibootmgr
  [This will print them all, for example:]
  Boot0001 Lenovo Diagnostics
  Boot0002 ATAPI CD0
  ...
  $ sudo efibootmgr --delete-bootnum --bootnum 0001
  $ sudo efibootmgr --delete-bootnum --bootnum 0002
  ...

and then rerun grub-install (for example by running ‘guix system 
reconfigure’ again).

Kind regards,

T G-R

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

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

end of thread, other threads:[~2020-12-10 21:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-10 20:33 Cannot write to /boot directory No space left znavko--- via
2020-12-10 21:04 ` Tobias Geerinckx-Rice

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