Installing grub2 on GPT via UEFI
Hello, Rootcode.
I try to put grub2 on a disk marked up under GPT on a machine with UEFI support, after which I ’successfully 'get the error" Reboot and Select proper Boot device or Insert Boot Media in selected Boot device and press a key".
Now learn more about what I do to achieve this effect:
- In the bios settings of the motherboard, I set Enable UEFI booting.
- Using the graphical arch installer performs all the installation steps except for the disk layout and the boot loader installation.
- I mark up the disk using gdisk: 400mb fat32 "EFI System partition"; 45gb ext4 "Linux filesystem data". The first one is mounted in
/boot/efi
and the second one is mounted in the root. -
Installing
grub2
in the first sectionGrub_efi_x86_64-install --root-directory=/boot/efi --boot-directory=/boot/efi/efi --bootloader-id=arch_grub --no-floppy --recheck --debug
-
I copy the settings for "GRUB2 entry in the Firmware Boot Manager" (sorry, I don't know how to translate it correctly). For reliability, as much as three places.
Cp /boot/efi/efi/arch_grub/grubx64.efi /boot/efi/shellx64.efi
Cp /boot/efi/efi/arch_grub/grubx64.efi /boot/efi/efi/shellx64.efi
Cp /boot/efi/efi/arch_grub/grubx64.efi /boot/efi/efi/shell/shellx64.efi;
I configure grub. cfg, but this is no longer important, because from the message you can see: the system does not reach grub2 loading.
Maybe someone has an idea what I did wrong and how to deal with it?
1 answers
I recommend reading Arch's wiki. This is one of the best wikis I've ever seen. It is advisable to read the English version, everything is perfectly described there.