public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: How to set up drive with many Linux distros?
Date: Sun, 10 Mar 2024 12:58:26 +0000	[thread overview]
Message-ID: <1882593.tdWV9SEqCh@rogueboard> (raw)
In-Reply-To: <usg6mi$vqp$1@ciao.gmane.io>

[-- Attachment #1: Type: text/plain, Size: 2247 bytes --]

On Friday, 8 March 2024 23:24:02 GMT Grant Edwards wrote:
> On 2024-02-22, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> > For many years, I've used a hard drive on which I have 8-10 Linux
> > distros installed -- each in a separate (single) partition.
> > 
> > [...]
> > 
> > Is there an easier way to do this?
> 
> After some additional studying of UEFI and boot managers like rEFInd,
> I decided that my current approach was still the easiest method. I did
> switch from DOS to GPT disklabel (I bricked my old drive tring to
> update the firmware, so I had to start over anyway).
> 
> In case anybody is interested in the gory details, I documented my
> scheme and the helper shell scripts at
> 
>   https://github.com/GrantEdwards/Linux-Multiboot


Thank you Grant for taking time to share your clear and well structured write 
up, what with helpful scripts and all!  Its easy to follow and should help 
others, hopefully before they discover belatedly many distro installers can 
mess up a multiboot scheme, if they don't step in to keep things in check.

Perhaps I'm picking up on semantics, but shouldn't this sentence:

"... The gap between the DOS disklabel and the first partition"

read:

"The gap between the MBR and the first partition"?

I'm saying this because the MBR in sector 0 contains the bootstrap code (446 
bytes), the partition table (a.k.a. DOS disklabel 4x16 bytes) and the boot 
sector signature (2 bytes).  On MBR partitioned disks the core.img is stored 
after the MBR, in sector 1 onward.

Your next paragraph pointed out something which I hadn't considered at any 
length.  Namely, the installation of GRUB's boot.img in a MBR or VBR also 
hardcodes in a block list format the location of the first sector where the 
core.img is stored and more importantly, the physical position of this sector 
can be altered both by COW fs (and by the wear levelling firmware of flash 
storage devices).

I had assumed both the COW fs and/or the flash controller will in both cases 
translate any physical data position to the logical layer and presented this 
to inquiring software.  Have you actually tried using btrfs as a distro's root 
fs to see if the VBR installed GRUB boot.img will ever lose access to the 
core.img?

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2024-03-10 12:58 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=1882593.tdWV9SEqCh@rogueboard \
    --to=confabulate@kintzios.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