Skip to content

Instantly share code, notes, and snippets.

@Red-Eyed
Forked from rakeshtembhurne/grub_efi_loader.sh
Created September 15, 2025 03:53
Show Gist options
  • Save Red-Eyed/de732233dba0bf9223f8f58bae3727e4 to your computer and use it in GitHub Desktop.
Save Red-Eyed/de732233dba0bf9223f8f58bae3727e4 to your computer and use it in GitHub Desktop.
Reinstall the GRUB boot loader to your Ubuntu installation in EFI mode this way (From live CD)
sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
# Note : sdX = disk | sdXX = efi partition | sdXXX = system partition
# 'Fixed' by replacing /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi with /boot/efi/EFI/arch/grubx64.efi
# Resources
# https://community.acer.com/en/discussion/471754/acer-aspire-es-15-es1-533-c3uw-legacy-bios-missing
# https://askubuntu.com/questions/862946/unable-to-install-ubuntu-on-acer-aspire-es1-533
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment