[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unable to boot UEFI installation



On 20.7.2013 22:16, Marcus Karlsson wrote:
Does anyone know why this happens or what I can do about it, apart from
renaming the installed boot loader directory?

Here are my notes for switching from legacy BIOS mode to UEFI, manual grub binary and config install might help.


# Booted in legacy BIOS mode
# /boot/efi = FAT32 UEFI partition (/dev/sda1)
mkdir -p /boot/efi/EFI/grub

# Remove every grub package installed including confs
aptitude purge grub-common grub-efi-amd64 grub-efi-amd64-bin grub-pc \
  grub-pc-bin grub2-common
# Install UEFI grub
aptitude install grub-efi-amd64

# Install grub binary to UEFI partition
grub-install --target=x86_64-efi --efi-directory=/boot/efi \
  --bootloader-id=grub --boot-directory=/boot/efi/EFI --recheck --debug
# Create grub.cfg to UEFI partition
grub-mkconfig -o /boot/efi/EFI/grub/grub.cfg

# Reboot to UEFI Shell and run grubx64.efi
fs0:
cd EFI
cd grub
grubx64.efi

# Set grub to 1st boot option (-p [partition number])
efibootmgr -c -d /dev/sda -p 1 -w -L "grub" -l '\EFI\grub\grubx64.efi'


# Manual grub.cfg copy needed every time after updating grub
cp /boot/grub/grub.cfg /boot/efi/EFI/grub/grub.cfg


https://wiki.archlinux.org/index.php/GRUB

Arch wiki has more info.


Reply to: