Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual booting Gentoo with Void linux ?
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
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 210
Location: Toronto, Canada

PostPosted: Sat Jun 13, 2020 4:01 am    Post subject: Dual booting Gentoo with Void linux ? Reply with quote

My laptop has dual storage /dev/sda and /dev/sdb ...

I want to install Gentoo on /dev/sda and Void on /dev/sdb

Should I create an EFI partitions for each disk ... or should I have only one EFI partition and share it between Gentoo and void ?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3422

PostPosted: Sat Jun 13, 2020 6:19 am    Post subject: Re: Dual booting Gentoo with Void linux ? Reply with quote

One per disk should be fine. Then you could select from the BIOS boot menu.
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 564
Location: Germany

PostPosted: Sat Jun 13, 2020 8:19 am    Post subject: Re: Dual booting Gentoo with Void linux ? Reply with quote

charles17 wrote:
One per disk should be fine. Then you could select from the BIOS boot menu.

this is a nice solution if you don't want to use a boot loader which can give you some startup options if you need them. https://wiki.gentoo.org/wiki/Bootloader
_________________
My personal space
Back to top
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 210
Location: Toronto, Canada

PostPosted: Sat Jun 13, 2020 1:37 pm    Post subject: Re: Dual booting Gentoo with Void linux ? Reply with quote

charles17 wrote:
One per disk should be fine. Then you could select from the BIOS boot menu.



I want both Gentoo and void to be on the grub menu at boot....I don't want to go into BIOS settings...
Back to top
View user's profile Send private message
GDH-gentoo
Guru
Guru


Joined: 20 Jul 2019
Posts: 413
Location: South America

PostPosted: Sat Jun 13, 2020 4:17 pm    Post subject: Re: Dual booting Gentoo with Void linux ? Reply with quote

LegionOfHell wrote:
I want both Gentoo and void to be on the grub menu at boot....I don't want to go into BIOS settings...

GRUB2 should be able to handle this setup quite fine, but there are caveats.

Essentially, for a UEFI install for example, you'd create an EFI system partition (ESP) on one of both disks, you'd install GRUB's EFI executable (grubx64.efi) in that ESP, you'd install GRUB's support files (grub.cfg, the modules directory, etc.) on that same disk, you'd do a one-time configuration of the UEFI firmware, instructing it to run GRUB's EFI executable by default (with the firmware's user interface or efibootmgr, if the firmware is of decent quality), and you'd create a suitable grub.cfg file. GRUB's search --fs-uuid command should be able to find the kernel and initramfs, if there is any, of the OS that resides on the other disk, as long as the UEFI firmware sees both disks.

However:
  • You might need a manual or semi-manual configuration of GRUB, if the kernel command lines for Gentoo and Void differ enough.
  • More importantly, you have to find out how invasive Void is with respect to bootloader setup. On Gentoo, grub-install, grub-mkconfig and efibootmgr are never called automatically. Other distributions, for 'user friendliness' reasons, might call one or more under the hood by default, especially for bootloader or kernel upgrades. And that will trash you custom GRUB install. The most likely consequence being that Gentoo does not boot anymore, and you have to fix at least grub.cfg. You'd have to study what Void does, and how to override it if possible and necessary.
I don't know Void, so I can't be more specific on how to set this up.
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