On an efi system it it possible to run arbitrary efi binaries.

Especially I can use the efi shell (one efi binary) to run grub (another efi binary).

Is it also possible to use grub to run for example an efi shell?

(In theory this should be no problem, but I did not find the correct command to start such a binary.)

  • Is that what the chainloader command does? – muru Apr 18 '16 at 21:16
  • KeyTool.efi is a nice menu driven launcher for efi-binaries, see my below answer for details. – dotbit Nov 6 '18 at 7:09

Yes, and here's a short example taken from Rod Smith's great page on GRUB 2/EFI Boot Loading

To chainload another EFI boot loader, one uses GRUB2 chainloader

The following grub2 menuentry example will run an EFI bootloader

menuentry "Windows 7" {
        insmod part_gpt
        insmod chain
        set root='(hd0,gpt1)'
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  • 1
    as opposed to hard-coding the drive/partition using set root='', I recommend using: search --no-floppy --fs-uuid --set=root <UUID> where <UUID> is the output from the blkid command – Paul-K Sep 24 at 22:30

yes! modify the ARCH-Linux installation ISO-image onto a thumdrive for easy running of all efi that you manage to find or build: see: https://wiki.archlinux.org/index.php/Talk:Unified_Extensible_Firmware_Interface

"actually run the *.efi files on a PC"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.