Skip to content
Go back

How to Fix GRUB Error on a Dual Boot Windows and Ubuntu Laptop

How I Fixed a GRUB Error on My Dual Boot Laptop

Recently, my old laptop with dual boot Windows and Ubuntu suddenly refused to start normally. Instead of showing the usual boot menu, it dropped me straight into a GRUB terminal prompt.

If you are seeing only a grub> prompt when you power on your machine, this post walks through how to:

This approach is especially useful if you have a dual boot setup and the GRUB bootloader is broken or misconfigured.

Grub Error

This laptop has two operating systems installed:

No matter how the boot order was changed in BIOS/UEFI, the machine would always show only the GRUB terminal:

grub>

If the boot order was switched to the drive containing Windows, the Windows boot menu would appear. But on normal startup, it always landed on the GRUB prompt. That meant GRUB itself was broken or pointing to the wrong target.

Understanding the GRUB Error

If you only see the grub> prompt (and not the usual GRUB menu), it typically means:

The good news is: from this GRUB terminal, you can still:

Step 1: List Drives and Partitions in GRUB

From the GRUB prompt, first list all available drives and partitions:

ls

GRUB will show something like:

(hd0,gpt1) (hd0,gpt2)

You may see more entries depending on how many drives and partitions you have. Each of these represents a partition that might contain an EFI bootloader.

Step 2: Find the EFI Partition (Windows or Ubuntu)

Next, inspect each partition to find where your EFI boot files live. For example:

ls (hd0,gpt1)/

Check each partition until you find a structure like:

Once you see either of those paths, you have found the EFI system partition for that OS.

For example, if EFI/Microsoft/Boot exists on (hd0,gpt1), then:

Step 3: Set the Root to the Windows EFI Partition

Now tell GRUB to use that partition as the root:

set root=(hd0,gpt1)

Replace (hd0,gpt1) with the correct partition you discovered in the previous step.

Step 4: Chainload the Windows Bootloader

Next, chainload the Windows boot manager from GRUB:

chainloader /EFI/Microsoft/Boot/bootmgfw.efi

If there is no error, proceed to boot:

boot

If everything is correct, your laptop should now boot into Windows instead of staying stuck at the GRUB error prompt.

Step 5: Make Windows the Default Bootloader with bcdedit

Once inside Windows, you can make Windows Boot Manager the permanent default bootloader. Open a Command Prompt as Administrator and run:

bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi

This command tells the system to use the Windows boot manager from now on, instead of GRUB. On the next restart, the machine should:

From there, you can decide whether to repair or reinstall GRUB if you still want a dual boot menu, or simply keep Windows boot manager as the default.

Final Thoughts

A broken GRUB bootloader can look scary, especially when your laptop only shows a grub> prompt. However, as long as the EFI files are still there, you can:

This simple method brought my old dual boot laptop back to life and might do the same for yours.



Share this post on:

Next Post
Exposing Your Local Apps to the Internet [SAFELY!] — Cloudflare Tunnel [2025]