Last active
February 14, 2023 13:02
-
-
Save EmmanuelKasper/9590327 to your computer and use it in GitHub Desktop.
EFI boot on Lenovo Thinkcenter M92Z
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disable secure boot in the bios, in menu security | |
# downlad and unzip refind-bin-0.7.8.zip | |
# install refind, assuming your ESP partition is /dev/sda1 and mounted in /boot/efi | |
cd refind-bin-0.7.8 | |
./install.sh | |
# type y and go ahead | |
# at that time your boot entry should look like that | |
Boot0000* rEFInd Boot Manager HD(1,800,f3800,b500458e-3e0e-4299-bc41-48424508bced)File(\EFI\refind\refind_x64.efi) | |
# rename boot entry from refind to official EFI fallback filename, see http://www.rodsbooks.com/refind/installing.html#naming for reasons | |
./mvrefind.sh /boot/efi/EFI/refind /boot/efi/EFI/BOOT | |
# notice the bootx64 file | |
efibootmgr --verbose | grep HD | |
Boot0000* rEFInd Boot Manager HD(1,800,f3800,b500458e-3e0e-4299-bc41-48424508bced)File(\EFI\refind\refind_x64.efi) | |
Boot0001* rEFInd Boot Manager HD(1,800,f3800,b500458e-3e0e-4299-bc41-48424508bced)File(\efi\boot\bootx64.efi) | |
# remove non working boot entry | |
efibootmgr --delete-bootnum --bootnum 0 | |
Thanks, this allowed me to set up EFI boot with Debian on a 2017 Macbook Pro:
sudo apt-get install refind
sudo mvrefind /boot/efi/EFI/refind /boot/efi/EFI/BOOT
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot, this tip works nice too on a Apple Intel Mac Mini hardly converted to Debian.
I use the refind debian package instead of the zip.