Forums

Skip to content

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

Can't remount efivarfs as rw

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
12 posts • Page 1 of 1
Author
Message
pattydaone
n00b
n00b
Posts: 6
Joined: Sun Jan 04, 2026 11:59 pm

Can't remount efivarfs as rw

  • Quote

Post by pattydaone » Mon Jan 05, 2026 12:11 am

I'm currently trying to install Gentoo on an m1 mac mini. At the moment, I'm on the "install bootloader" step, which I have naturally chosen grub.
Upon attempting to run

Code: Select all

grub-install
, I get an error complaining about input/output. No big deal, running

Code: Select all

mount | grep efivars
shows it's mounted as ro.
The problem is, when I try to run the command listed on this page: https://wiki.gentoo.org/wiki/Efibootmgr#Configuration

Code: Select all

mount -o remount,rw -t efivarfs efivarfs /sys/firmware/efi/efivars
it errors out with

Code: Select all

mount: /sys/firmware/efi/efivars: mount point not mounted or bad option.
Because "mount | grep efivars" shows that, indeed, efivarfs is mounted on that path, I supposed it was an option issue. So I did:

Code: Select all

umount /sys/firmware/efi/efivars 
mount -o rw -t efivarfs efivarfs /sys/firmware/efi/efivars
But, even though I set rw as an option, it seemed to have ignored that and mounted it with ro,relatime as the options.
I'm kind of at a loss, and am really not sure what to do. I've never installed gentoo on anything before, though I am not stranger to linux, so I don't think it's unlikely I've missed something earlier on in the install. But generally, I tried to follow the install guide on the wiki up until "kernel configuration" to a t, where I moved to the Project:Asahi guide and started on that.

Any help would be appreciated, let me know if more information is needed.
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Mon Jan 05, 2026 9:51 am

Why is efivars mounted ro?
Are you using a live cd?
Try remounting rw first in the livecd and then inside chroot.
Since the chroot bind mounts host /sys.
:)
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2186
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Mon Jan 05, 2026 11:54 am

alamahant,

You were right on any general machines, but OP use Mac Mini. And not able to mount read-write is OP's concern.

pattydaone,

I suspect it is because your machine is an Apple machine which tend to protect their own stuff. so maybe necessary UEFI service was not implemented(or it is imcomplete) in the firmware therefor Linux can only mount it read-only.
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4706
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Mon Jan 05, 2026 12:15 pm

Hi and welcome.
I run Gentoo on M2 MacBook Air. I hope I can help.

Have you followed this guide?

What does command

Code: Select all

efibootmgr
... output?
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
pattydaone
n00b
n00b
Posts: 6
Joined: Sun Jan 04, 2026 11:59 pm

  • Quote

Post by pattydaone » Mon Jan 05, 2026 5:31 pm

