Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New Gentoo install, Boot variable: read-only file system
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
enrico68
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2016
Posts: 130

PostPosted: Tue Dec 26, 2017 1:42 pm    Post subject: New Gentoo install, Boot variable: read-only file system Reply with quote

Hello, after having some fun installing Gentoo, I have the following message upon installin Grub: 2

Code:
Installing for x86_64-efi platform.
Could not prepare Boot variable: Read-only file system
Installation finished. No error reported.
.

I read some articles and it seems something related to efivars, but it is not clear to me. In a post, someone suggested to run:

Code:
mount -o remount,rw /sys/firmware/efi/efivars
.

Is it the right solution?

I am working in chroot, using the systemrescuecd in UEFI, here is my /etc/fstab:

Code:
LABEL=rootfs            /               ext4            noatime         0 1
UUID=5BD4-FB29          /boot           vfat            defaults,noatime                0 2
LABEL=swap              none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom   auto            ro,user         0 0
/dev/sde1               /mnt/usb        auto            noatime,users   0 0


Enrico
Back to top
View user's profile Send private message
enrico68
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2016
Posts: 130

PostPosted: Tue Dec 26, 2017 2:00 pm    Post subject: Reply with quote

Well,

after checking on my mount, efivars was in ro mode, for whatever reason. After launching the command:

Code:
mount -o remount,rw /sys/firmware/efi/efivars


the grub install is now ok, with no errors reported.

Enrico
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Thu Dec 28, 2017 7:13 pm    Post subject: Reply with quote

Your service manager (openrc or otherwise) mounts it ro for safety reasons. There have been a few reports of extremely braindamaged UEFI implementors where an accidental rm -r into efivarfs bricked the motherboard. Under normal use it shouldn't be a problem, but when things like that might happen it's better to be safe.
Back to top
View user's profile Send private message
enrico68
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2016
Posts: 130

PostPosted: Thu Dec 28, 2017 10:30 pm    Post subject: Reply with quote

Is it an issue if I leave efivars in ro mode? After running the remount command, it will just stay happily as ro, and won't change into rw anymore, for whatever weird reason...

Code:
efivarfs on /sys/firmware/efi/efivars type efivarfs (ro,relatime)


and when installing grub I get the message : could not prepare Boot variable...is it something that has to be fixed, and if yes, then how??
Back to top
View user's profile Send private message
enrico68
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2016
Posts: 130

PostPosted: Thu Dec 28, 2017 11:12 pm    Post subject: Reply with quote

It did take the rw command, after a few trials...go figure....
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