Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #245419

Re: dual booting, was Re: Stupid question

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: dual booting, was Re: Stupid question
Date 2022-02-15 17:20 +0100
Message-ID <DR8Ix-20ug-5@gated-at.bofh.it> (permalink)
References <DPWzL-1gLK-7@gated-at.bofh.it> <DQqxP-1zfn-3@gated-at.bofh.it> <DQrNf-1zVK-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 13 Feb 2022 at 19:26:51 (+0100), Andrei POPESCU wrote:
> On Du, 13 feb 22, 11:01:48, David Wright wrote:
> > 
> > Typically, one would have a primary, "master" linux system which would
> > be used to write an MBR pointing to itself. The other, legacy system
> > would have its grub.cfg kept up-to-date, but would never touch the
> > MBR by running grub-install.
> 
> Another option (at least with MBR, didn't try this with GPT) is to tell 
> the Installer to install GRUB in the partition instead of the MBR, and 
> then manually install another GRUB instance to the MBR with a 
> handcrafted config that is chain-loading the GRUBs in the partitions.
> 
> This way each system's GRUB config is nicely following kernel upgrades 
> automatically.

There are implications in doing that. If you install Grub on a logical
partition, then some sources suggest that you get the space for its
core.img after the Extended Boot Record (EBR), but I don't see any
firm evidence for that, particularly if the partitioning was done by
non-Windows partitioners, and compounded by non-CHS disks.

I can't examine a real example as I haven't created a logical
partition since the last millennium.

As for primary partitions after the first, there's no BR for there
to be a gap after. So the core.img for Grub has to be placed in the
filesystem itself, yet it's addressed by block addresses, which are
not known to nor respected by normal filesystem utilities, and which
therefore means they can get moved.

As for GPT disks, where you have to use a BIOS Boot partition for
Grub's core.img, there's no way to manage that space other than to
juggle multiple such partitions so that each Grub instance is forced
to use a different BIOS Boot partition instance.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Stupid question Hans <hans.ullrich@loop.de> - 2022-02-12 10:10 +0100
  Re: Stupid question harryweaver@tutanota.com - 2022-02-12 11:40 +0100
  Re: Stupid question rhkramer@gmail.com - 2022-02-12 15:10 +0100
    Misremembered (was: Re: Stupid question) rhkramer@gmail.com - 2022-02-14 16:10 +0100
      Re: Misremembered (was: Re: Stupid question) Bijan Soleymani <bijan@psq.com> - 2022-02-14 16:20 +0100
        Re: Misremembered (was: Re: Stupid question) David Wright <deblis@lionunicorn.co.uk> - 2022-02-15 00:30 +0100
          Re: Misremembered (was: Re: Stupid question) David <bouncingcats@gmail.com> - 2022-02-15 02:30 +0100
            Re: Misremembered (was: Re: Stupid question) Curt <curty@free.fr> - 2022-02-15 12:40 +0100
          Re: Misremembered (was: Re: Stupid question) Andrei POPESCU <andreimpopescu@gmail.com> - 2022-02-15 19:30 +0100
            Re: Misremembered John Hasler <john@sugarbit.com> - 2022-02-15 19:50 +0100
              Re: Misremembered Andrei POPESCU <andreimpopescu@gmail.com> - 2022-02-15 20:20 +0100
                Re: Misremembered John Hasler <john@sugarbit.com> - 2022-02-15 21:50 +0100
                Re: Misremembered Emanuel Berg <moasenwood@zoho.eu> - 2022-02-16 00:10 +0100
                Re: Misremembered Stefan Monnier <monnier@iro.umontreal.ca> - 2022-02-16 00:10 +0100
                Re: Misremembered gene heskett <gheskett@shentel.net> - 2022-02-16 00:50 +0100
                Re: Misremembered "Andrew M.A. Cater" <amacater@einval.com> - 2022-02-16 10:50 +0100
                Re: Misremembered Cindy Sue Causey <butterflybytes@gmail.com> - 2022-02-16 11:40 +0100
            Re: Misremembered Stefan Monnier <monnier@iro.umontreal.ca> - 2022-02-15 20:40 +0100
            Re: Misremembered (was: Re: Stupid question) David Wright <deblis@lionunicorn.co.uk> - 2022-02-16 21:40 +0100
  Re: Stupid question David Christensen <dpchrist@holgerdanske.com> - 2022-02-12 19:30 +0100
  Re: Stupid question Chuck Zmudzinski <brchuckz@netscape.net> - 2022-02-13 08:50 +0100
    Re: Stupid question Andrei POPESCU <andreimpopescu@gmail.com> - 2022-02-13 17:30 +0100
      Re: Stupid question "Thomas Schmitt" <scdbackup@gmx.net> - 2022-02-13 18:30 +0100
      Re: Stupid question Andrei POPESCU <andreimpopescu@gmail.com> - 2022-02-14 22:00 +0100
        Re: Stupid question David <bouncingcats@gmail.com> - 2022-02-15 02:10 +0100
          Re: Stupid question Andrei POPESCU <andreimpopescu@gmail.com> - 2022-02-15 19:40 +0100
      Re: Booting with Grub, was Re: Stupid question David Wright <deblis@lionunicorn.co.uk> - 2022-02-15 00:20 +0100
  Re: dual booting, was Re: Stupid question David Wright <deblis@lionunicorn.co.uk> - 2022-02-13 18:10 +0100
    Re: dual booting, was Re: Stupid question Hans <hans.ullrich@loop.de> - 2022-02-13 19:00 +0100
      Re: dual booting, was Re: Stupid question David Wright <deblis@lionunicorn.co.uk> - 2022-02-15 17:20 +0100
    Re: dual booting, was Re: Stupid question Andrei POPESCU <andreimpopescu@gmail.com> - 2022-02-13 19:30 +0100
      Re: dual booting, was Re: Stupid question David <bouncingcats@gmail.com> - 2022-02-14 00:20 +0100
        Re: dual booting, was Re: Stupid question David Wright <deblis@lionunicorn.co.uk> - 2022-02-15 17:20 +0100
      Re: dual booting, was Re: Stupid question David Wright <deblis@lionunicorn.co.uk> - 2022-02-15 17:20 +0100

csiph-web