<br></div><div> Assume a machine with two separate M.2 SSDs. The M.2 devices are identical in size and from the same manufacturer. For the sake of discussion they are partitioned identically and they both have the same distro installed. One isstable, the other is bleeding edge. For simplicity there are no other disk drives involved in either installation. Both installs have the same boot loader, grub2 I guess, and both have configurations that boot themselves by default but offer the other
To check the GRUB version of the second OS without booting into it, you can grep for grub in its /var/log/emerge.log
Hi,
This is a bit of a conceptual question, simplified but based on a
machine I do own, from someone who knows very little about boot loader implementations. (I.e. - me) Thanks in advance for any pointers you can provide.
Assume a machine with two separate M.2 SSDs. The M.2 devices are
identical in size and from the same manufacturer. For the sake of
discussion they are partitioned identically and they both have the same distro installed. One is stable, the other is bleeding edge. For simplicity there are no other disk drives involved in either installation. Both
installs have the same boot loader, grub2 I guess, and both have configurations that boot themselves by default but offer the other drive as
a second option.
Assume the bleeding edge system (or the other - it doesn't matter to me) gets a grub2 update, and further assume the update is either automatic or done by someone other than yourself. Whoever did the updates 'tests' the machine by booting into both versions, and both versions are tested as default in BIOS so that no matter what everything appears to be working.
THE QUESTION: After the fact, if I wanted to look at the two
installations in detail, how would I determine that the grub update was
done to the installation doing the update and not done to the other
(nearly) identical installation?
Thanks in advance,
Mark
On Fri, Dec 9, 2022 at 4:07 AM Arve Barsnes <arve.barsnes@gmail.com> wrote:
On Fri, 9 Dec 2022 at 11:55, Michael <confabulate@kintzios.com> wrote:
To check the GRUB version of the second OS without booting into it, you
can
grep for grub in its /var/log/emerge.log
Or see what version is named in the /usr/share/doc/grub-2.?? folder name.
On the other hand, if the question is *really* about knowing if grub-install has been run on one of the machines, I don't know if
there is a way. Probably look at change dates on the files in
/boot/grub/?
Regards,
Arve
Thanks to both of you for your responses. I appreciate them, although I
don't think they get as far down in the weeds as I was wondering about.
My understanding of the boot loader - and maybe I'm using the wrong terminology so if I am someone please correct me - is that at the start
of boot BIOS tells the processor to read some part of the disk and it is
the code read there that gets the whole process kicked off and
out of BIOS's control.
I'm wondering about that first bit of code being written by installation
#2's update into the initial section of installation #1's disk.
Rethink the picture a bit and make installation #1 Windows and
installation #2 Linux. Assume that after updating each install, and
further assume both installs made some very minor change to their
own first bits of code on the disk, and assume everything still
boots correctly, BUT assume that one of the updates actually
wrote into the other install's initial boot code and replaced it with
their own because it was confused about which disk it was
supposed to put this on. How would I be able to determine that
this happened?
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
On Fri, 9 Dec 2022 at 11:55, Michael <confabulate@kintzios.com> wrote:can
To check the GRUB version of the second OS without booting into it, you
grep for grub in its /var/log/emerge.log
Or see what version is named in the /usr/share/doc/grub-2.?? folder name.
On the other hand, if the question is *really* about knowing if
grub-install has been run on one of the machines, I don't know if
there is a way. Probably look at change dates on the files in
/boot/grub/?
Regards,
Arve
<div>their own because it was confused about which disk it was </div><div>supposed to put this on. How would I be able to determine that</div><div>this happened?</div><div><br></div><div>It's not totally a thought experiment. One machine I havewhich </div><div>is dual boot recently complained that the original disk grub was </div><div>installed on had changed when in fact there hadn't been any </div><div>hardware changes and I had to carefully figure out how to </div><div>answer a
there.</div><div><br></div><div>Thanks,</div><div>Mark</div></div>
On Friday, 9 December 2022 17:17:24 GMT Mark Knecht wrote:<SNIP>
weIt'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
are talking about a UEFI MoBo, or a legacy BIOS MoBo.
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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (1 / 15) |
Uptime: | 159:51:45 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,056 |
Messages: | 6,416,491 |