EFI and Grub

I’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…


2 Comments on “EFI and Grub”

  1. Anonymous says:

    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?

  2. slackalaxy says:

    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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s