Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
efibootmgr : Failed to write variable: No space left on dev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Acidphase
n00b
n00b


Joined: 15 Jul 2011
Posts: 24

PostPosted: Sat Nov 01, 2014 8:17 pm    Post subject: efibootmgr : Failed to write variable: No space left on dev Reply with quote

Hello people,

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:
Code:
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.
Code:
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
Code:
CONFIG_EFI_VARS_PSTORE


Hope this helps some people.
_________________
-Acidphase
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum