Recovering GRUB (EFI) for Dual Boot Windows 10: Common Issue and Specific Solutions

Abstract: Restore GRUB bootloader in dual boot Windows 10 EFI by reinstalling packages and regenerating NVRAM variables.

Created: 2026-09-07 by
Recovering the GRUB bootloader in a dual-boot Windows 10 EFI environment requires restoring the Linux boot entries to the Unified Extensible Firmware Interface (UEFI) partition. This process typically involves mounting the EFI system partition, reinstalling the GRUB packages within a chrooted Linux environment, and executing specific commands to regenerate the boot configuration files.

Understanding the EFI Boot Structure

In modern systems using UEFI rather than legacy BIOS, the bootloader does not reside on the Master Boot Record (MBR). Instead, it lives on a dedicated FAT32 partition known as the EFI System Partition (ESP). When you install Linux alongside Windows 10, the installer places GRUB files into this partition, usually under a directory named /EFI/ubuntu or /EFI/redhat. Windows also stores its bootloader in /EFI/Microsoft/Boot. The issue arises when this structure is corrupted, deleted, or overwritten. Common causes include a failed update, a manual deletion of the ESP contents, or an aggressive Windows Update that resets the boot order. Unlike legacy BIOS, where boot.ini or the MBR itself was modified, EFI relies on NVRAM variables stored in the motherboard firmware. These variables point to the specific file path on the ESP that should be executed at startup. If these pointers are lost, the system will skip straight to Windows or display a "No Boot Device Found" error. To resolve this, you must ensure that the GRUB binaries are present on the disk and that the NVRAM variables correctly reference them. This is distinct from general software troubleshooting, which might involve registry edits or driver reinstalls. For broader context on handling Windows-specific boot issues, you may want to review our guide on Recovering Windows 10 EFI Bootloader after Installing Linux, although that focuses primarily on restoring the Microsoft side of the equation.

Preparation and Accessing Recovery Media

Before attempting any repairs, you need access to a live Linux environment. A standard Windows installation USB will not suffice because it lacks the necessary tools to manipulate the Linux filesystem and GRUB configuration. You should create a bootable USB drive using a tool like Rufus or Etcher with a recent version of Ubuntu, Fedora, or another major distribution. Once the USB is ready, insert it into your machine and reboot. Enter the UEFI setup menu by pressing the appropriate key during POST, commonly F2, F12, Del, or Esc depending on the manufacturer. Navigate to the Boot tab and disable Secure Boot temporarily if possible, as some older GRUB versions or custom kernels may fail signature verification. Select the USB drive from the list of boot devices. When the live environment loads, connect to the internet via Ethernet or Wi-Fi, as you will need to download packages. Open a terminal immediately. The first critical step is identifying your root partition and your EFI partition. Use the command lsblk or fdisk -l to list all block devices. Look for a partition formatted as FAT32 with a size between 100MB and 512MB; this is your ESP. Note its device identifier, such as sda1 or nvme0n1p1. Similarly, identify your main Linux root partition, which will likely be ext4 or btrfs.

Mounting Partitions and Chrooting

With the partitions identified, you must mount them to make them accessible to the recovery tools. Create a temporary mount point and attach your root partition to it. For example, if your root is sda2:
sudo mount /dev/sda2 /mnt
Next, mount the EFI partition. It is crucial to mount this at /mnt/boot/efi because many Linux distributions expect the EFI partition to be located there during boot. If your system uses a separate /boot directory, adjust accordingly, but /boot/efi is the standard convention for most distros:
sudo mount /dev/sda1 /mnt/boot/efi
You also need to bind the virtual filesystems so that the chroot environment has access to hardware information and processes. Run the following commands in sequence:
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
Finally, enter the chroot environment. This changes your current root directory to the mounted Linux installation, allowing you to run commands as if you were logged into the broken system:
sudo chroot /mnt
At this stage, you are effectively inside your installed Linux system. Any package manager commands you run will affect the installed OS, not the live USB.

Reinstalling GRUB and Updating Configuration

Now that you are chrooted, you can repair the bootloader. First, ensure your package lists are up to date. Depending on your distribution, use apt update for Debian/Ubuntu based systems or dnf check-update for Fedora/RHEL based systems. Then, reinstall the GRUB EFI package. On Ubuntu, this is often part of the grub-efi-amd64 package:
apt install --reinstall grub-efi-amd64 grub-common
After reinstalling, you must regenerate the GRUB configuration file. This step scans your partitions for operating systems and creates the grub.cfg file. Use the following command, replacing x with the number of your disk (not the partition):
grub-mkconfig -o /boot/grub/grub.cfg
This command writes the new configuration to the disk. However, it does not automatically update the UEFI NVRAM variables. To fix this, you need to reinstall the GRUB EFI modules directly to the ESP. Use grub-install with the target platform set to x86_64-efi:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu
The --bootloader-id flag ensures that GRUB is placed in the correct directory (/EFI/ubuntu) and registered in the NVRAM. If you are using a different distribution, change the ID to match your distro name, such as fedora or arch. If the command fails with errors regarding missing keys or directories, verify that /boot/efi is correctly mounted and writable. Once successful, exit the chroot and unmount the partitions:
exit
sudo umount /mnt/boot/efi
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt
Remove the USB drive and reboot. Your system should now present the GRUB menu, allowing you to select between Windows 10 and Linux. If Windows still boots automatically, you may need to re-enable Secure Boot and adjust the boot priority in the UEFI settings. For users experiencing random crashes or blue screens during this process, refer to our analysis on Windows 10 BSOD Randomly: Continues BSOD After Fresh Reinstall with Factory Drivers to rule out hardware instability.

Frequently Asked Questions

Why does Windows still boot even after installing GRUB?

The UEFI firmware prioritizes boot entries based on their position in the NVRAM variable list. Installing GRUB adds a new entry, but it may not become the default automatically. You can change the default boot option using the efibootmgr command in Linux or through the UEFI Setup utility on the motherboard.

Can I recover GRUB without a live USB?

No, you cannot recover GRUB while running Windows because Windows lacks the tools to write to the Linux partition or modify the GRUB configuration files. You must use external media containing a Linux kernel and package manager to perform the repair.

What if my EFI partition is not FAT32?

The UEFI specification strictly requires the EFI System Partition to be formatted as FAT32. If your partition is NTFS or exFAT, it is not a valid ESP. You would need to backup your data, recreate the partition as FAT32, and move the EFI files back to it before proceeding with the GRUB installation.

Does disabling Secure Boot permanently affect security?

Disabling Secure Boot allows unsigned kernels and bootloaders to load, which reduces protection against low-level malware. However, once GRUB is properly signed and registered in NVRAM, you can re-enable Secure Boot. Most modern Linux distributions support Secure Boot out of the box, so you should test enabling it after confirming GRUB works.

How do I verify that GRUB is correctly installed in NVRAM?

You can list the current boot entries by running efibootmgr -v in the chrooted environment. Look for an entry labeled ubuntu or your distro name that points to the \EFI\ubuntu\grubx64.efi file. If the entry exists but the system skips it, the boot order needs adjustment.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More