Repair grub Linux/Windows dual boot
Le Vuong

Le Vuong @patfinder

About: • Learn everyday new useful technologies • Learn anything that broadens my understanding of the world.

Location:
Mississauga, ON
Joined:
Jan 9, 2024

Repair grub Linux/Windows dual boot

Publish Date: Oct 6 '24
0 2

I accidentally removed the BIOS boot option for Linux, but fortunately, I found this very detailed guide on how to restore the GRUB bootloader for Linux.

I believe this will work in most cases, even after installing the Windows bootloader, which usually overwrites Linux boot settings.

Below are some notes after I did this (more details in the link above):

  1. Create an Ubuntu boot disk. The download (6G) is usually fast, but the slow part is writing to the boot USB (which took 20 minutes for me). See how to create a Rufus boot disk (on Windows) here.

  2. Find the Linux partition:

    sudo fdisk -l
    sudo blkid

  3. Check for EFI boot:

    sudo fdisk -l (look for a partition with the type 'EFI System').

  4. Mount your partition:

    sudo mount /dev/sdXY /mnt

    This is needed to chroot into your Linux mount later.

  5. Bind mount necessary directories:

    for i in /sys /proc /run /dev; do sudo mount --rbind "$i" "/mnt$i"; done

  6. If you have EFI boot:

    sudo mount /dev/sdXY /mnt/boot/efi

  7. Chroot:

    sudo chroot /mnt

  8. Update GRUB:

    update-grub

    After this step, you may restart if it's fixed. Otherwise, continue to step 9.

  9. Reinstall GRUB if not fixed:

    grub-install /dev/sda
    update-grub
    (to detect and add Windows to the GRUB menu).

  10. Check if the EFI UUID is correct, and update it if needed:

    blkid | grep -i efi
    grep -i efi /etc/fstab

  11. Finish:

    exit
    sudo reboot

There are many steps, but the detailed instructions make them easy to follow. It's easy to Google any terms you don't understand, so don't worry.

I hope this helps fix your Linux system!

Comments 2 total

  • Bobby Jack
    Bobby JackDec 6, 2024

    Thanks for the great guide on repairing a GRUB dual-boot issue! It's always helpful to know how to troubleshoot boot problems on Linux/Windows systems. Similarly, having reliable support for home appliances can save a lot of time and stress. For those in Ventura, if you need washing machine repair, check out Washing Machine Repair Ventura for fast and professional service. Great work on sharing these troubleshooting tips!

  • hjdrh sdfs
    hjdrh sdfsApr 18, 2025

    fresh caulking can enhance the overall appearance of your windows by giving them a clean, finished look. Over time, old caulk can become discolored, cracked, or even start to peel away. Professional services can remove the old caulk, clean the surface, and apply new caulking neatly and efficiently home residential window caulking. This not only looks better but also boosts your home’s curb appeal, which can be important if you’re planning to sell or just want to maintain your property’s value.

Add comment