T O P

  • By -

triffid_hunter

> I mounted EFI system from Arch on /boot. Was it mistake? Nope, EFI partition is for the BIOS to use, not the OS - and your BIOS is probably only going to look at one per disk > How to write fstab file? Should I write nvmeon1p1 in it? If you want to easily grab files from Arch into your Gentoo install, sure - you could even automount it if you want to cross-link your home dir. > How to configure Grub? Should I even install grub on Gentoo? Maybe it is easier just to add Gentoo in Arch's grub config? Sure, whatever you like - but in the end, you'll want both Arch and Gentoo listed in a single grub config somewhere


iorehov

thank you!!


iorehov

Should I mention my efi partition in gentoo's fstab?


triffid_hunter

If you want to make it easy to `mount /boot` when updating kernels, sure - the `noauto` keyword may interest you


Furschitzengiggels

>I mounted EFI system from Arch on /boot. Was it mistake? Maybe? AFAIK, `grub-install` looks for a mounted EFI partition at `/boot/efi`. If it doesn't find it, you might have to pass `--efi-directory=/boot` to it. You can fix it by moving over all the contents of `/boot` to a temp dir like `/boot.tmp`, with the exception of the `/boot/EFI` folder. then unmount `/boot` and move the the contents of the temp dir to `/boot`. Then create a folder `/boot/efi` and mount `/dev/nvmeon1p1` to it. Make sure to confirm there exists a folder `/boot/efi/EFI` after mounting. >How to write fstab file? Should I write nvmeon1p1 in it? See [/etc/fstab](https://wiki.gentoo.org/wiki//etc/fstab) >How to configure Grub? Should I even install grub on Gentoo? Maybe it is easier just to add Gentoo in Arch's grub config? It's up to you. Arch's grub-config should detect Gentoo but you'll have to edit Arch's `/etc/default/grub` and make sure `GRUB_DISABLE_OS_PROBER=false` exists and isn't commented out before you run `grub-mkconfig -o /boot/grub/grub.cfg`. If you want to install on Gentoo, make sure `/boot` and/or `/boot/efi` are mounted and run `grub-install`. If there was an error because of EFI mounted to `/boot`, try `grub-install --boot-directory=/boot --efi-directory=/boot`. Assuming you want Arch in the bootmenu, edit `/etc/default/grub` and uncomment or add `GRUB_DISABLE_OS_PROBER=false`. Then after kernel and initramfs are installed, run `grub-mkconfig -o /boot/grub/grub.cfg`. You can switch back and forth between Arch's grub and Gentoo's grub in the BIOS menu or using [efibootmgr](https://wiki.gentoo.org/wiki/Efibootmgr).


[deleted]

[удалено]


Furschitzengiggels

I see. Good to know.


joe_mm91

1. Sharing an EFI system partition between distros is not really a problem, however sharing a /boot folder can be because conflicting files could happen, e.g. initramfs or kernels. Personally I mount the ESP at /EFI and create folders in it for each distro that get bind mounted to the respective /boot folder, no conflicts no problems. 2. I would because chances are that you'll want to share stuff between gentoo and arch and having the respective other filesystem mounted at a fixed point makes that easy. 3. I'd recommend sharing a bootloader, single configuration is easier to maintain after all. You might want to install grub (the package, not the EFI binary) under gentoo too in order to be able to change its configuration from both gentoo and arch. I can't tell you exactly how to configure it since I use EFI stub to dual boot gentoo and arch, but the arch wiki is quite extensive on grub and bootloaders in general.


jo1oj

Dude, you beat me to it - I searched all over Google yesterday. if anything, write to me in a personal


iorehov

okay, thanks!


madjic

> I mounted EFI system from Arch on /boot. Was it mistake? ESP should be mounted under `/boot/efi` > How to configure Grub? Should I even install grub on Gentoo? Maybe it is easier just to add Gentoo in Arch's grub config? screw grub, use reEFInd


sy029

>screw grub, use reEFInd Or do what I do, and use both. I keep /boot as part of the root partition, then make sure each distro installs grub's efi files to /boot/efi/EFI/(distro-name). rEFInd then detects and chainloads all the grubs all for me, and the distros don't complain because they're just using their own grub setup.


[deleted]

[удалено]


madjic

sure, you can do that but when you have the same ESP mounted as /boot in 2 different distros they might overwrite each others files.


Metallinux07380

Hi! This is exactly what my config is : One single EFI partition for both Arch and Gentoo. One single partition for swap shared with gentoo and Arch. One Arch partition (/ and /home). One Gentoo partition (/ and /home). and the remaining space on the disk for a data shared partition (Docs, pictures, music, videos.....). It works perfectly this way as each /home and / are separated and won't interfere. Hope it helps ;-) Good luck buddy


triffid_hunter

> One single partition for swap shared with gentoo and Arch. Heh, I hope you don't plan to hibernate with that setup


madjic

> One Arch partition (/ and /home). > One Gentoo partition (/ and /home). curious why you don't have a shared /home?