EFI and Grub
Posted: 2022-11-30 Filed under: system | Tags: efi, ELILO, grub, UEFI 2 CommentsI’ve been tinkering with a Lenovo ThinkCentre M80Q. I disabled secure boot and since there is no legacy mode in the BIOS, I decided that it’s time to install Slackware with EFI. However, after the install was done, ELILO failed to boot the OS. So, I decided to use Grub.
I did many reboots, trying to fix the problem, but no luck. In the end, using Slackware’s disk as a rescue boot disk I ditched ELILO. So, I needed to chroot
to my installed system, first. Long story-short: I followed these instructions from CRUX, after the install was done:
mount --bind /dev /mnt/dev mount --bind /tmp /mnt/tmp mount --bind /run /mnt/run mount -t proc proc /mnt/proc mount -t sysfs none /mnt/sys mount -t devpts -o noexec,nosuid,gid=tty,mode=0620 devpts /mnt/dev/pts mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars chroot /mnt /bin/bash
Then, I installed Grub to the EFI partition:
grub-install /boot/efi
…and automatically generated its configuration file:
grub-mkconfig > /boot/grub/grub.cfg
The system boots. However, the video is not supported. Hmm,… looking for a simple and more up-to-date system…
Are you sure in “grub-install /boot/efi”. Should it be grub-install –recheck –target=x86_64-efi –efi-directory=/boot/efi –bootloader-id=drive /dev/sdx
or something like that?
hi, I followed this:
https://crux.nu/Main/Handbook3-7#ntoc13
Anyway, I will probably put CRUX on the ThinkCentre, so I will have the opportunity to check again.