From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] How to set up drive with many Linux distros?
Date: Thu, 22 Feb 2024 19:17:52 -0000 (UTC) [thread overview]
Message-ID: <ur86l0$uo2$1@ciao.gmane.io> (raw)
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
next reply other threads:[~2024-02-22 19:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-22 19:17 Grant Edwards [this message]
2024-02-22 21:25 ` [gentoo-user] How to set up drive with many Linux distros? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ur86l0$uo2$1@ciao.gmane.io' \
--to=grant.b.edwards@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox