Windows Won't Boot on M.2 SSD after Installing Ubuntu on Separate SSD

Abstract: Fix Windows boot failure on M.2 SSD after Ubuntu installation by reordering UEFI boot priority to prioritize Windows Boot Manager over GRUB.

Created: 2026-08-22 by

Windows fails to boot after installing Ubuntu on a separate drive because the system firmware’s boot order has shifted to prioritize the new Linux installation over the existing Windows bootloader. This occurs when the Ubuntu installer modifies the NVRAM variables or creates a new EFI System Partition entry that takes precedence, causing the motherboard to look for a GRUB loader instead of the Windows Boot Manager. Resetting the UEFI boot priority in the BIOS/UEFI settings restores the correct startup sequence without requiring complex command-line repairs.

Understanding the Boot Priority Shift

When you install a second operating system like Ubuntu Server, the installer often detects existing EFI System Partitions (ESP) and may add its own bootloader entries to the Unified Extensible Firmware Interface (UEFI) NVRAM. Unlike legacy BIOS systems that rely on Master Boot Records (MBR), modern UEFI systems store boot configuration directly in firmware variables. The Windows Boot Manager is typically stored in the ESP on your M.2 SSD, while Ubuntu installs GRUB into the same partition or a dedicated one on the secondary SSD. If the firmware is configured to check the secondary drive first, it will attempt to load GRUB. If GRUB cannot find the Ubuntu kernel or if the user accidentally selects the wrong entry, the system appears to hang or reboot immediately. This is not a corruption of the Windows files on the M.2 SSD but rather a misdirection of the boot path. It is crucial to understand that tools like bootrec /fixmbr are obsolete for UEFI systems and can damage the partition table if used incorrectly. The solution lies in adjusting the firmware's decision logic, not repairing disk sectors.

Accessing and Navigating UEFI Settings

To resolve this, you must access the motherboard’s setup utility. Restart your computer and repeatedly press the designated key during the initial POST (Power-On Self-Test) screen. Common keys include F2, Delete, F12, or Esc, depending on your manufacturer. For Dell systems, which are common in dual-drive setups, F2 enters Setup and F12 opens the One-Time Boot Menu. Once inside the UEFI interface, navigate to the section labeled "Boot Order," "Boot Configuration," or "Startup." The exact naming varies by vendor, but the function remains consistent: it lists the devices and bootable partitions the firmware will attempt to load from, in priority order. You will likely see multiple entries here, including "Ubuntu," "GRUB," "WD_BLACK SN770," and "Windows Boot Manager."

Reordering the Boot Entries

The primary goal is to ensure "Windows Boot Manager" is the first option in the list. Use the keyboard arrows or mouse, as permitted by your interface, to move the Windows entry to the top position. If you see a generic entry named "Windows Boot Manager" associated with your M.2 SSD, select it. In some cases, you might see an entry simply named after the drive model; however, "Windows Boot Manager" is the specific UEFI variable that points to the \EFI\Microsoft\Boot\bootmgfw.efi file. After reordering, save the changes and exit. Most UEFI interfaces require you to select "Save Changes and Exit" or press F10. The system will restart and should now load Windows directly. If you wish to keep Ubuntu accessible, you do not need to delete its entries. Instead, you can use the One-Time Boot Menu (often F12) during startup to manually select the Ubuntu drive whenever you want to switch to Linux. This method keeps both installations intact and allows for easy switching without altering the permanent boot order.

Verifying the EFI Partition Integrity

If changing the boot order does not resolve the issue, verify that the Windows EFI partition is still intact. Boot from a Windows Installation Media USB and open the Command Prompt. Run diskpart, then list disk to identify your drives. Select the disk containing Windows (sel disk 0 usually) and then list vol. Look for a small FAT32 partition (typically 100-500 MB) labeled as System or Hidden. If this partition is missing or corrupted, the Windows Boot Manager cannot be found regardless of boot order. In such rare cases, you may need to rebuild the BCD store using bootrec /rebuildbcd, but this is only necessary if the partition itself is damaged, not merely if the boot order is wrong. For more detailed guidance on managing dual-boot configurations on similar hardware, refer to our guide on Dual Booting Windows and Ubuntu 22.04 LTS on DelVostro 5581 with Separated Drives Not Working. Additionally, if you encounter display issues once you successfully boot back into Linux, check out our troubleshooting steps for Jerky Scrolling in Ubuntu.

Preventing Future Boot Conflicts

To avoid this issue during future OS installations, consider disabling the secondary drive in the UEFI settings before running the Ubuntu installer. This forces the installer to create a self-contained environment on the new SSD without interfering with the Windows NVRAM variables. After installation, re-enable the drive and adjust the boot order again. Alternatively, always use the One-Time Boot Menu to select the target drive during installation, ensuring the installer writes its bootloader to the correct location without overriding the default Windows entry.

Frequently Asked Questions

Will resetting the boot order delete my Ubuntu data?

No, changing the UEFI boot priority only affects which operating system loads first at startup. Your Ubuntu files, partitions, and configurations remain completely untouched on the secondary SSD. You can still access Ubuntu by selecting it from the One-Time Boot Menu or by moving its entry to the top of the boot order list later.

Can I fix this using the Windows Recovery Command Prompt?

Generally, no. Since the issue is a firmware-level boot priority conflict rather than a corrupted Windows file system, command-line tools like sfc /scannow or chkdsk will not resolve the problem. While bootrec /rebuildbcd can repair a missing BCD store, it is unnecessary if the Windows Boot Manager entry exists in the UEFI variables but is simply listed below Ubuntu.

Why does my PC show "No Boot Device Found" even after fixing the order?

This symptom usually indicates that the Windows EFI partition has been deleted or formatted, or that the "Windows Boot Manager" variable was removed from NVRAM. Check the UEFI boot list again; if "Windows Boot Manager" is entirely absent, you may need to use Windows Installation Media to run automatic repair or manually recreate the EFI entry using third-party tools like EasyBCD within a working Linux live environment.

Is it safe to delete the GRUB entry from the UEFI boot list?

Yes, you can safely remove the GRUB or Ubuntu entry from the UEFI boot order if you plan to uninstall Linux permanently. However, deleting the entry does not erase the Ubuntu operating system or its files from the SSD. To fully remove Ubuntu, you must boot into Windows, delete the Linux partitions via Disk Management, and optionally remove the GRUB files from the shared EFI partition if they are no longer needed.

What if my motherboard doesn't have a clear "Boot Order" menu?

Some older or simplified UEFI interfaces hide advanced boot settings. In these cases, look for a "Fast Boot" option and disable it, as Fast Boot can sometimes skip scanning all drives for bootable OSs. Alternatively, use the One-Time Boot Menu (usually F12 or F11) during every startup to manually select the Windows drive. This bypasses the persistent boot order setting entirely and ensures Windows loads correctly each time.

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