Have you followed this guide?
I have. I suspect I've found the problem, though I'm not absolutely certain yet.
The guide tells you to "follow the Gentoo Handbook for amd64, up until the section for kernel installation" but I think this is inaccurate.
One of the things you're directed to do in the handbook is create an EFI partition on disk, but I'm pretty sure you're meant to skip that and use the Asahi EFI partition that you get when you install the UEFI (m1n1 + u-boot) environment all the way at the beginning.
I think this is the case because of the Asahi Gentoo Support Script provided midway through the Project:Asahi guide; if you inspect the script, it has a check for /boot/vendorfw directory, and if it fails, errors out telling you to mount the Asahi ESP to /boot. If it exists, it installs grub to that partition.
I'm not 100% certain this is the problem, my system still doesn't boot (because I haven't fully set it up), but grub installed and configured without error.

May I ask if this is also where you put your bootloader? Or do you have it on a different EFI partition?
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4706
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Mon Jan 05, 2026 6:33 pm

Code: Select all

M2-Air ~ # tree -L 2 /boot/
/boot/
|-- EFI
|   |-- BOOT
|   `-- gentoo
|-- System.map-6.14.2-p1-asahi-dist
|-- System.map-6.14.4-p1-asahi-dist
|-- System.map-6.14.4-p1-asahi-dist.old
|-- System.map-6.15.10-p3-asahi-dist
|-- System.map-6.17.7-p2-asahi-dist
|-- asahi
|   |-- AdminUserRecoveryInfo.plist
|   |-- BuildManifest.plist
|   |-- RestoreVersion.plist
|   |-- SystemVersion.plist
|   |-- all_firmware.tar.gz
|   |-- installer.log
|   |-- kernelcache.release.mac14g
|   `-- stub_info.json
|-- config-6.14.2-p1-asahi-dist
|-- config-6.14.4-p1-asahi-dist
|-- config-6.14.4-p1-asahi-dist.old
|-- config-6.15.10-p3-asahi-dist
|-- config-6.17.7-p2-asahi-dist
|-- dtbs
|   |-- 6.10.5-p1-asahi-dist
|   |-- 6.10.7-p2-asahi-dist
|   `-- 6.10.9-p3-asahi-dist
|-- grub
|   |-- arm64-efi
|   |-- boot.cfg
|   |-- fonts
|   |-- grub.cfg
|   |-- grub.cfg.old
|   |-- grub.cfg~
|   |-- grubenv
|   |-- locale
|   |-- settings.cfg
|   `-- themes
|-- initramfs-6.14.2-p1-asahi-dist.img
|-- initramfs-6.14.4-p1-asahi-dist.img
|-- initramfs-6.14.4-p1-asahi-dist.img.old
|-- initramfs-6.15.10-p3-asahi-dist.img
|-- initramfs-6.17.7-p2-asahi-dist.img
|-- m1n1
|   |-- boot.bin
|   `-- boot.bin.old
|-- vendorfw
|   |-- firmware.cpio
|   |-- firmware.tar
|   |-- manifest.txt
|   `-- u-boot
|-- vmlinuz-6.14.2-p1-asahi-dist
|-- vmlinuz-6.14.4-p1-asahi-dist
|-- vmlinuz-6.14.4-p1-asahi-dist.old
|-- vmlinuz-6.15.10-p3-asahi-dist
`-- vmlinuz-6.17.7-p2-asahi-dist

17 directories, 39 files
I have put kernel, bootloader and all the other things in /boot. So I havent't bothered to make a separate EFI partition (ESP), thus /boot acts as my ESP also.
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
pattydaone
n00b
n00b
Posts: 6
Joined: Sun Jan 04, 2026 11:59 pm

  • Quote

Post by pattydaone » Mon Jan 05, 2026 8:02 pm

Zucca wrote:I have put kernel, bootloader and all the other things in /boot. So I havent't bothered to make a separate EFI partition (ESP), thus /boot acts as my ESP also.
I would suppose, then, that that's what you're supposed to do on these machines; I have just finished install and gotten mine to boot properly.

Do you think it would be appropriate to have the aforementioned wiki page updated to reflect this?
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4706
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Jan 06, 2026 4:59 pm

pattydaone wrote:I would suppose, then, that that's what you're supposed to do on these machines
Not really. This is Gentoo, you can setup your system however you like.
I think according to latest FHS*, /efi should be the actual ESP and /boot should contain files related to booting up the specific OS.

*) These seems to be no mentions of /efi in FHS...
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
pattydaone
n00b
n00b
Posts: 6
Joined: Sun Jan 04, 2026 11:59 pm

  • Quote

Post by pattydaone » Tue Jan 06, 2026 6:10 pm

I'll take your word for it. Though it still doesn't explain why I wasn't able to remount efivarfs as rw, there is a strong possibility that was through some other fault of mine (like I said, it was my first ever gentoo install...)
Nevertheless, I appreciate what assistance you gave.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2186
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Tue Jan 06, 2026 6:48 pm

pattydaone wrote:I'll take your word for it. Though it still doesn't explain why I wasn't able to remount efivarfs as rw, there is a strong possibility that was through some other fault of mine (like I said, it was my first ever gentoo install...)
Nevertheless, I appreciate what assistance you gave.
Thanks Zucca that point out for Mac hardware to boot linux it will require u-boot. I didn't know that.

However u-boot is something I know a little bit. u-boot when build to setup enable EFI and at runtime to boot OS with EFI service is usually only provide a read-only environment on EFI variables.

I am not sure how the Asahi build u-boot configuration so I don't want to said one way or the other. However I know it is possible to configure u-boot such that it will emulate a blob file on file system (u-boot internal storage) that allow OS write something to it. However it is not persist on reboot.

So if you experiencing the efivarfs can only be mount read-only is most likely a u-boot thingy, it is nothing wrong with you Gentoo setup.
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4706
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Jan 06, 2026 7:45 pm

To be frank, I don't currently remember which was the order... but I think it's
  • m1n1
  • u-boot
  • efi boot manager
...

I read the Apple silicon boot process explanation once or twice... It's complex... mostly because forced security IIRC.
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Tue Jan 06, 2026 10:41 pm

https://zakk.au/posts/gentoo-m-series-mac-arm64/

no idea about M1 - maybe the above will help a little.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
Post Reply

12 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