public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to set up drive with many Linux distros?
@ 2024-02-22 19:17 Grant Edwards
  2024-02-22 21:25 ` Wol
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Grant Edwards @ 2024-02-22 19:17 UTC (permalink / raw
  To: gentoo-user

For many years, I've used a hard drive on which I have 8-10 Linux
distros installed -- each in a separate (single) partition.

There is also a single swap partition (used by all of the different
Linux installations).

There is also a small partition devoted only to the "master" instance
of Grub that lives in the MBR and the space between the MBR and the
first partition (the drive uses a DOS disklabel). That master instance
of Grub has a menu which contains entries which "chainload" each of
the other partitions.

For many years, this worked great. All of the various distro
installers offered the option of installing the bootloader in the MBR
(e.g. /dev/sda) or in a partition (e.g /dev/sdaN).  I would tell the
installer to install the bootloader in the root partition, and
everything "just worked".

However, the choice to install bootloaders in partitions instead of
the MBR has been removed from most (all?) of the common installers.
This forces me to jump through hoops when installing a new Linux
distro:

 1. Back up the MBR and gap between the MBR and the first partition.

 2. Let the installer install it's bootloader (seems it's always grub
    these days) in the MBR.

 3. Boot into the newly installed Linux.

 4. Manually install grub in the root partition (e.g. /dev/sdaN) using
    the --force option to tell grub to use blocklists to find it's
    files.

 5. Find those grub files and lock them so they can't be moved.

 6. Restore the MBR/gap backup from step 1.

It seems like there should be a better way to do this.  One might hope
that UEFI offers a solution to this problem. Google has found me
others asking the same question but no real answers.

Is there an easier way to do this?

--
Grant





^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2024-03-10 18:35 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-22 19:17 [gentoo-user] How to set up drive with many Linux distros? Grant Edwards
2024-02-22 21:25 ` Wol
2024-02-22 21:45   ` [gentoo-user] " Grant Edwards
2024-02-22 22:58     ` Wol
2024-02-23  0:28       ` Grant Edwards
2024-02-23  6:16         ` Wojciech Kuzyszyn
2024-02-23 15:49           ` Grant Edwards
2024-02-23 12:06         ` Michael
2024-02-23 16:04           ` Grant Edwards
2024-02-23 17:05         ` Wols Lists
2024-02-23 18:58           ` Grant Edwards
2024-02-23 19:11             ` Mark Knecht
2024-02-23 19:51               ` Grant Edwards
2024-02-23 20:03                 ` Mark Knecht
2024-02-23 21:14                   ` Grant Edwards
2024-02-26 11:57 ` [gentoo-user] " gentoo-user
2024-02-26 17:10   ` eric
2024-02-26 18:01     ` [gentoo-user] " Grant Edwards
2024-02-26 18:12       ` eric
2024-02-26 20:51         ` Grant Edwards
2024-02-26 21:44           ` Wol
2024-02-26 23:44             ` Grant Edwards
2024-02-27  0:12               ` Mark Knecht
2024-02-27 11:40                 ` Peter Humphrey
2024-03-08 23:24 ` Grant Edwards
2024-03-10 12:58   ` Michael
2024-03-10 18:35     ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox