Joined: 15 Jul 2011
|Posted: Sat Nov 01, 2014 8:17 pm Post subject: efibootmgr : Failed to write variable: No space left on dev
Not sure where to post this but just wanted to put in somewhere so if someone runs into the same problem they can find the fix fast.
I had setup the EFI-STUB correctly as I have in the past many times howeever when I went to add a boot entry in the UEFI menu (not bootloader) it insisted there wasn't enough room.
Now I knew for 100% sure there was and the problem was in the NVRAM or something similar in this case you can fix it through "pstore".
If you're getting this error:
|efibootmgr -c -d /dev/sda -p 1 -L Gentoo -l "\efi\boot\bootx64.efi"
Failed to write variable: No space left on device
Be sure to check the /sys/fs/pstore isn't filled up with dmesg logs something like dmesg-1945845557770 if so delete them then try to create the boot entry then.
(Note: Might be a good idea to cat at least one of the logs make sure it isn't something currently a problem rather than a past problem from an older install)
You can check by mounting the pstore filesystem.
|mount -t pstore /sys/fs/pstore /sys/fs/pstore |
You may have to make sure you set the correct kernel options to allow you to mount it I'm unsure of this but I would say yes someone else knowledgeable can confirm so or I'm full of it lol.
Kernel option for /sys/fs/pstore
Hope this helps some people.