UEFI Shell

UEFI Common Tasks

Below are some common UEFI tasks, especially when a server won’t boot

Show drive mapping


List boot options

FS0:\> bcfg boot dump -b
Option: 06. Variable: Boot0004
  Desc    - UEFI QEMU HARDDISK QM00001
  DevPath - PciRoot(0x0)/Pci(0x1,0x1)/Ata(0x0)
  Optional- Y

Load disk and boot manually

FS0:\> ls
Directory of: FS0:\
09/22/2019 19:43 <DIR>  4,096 EFI
04/15/2020 20:51       10,668 NvVars
    1 File(s)   10,668 bytes
    1 Dir(s)
FS0:\> cd EFI
FS0:\EFI\> cd debian
FS0:\EFI\debian\> grub64.efi

Change boot order

# move option 6 to position 0, shifting down the others
FS0:\> bcfg boot mv 6 0

Remove boot option

FS0:\> bcfg boot rm 4

Add boot option

FS0:\> bcfg boot add 1 FS0:\EFI\GRUB\grubx64.efi “GRUB”
Target = 0007.
bcfg: Add Boot0007 as 1