1 |
On Fri, Dec 9, 2022 at 4:07 AM Arve Barsnes <arve.barsnes@×××××.com> wrote: |
2 |
> |
3 |
> On Fri, 9 Dec 2022 at 11:55, Michael <confabulate@××××××××.com> wrote: |
4 |
> > To check the GRUB version of the second OS without booting into it, you |
5 |
can |
6 |
> > grep for grub in its /var/log/emerge.log |
7 |
> |
8 |
> Or see what version is named in the /usr/share/doc/grub-2.?? folder name. |
9 |
> |
10 |
> On the other hand, if the question is *really* about knowing if |
11 |
> grub-install has been run on one of the machines, I don't know if |
12 |
> there is a way. Probably look at change dates on the files in |
13 |
> /boot/grub/? |
14 |
> |
15 |
> Regards, |
16 |
> Arve |
17 |
|
18 |
Thanks to both of you for your responses. I appreciate them, although I |
19 |
don't think they get as far down in the weeds as I was wondering about. |
20 |
|
21 |
My understanding of the boot loader - and maybe I'm using the wrong |
22 |
terminology so if I am someone please correct me - is that at the start |
23 |
of boot BIOS tells the processor to read some part of the disk and it is |
24 |
the code read there that gets the whole process kicked off and |
25 |
out of BIOS's control. |
26 |
|
27 |
I'm wondering about that first bit of code being written by installation |
28 |
#2's update into the initial section of installation #1's disk. |
29 |
|
30 |
Rethink the picture a bit and make installation #1 Windows and |
31 |
installation #2 Linux. Assume that after updating each install, and |
32 |
further assume both installs made some very minor change to their |
33 |
own first bits of code on the disk, and assume everything still |
34 |
boots correctly, BUT assume that one of the updates actually |
35 |
wrote into the other install's initial boot code and replaced it with |
36 |
their own because it was confused about which disk it was |
37 |
supposed to put this on. How would I be able to determine that |
38 |
this happened? |
39 |
|
40 |
It's not totally a thought experiment. One machine I have which |
41 |
is dual boot recently complained that the original disk grub was |
42 |
installed on had changed when in fact there hadn't been any |
43 |
hardware changes and I had to carefully figure out how to |
44 |
answer a couple of questions. After the fact I started to wonder |
45 |
about this edge case. |
46 |
|
47 |
I think it comes down to reading what's on the disk with a |
48 |
hex editor possibly but I know nothing about what to expect |
49 |
there. |
50 |
|
51 |
Thanks, |
52 |
Mark |