Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[SOLVED] efibootmgr -Could not delete variable: Read-only

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
tuggbuss
Apprentice
Apprentice
User avatar
Posts: 222
Joined: Mon Mar 20, 2017 1:18 pm

[SOLVED] efibootmgr -Could not delete variable: Read-only

  • Quote

Post by tuggbuss » Thu Sep 14, 2017 6:25 pm

It's been a while installing Gentoo, but tried yesterday, and restarted today.
Following the Handbook for a EFI/GPT system and everything works great until installing GRUB2

Code: Select all

(chroot) sysresccd ~ # grub-install --target=x86_64-efi --efi-directory=/boot
Installing for x86_64-efi platform.
Could not delete variable: Read-only file system
efibootmgr: ** Warning ** : Boot0003 has same label gentoo
Could not prepare Boot variable: Read-only file system
Installation finished. No error reported.
Boot is mounted, my fstab

Code: Select all

/dev/nvme0n1p1          /boot           vfat            rw,defaults,noatime     1 2
/dev/nvme0n1p2          none            swap            sw                      0 0
/dev/nvme0n1p3          /               ext4            rw,noatime              0 1
/dev/nvme0n1p4          /home           ext4            rw,defaults,noatime     0 2
and mount

Code: Select all

(chroot) sysresccd /boot # mount
/dev/nvme0n1p3 on / type ext4 (rw,relatime,data=ordered)
/dev/nvme0n1p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/nvme0n1p4 on /home type ext4 (rw,relatime,data=ordered)
/proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (ro,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=8231582,mode=755)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
I have disabled secure boot in UEFI on my Motherboard.
Have i missed something fundamental?

E:
As a sanity check i checked my /boot with tree

Code: Select all

(chroot) sysresccd ~ # tree -L 2 /boot
/boot
├── EFI
│   └── gentoo
├── System.map-4.12.12-gentoo
├── config-4.12.12-gentoo
├── grub
│   ├── fonts
│   ├── grubenv
│   ├── locale
│   ├── themes
│   └── x86_64-efi
└── vmlinuz-4.12.12-gentoo
It seems pretty messy?


Well, sometimes the easiest solution is applicable. I remounted efivars with

Code: Select all

mount -o remount,rw /sys/firmware/efi/efivars
and the same with /boot and tadaa.
Sorry for the buzz.

See you soon again.
Top
jonathonp
n00b
n00b
Posts: 8
Joined: Wed Feb 28, 2018 3:34 am

Re: [SOLVED] efibootmgr -Could not delete variable: Read-onl

  • Quote

Post by jonathonp » Mon Apr 16, 2018 9:51 am

Code: Select all

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

Thanks for posting the solution.
Top
skellr
Veteran
Veteran
User avatar
Posts: 1037
Joined: Sat Jun 18, 2005 1:34 am
Location: The Village, Portmeirion

  • Quote

Post by skellr » Mon Apr 16, 2018 11:08 pm

What are you doing playing around with grub? Just wanted to kick systemd-boot to the curb for some new girl in town? 8O
Top
Post Reply

3 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic