Booting Linux in UEFI Mode

Week back my laptop running Debian(KALI) got crashed and unfortunately I use strict UEFI boot instead of UEFI and Legacy BIOS.

I started repairing it but no luck and all the time I got error saying

selected boot device failed.Press any key to reboot the system

Well most of the Linux ISOs are not (U)EFI bootable since there is no EFI bootloader on them.

But after some research I found out we can boot it from the EFI shell instead. You will need a flash drive of at least 1 GB.

0. Download ISO
1. Format USB flash drive as FAT32.
2. Extract the ISO to the flash drive.
3. Download UEFI shell:
4. On the USB drive create a EFI folder and a BOOT sub folder, then
copy Shell.efi to EFI\BOOT\Bootx64.efi
5. Using a text editor, create a file called liveboot.nsh on the root of the USB drive and paste the following into the file:

yourlocation\vmlinuz initrd=yourlocation\initrd.img append boot=boot components media-path=/yourlocation

6. Reboot PC and enter the UEFI Boot Menu, usually by pressing F8 or
7. Select the name of your USB flash drive (If you have CSM enanbled
in BIOS you will see it twice, but one will have a UEFI: prefix,
select that.).
8. When EFI shell has loaded just type liveboot.nsh and press enter,
it should then boot.

Below is the link for GIT to get the UEFI Shell.



Clojure | Golang | Python | Cloud

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store