On 28.12.2021 at 15:57, Grimble scribbled:
On 27/12/2021 18:00, David W. Hodgins wrote:
On Mon, 27 Dec 2021 11:23:58 -0500, Grimble
<[email protected]> wrote:
=20
SNIP
=20
The partition table layout has been changed from dos mbr format to
gpt format.
=20
With dos mbr format, grub stores it's boot loader starting in
sector 2 of track 0 (sector 1 contains the master boot record).
=20
With gpt, there is no room in the first track, so a empty partition
(not formatted, called the bios boot partition) is required for
grub to store it's loader.
=20
Either switch back to using the dos mbr partition table layout or
create the empty bios boot partition.
Note that the above is only relevant if the system boots up in legacy
BIOS mode. =20
If the system instead boots up in native UEFI mode, then the bios_grub partition is not needed, but then there must be an EFI system partition instead, of about 300 MiB in size (in order to be compliant with most installers), and formatted as vfat (FAT32). This partition must be
marked with the "esp" flag.
OK, created an empty partition (/dev/sda7 on my disk, parted calls it=20 grub2 core.img)
Installation completed but reboot landed me in grub rescue mode. A
file /boot/grub2/x86_64-efi/normal.mod
doesn't exist: very true, the directory x86_64-efi hasn't been
created. I notice on another Mageia8 installation normal.mod is
located in the sub-directory grub2/i386-pc.
Thought I could place normal.mod where grub could find it, but no:=20 "invalid arch-dependent ELF magic"
So why has boot loader installation created a different architecture=20
from precvious installation. Can I use Mageia rescue function to=20 re-install boot loader?
I am guessing that your system attempts to boots up in native UEFI mode
when booting from the internal drive but that you did the partitioning
from the live CD/USB in legacy BIOS mode. "x86_64-efi" is the GRUB
designation for a native UEFI boot, while 386pc is the GRUB designation
for a legacy BIOS boot. =20
While GRUB visually looks the same across both boot methods, the
versions of the boot loader installed are very different. The legacy
BIOS version is 16-bit and runs in the boot processor's real mode =E2=80=94=
on
one core only, without hyperthreading =E2=80=94 while the UEFI-aware versio=
n of
GRUB is a 64-bit UEFI executable running in the processor's long mode.
UEFI executables are themselves running as extensions of the UEFI
firmware, and their binary format is the same as that of the NT-based
versions of Microsoft Windows, because Microsoft is on the UEFI
Committee.
[nx-74205:/dev/pts/3][/root] # file /boot/efi/EFI/boot/bootx64.efi=20
/boot/efi/EFI/boot/bootx64.efi: PE32+ executable (EFI application)
x86-64 (stripped to external PDB), for MS Windows
--=20
With respect,
=3D Aragorn =3D
--- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
* Origin: A noiseless patient Strider (2:250/1@fidonet)