Bug#845023: efibootmgr: Could not prepare Boot variable: No space left on device
Control: severity -1 important [ Please CC the bug report address 845...@bug.debian.org so other people can follow this conversation too... ] On Sat, Nov 19, 2016 at 08:08:58PM +0300, Vladimir Stavrinov wrote: >On Sat, Nov 19, 2016 at 03:55:43PM +, Steve McIntyre wrote: > >> It's quite likely not a problem with the ESP on /boot/efi, but maybe a >> problem with the variable storage space on your computer. What make > >No, nothing changed there since it was working: the same hardware in >the same configuration. The problem appeared in some point of Debian >upgrade a mounth ago. This EFI setup was working without problem for >more then 2 years under continuous upgrading of Debian sid That's not a guarantee - a simple update of the EFI variables (e.g. by running grub-install and efibootmgr) may need the firmware to write a new copy of variable space, then clean up the old space afterwards. There have been known bugs in some firmware implementations here, I'm afraid. See [1] and [2] for examples. [1] https://womble.decadent.org.uk/blog/the-terrible-state-of-efi-variable-storage.html [2] https://mjg59.dreamwidth.org/25091.html >> and model are you using? > >It is Lenovo H530: > >http://shop.lenovo.com/gb/en/desktops/lenovo/h-series/h530/ > >> efibootmgr -c -L debian -l \EFI\debian\grubx64.efi > >No difference - the same result. Moreover the very short command >emits the same error: > >efibootmgr -c >Could not prepare Boot variable: No space left on device > >So again: it is not about space. This is some sort of bug of >interaction with hardware. > >> grub-install -v will show you exactly what commands grub is trying to >> use. > >grub-install: info: executing efibootmgr -c -d /dev/sda -p 2 -w -L debian -l >\EFI\debian\grubx64.efi. >Could not prepare Boot variable: No space left on device >Installation finished. No error reported. OK, that error comes from exactly the code I'm reading in efibootmgr. Calling that command line again with extra "-v" will print more information, maybe. >From experience with other Lenovo machines, you *may* be able to fix this by re-flashing the firmware/BIOS - this typically resets the EFI variable storage space. -- Steve McIntyre, Cambridge, UK.st...@einval.com < Aardvark> I dislike C++ to start with. C++11 just seems to be handing rope-creating factories for users to hang multiple instances of themselves.
Processed: Re: Bug#845023: efibootmgr: Could not prepare Boot variable: No space left on device
Processing control commands: > severity -1 important Bug #845023 [efibootmgr] efibootmgr: Could not prepare Boot variable: No space left on device Severity set to 'important' from 'critical' -- 845023: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845023 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#845023: efibootmgr: Could not prepare Boot variable: No space left on device
On Sat, Nov 19, 2016 at 03:55:43PM +, Steve McIntyre wrote: > It's quite likely not a problem with the ESP on /boot/efi, but maybe a > problem with the variable storage space on your computer. What make No, nothing changed there since it was working: the same hardware in the same configuration. The problem appeared in some point of Debian upgrade a mounth ago. This EFI setup was working without problem for more then 2 years under continuous upgrading of Debian sid > and model are you using? It is Lenovo H530: http://shop.lenovo.com/gb/en/desktops/lenovo/h-series/h530/ > efibootmgr -c -L debian -l \EFI\debian\grubx64.efi No difference - the same result. Moreover the very short command emits the same error: efibootmgr -c Could not prepare Boot variable: No space left on device So again: it is not about space. This is some sort of bug of interaction with hardware. > grub-install -v will show you exactly what commands grub is trying to > use. grub-install: info: executing efibootmgr -c -d /dev/sda -p 2 -w -L debian -l \EFI\debian\grubx64.efi. Could not prepare Boot variable: No space left on device Installation finished. No error reported. ### Vladimir Stavrinov ###
Bug#845023: efibootmgr: Could not prepare Boot variable: No space left on device
On Sat, Nov 19, 2016 at 06:26:46PM +0300, Vladmimir Stavrinov wrote: >Package: efibootmgr >Version: 14-1 >Severity: critical >Tags: upstream >Justification: breaks the whole system > >Dear Maintainer, >The error in subject is issued by the command: > >efibootmgr -c -L Debian -l /boot/grub/x86_64-efi/grub.efi > >and this makes system unbootable. I have found a lot of reports about >this problem, but no solutions. This has happened a month or more ago >while system upgrade though there was not such problem before. And >it is obvious it is not space problem, because nothing changed there, >and EFI partition is used for 25% only. Hi Vladmimir, It's quite likely not a problem with the ESP on /boot/efi, but maybe a problem with the variable storage space on your computer. What make and model are you using? I'm also curious about the command line you're using. I'd expect to see something more like: efibootmgr -c -L debian -l \EFI\debian\grubx64.efi (maybe along with some other options). grub-install -v will show you exactly what commands grub is trying to use. -- Steve McIntyre, Cambridge, UK.st...@einval.com "I suspect most samba developers are already technically insane... Of course, since many of them are Australians, you can't tell." -- Linus Torvalds
Bug#845023: efibootmgr: Could not prepare Boot variable: No space left on device
Package: efibootmgr Version: 14-1 Severity: critical Tags: upstream Justification: breaks the whole system Dear Maintainer, The error in subject is issued by the command: efibootmgr -c -L Debian -l /boot/grub/x86_64-efi/grub.efi and this makes system unbootable. I have found a lot of reports about this problem, but no solutions. This has happened a month or more ago while system upgrade though there was not such problem before. And it is obvious it is not space problem, because nothing changed there, and EFI partition is used for 25% only. -- System Information: Debian Release: stretch/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) Versions of packages efibootmgr depends on: ii libc62.24-5 ii libefiboot1 30-1 ii libefivar1 30-1 ii libpopt0 1.16-10 efibootmgr recommends no packages. efibootmgr suggests no packages. -- no debconf information