Skip to content

Instantly share code, notes, and snippets.

View ShailMurtaza's full-sized avatar
🏠
Working from home

Shail Murtaza ShailMurtaza

🏠
Working from home
  • /dev/random
  • Pakistan
  • 06:31 (UTC +05:00)
View GitHub Profile
@ShailMurtaza
ShailMurtaza / grub_re_install
Created October 3, 2021 07:31
How to reinstall GRUB bootloader
Those that have Legacy instead of EFI can go to step 4)
For EFI there is one extra step: Mount your EFI partition
mount /dev/sda1 /mnt/boot/efi
Sometimes errors like this can result: mount: /mnt/boot/efi: mount point does not exist.
To solve it create the efi directory in /mnt/boot/ using this command:
mkdir /mnt/boot/efi