Changing GRUB to Bootloader instead of Windows Boot Manager in Dual-Boot System (Windows 10 and Ubuntu)

Abstract: Switch default bootloader to GRUB in Windows 10 and Ubuntu dual-boot by reordering UEFI boot entries with efibootmgr.

Created: 2026-10-03 by
To switch your default bootloader from Windows Boot Manager to GRUB in a dual-boot setup, you must modify the UEFI boot order using the efibootmgr utility in Ubuntu. This process involves identifying the correct boot entry UUID for GRUB and setting it as the first option in the firmware's priority list. Afterward, you should verify the change by restarting the system to ensure the GRUB menu appears instead of the Windows Boot Manager.

Prerequisites and Safety Warnings

Before modifying boot records, it is critical to back up your current EFI System Partition (ESP). The ESP contains the boot loaders for both operating systems, and incorrect manipulation can render both Windows and Ubuntu unbootable. Create a backup of the entire /boot/efi directory or the partition itself. Additionally, ensure you are booted into Ubuntu, not Windows, when performing these steps. Modifying the boot order from within Windows is possible via third-party tools, but the native Linux method using efibootmgr is more transparent and reliable for troubleshooting.

Identifying the GRUB Boot Entry

The first step is to determine which boot entry corresponds to GRUB. Open a terminal in Ubuntu and run the following command:
sudo efibootmgr
This command lists all current boot entries with their numbers and UUIDs. Look for an entry that mentions "ubuntu" or "GRUB". The output will resemble something like this:
BBootOrder: 0001,0002,0003
Boot0001* ubuntu
Boot0002* Windows Boot Manager
Boot0003* Hard Drive
In this example, 0001 is the number for Ubuntu's GRUB loader. Note the exact number or the UUID associated with it. If you do not see an Ubuntu entry, it may have been deleted during a previous cleanup, such as removing the Ubuntu boot partition mentioned in your context. In that case, you would need to reinstall GRUB or restore it from a live USB before proceeding.

Changing the Boot Order

Once you have identified the correct boot entry number for GRUB, you can set it as the primary bootloader. Use the -o flag followed by the new boot order sequence. To make GRUB the default, place its number first. For example, if GRUB is 0001 and Windows is 0002, the command would be:
sudo efibootmgr -o 0001,0002,0003
Replace the numbers with those found in your specific system. The order matters; the first number is the highest priority. After running this command, verify the change by running sudo efibootmgr again to confirm the BootOrder line reflects your new configuration.

Verifying the Change

Restart your computer to test the new configuration. Upon power-on, the system should now display the GRUB menu, allowing you to choose between Ubuntu and Windows. If the system boots directly into Windows, the change was not applied correctly, or the BIOS/UEFI has overridden the software boot order. In some cases, you may need to enter the BIOS/UEFI setup (usually by pressing F2, Del, or Esc during startup) and manually move the Ubuntu boot entry to the top of the list there as well. If you encounter issues, refer to our guide on Double Booting Windows 11 and Ubuntu 20.04 LTS on a New HDD for additional insights on managing multi-OS environments.

Troubleshooting Common Issues

Sometimes, the GRUB entry may appear but fail to load properly. This often happens if the grubx64.efi file is missing or corrupted in the EFI partition. Check the contents of /boot/efi/EFI/ubuntu/ to ensure the necessary files exist. If they are missing, you can repair GRUB by booting from a Live USB and using the chroot method to reinstall the bootloader. Another common issue is Secure Boot interference. While modern versions of GRUB support Secure Boot, older configurations might require it to be disabled in the BIOS/UEFI settings. If you experience black screens or authentication failures after switching, try temporarily disabling Secure Boot to see if it resolves the problem. For users dealing with complex hardware configurations, such as those involving virtualization or cron jobs, understanding boot priorities is equally important. You might find related challenges in Cron Won't Start VirtualBox VM: A Solution, where system state management is key.

Restoring Windows Boot Manager

If you decide to revert to Windows as the default bootloader, simply swap the order in the efibootmgr command. For example:
sudo efibootmgr -o 0002,0001,0003
This ensures that Windows Boot Manager loads first. You can also delete unused boot entries to clean up the list, but be cautious not to remove the active GRUB or Windows entries. Always double-check the numbers before deleting any entry.

Frequently Asked Questions

What if I don't see the Ubuntu entry in efibootmgr?

If the Ubuntu entry is missing, it likely means the GRUB bootloader was removed or the EFI partition was wiped. You will need to restore GRUB using a Live USB or reinstall Ubuntu to recreate the necessary boot files in the EFI partition.

Can I change the boot order from Windows?

Yes, you can use third-party tools like EasyBCD or the built-in Command Prompt tool bcdedit to manage boot entries. However, modifying the UEFI NVRAM directly from Linux using efibootmgr is generally more straightforward for dual-boot setups.

Does changing the bootloader affect my data?

No, changing the boot order only affects which operating system loads first. It does not delete or modify any files on your hard drives. Your personal data, documents, and installed applications remain intact.

Why does my system still boot into Windows after changing the order?

This can happen if your motherboard's BIOS/UEFI has a hardware-specific boot priority that overrides the OS-level settings. Enter your BIOS/UEFI setup and check the "Boot Priority" or "Boot Option Priorities" section to ensure Ubuntu is listed first there as well.

Is it safe to delete old boot entries?

It is safe to delete entries that correspond to operating systems you no longer have installed. However, always verify that you are not deleting the current active GRUB or Windows Boot Manager entries, as this would prevent your system from booting.

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