From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Duel boot - How to verify boot loader updates?
Date: Sat, 10 Dec 2022 11:21:37 +0000 [thread overview]
Message-ID: <2323095.hKElGaqSPk@dell_xps> (raw)
In-Reply-To: <CAK2H+ecbwqDgoUCQfAxysrscRWVJywPyQm7bwjEkN2b0KSo4cw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2999 bytes --]
On Friday, 9 December 2022 18:39:33 GMT Mark Knecht wrote:
> On Fri, Dec 9, 2022 at 10:57 AM Michael <confabulate@kintzios.com> wrote:
> > On Friday, 9 December 2022 17:17:24 GMT Mark Knecht wrote:
> <SNIP>
>
> > > It's not totally a thought experiment. One machine I have which
> > > is dual boot recently complained that the original disk grub was
> > > installed on had changed when in fact there hadn't been any
> > > hardware changes and I had to carefully figure out how to
> > > answer a couple of questions. After the fact I started to wonder
> > > about this edge case.
> > >
> > > I think it comes down to reading what's on the disk with a
> > > hex editor possibly but I know nothing about what to expect
> > > there.
> > >
> > > Thanks,
> > > Mark
> >
> > Before I venture a potentially wrong answer, could you please clarify if
> > we are talking about a UEFI MoBo, or a legacy BIOS MoBo.
>
> The specific machine where this happened is UEFI.
>
> Thanks
Without more information on the errors GRUB produced I can't comment on the
specific experience you had, other than to say you can install GRUB on a
different disk/partition than the one the OS is on. Perhaps GRUB complained
about being updated from a different OS used for its installation?
Anyway, let's briefly clarify the BIOS startup process you mentioned, if only
to explain why I don't think this is related to the errors you mentioned.
On legacy boot systems the BIOS code is quite limited in what it can do. It
just jumps to the 1st disk, first sector (LBA 0) and runs what it finds there.
This era of technology used the MBR disk partitioning scheme and the first
sector contained the boot loader code as well as the disk partition table.
Modern UEFI systems use more capable EFI firmware (a.k.a. BIOS) and normally a
GPT formatted disk. This modern system does not require any boot loader code
to be written in LBA 0. The boot loader code is part of the UEFI firmware
itself and is capable of loading and executing EFI compatible 'applications'
stored in the FAT 32 formatted EFI/ partition (ESP) on the first disk. GRUB's
EFI executable 'grubx64.efi' stored in the ESP on the first disk is loaded and
executed by the MoBo's UEFI firmware.
If I were to hazard a guess, the GRUB error messages you received are not
related to the BIOS init sequence, but the GRUB configuration. Probably some
mismatch between the filesystem UUID, GRUB's root prefix and perhaps the
PARTUUID between the current OS and the one used to clone/install GRUB in the
OS at the beginning. You could try to decipher this manually, by running
blkid, to list your partitions and their respective UUID and PARTUUID. Then
editing grub.cfg and/or any files if necessary under /etc/default/
On the other hand, it would be easier to reinstall grub on the OS you are
currently booted into, with 'grub-install' followed by 'grub-mkconfig' to
update its grub.cfg file. This should straighten out any discrepancies.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2022-12-10 11:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 20:55 [gentoo-user] Duel boot - How to verify boot loader updates? Mark Knecht
2022-12-09 10:54 ` Michael
2022-12-09 11:06 ` Arve Barsnes
2022-12-09 17:17 ` Mark Knecht
2022-12-09 17:56 ` Michael
2022-12-09 18:39 ` Mark Knecht
2022-12-10 11:21 ` Michael [this message]
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=2323095.hKElGaqSPk@dell_xps \
--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