Unable to Access Secondary OS (Windows)

Abstract: Fixes inability to boot Windows in dual-boot systems by repairing GRUB configuration and restoring missing UEFI boot entries.

Created: 2026-10-04 by

Regaining access to a secondary Windows partition in a dual-boot system typically requires repairing the GRUB bootloader or adjusting BIOS/UEFI boot order settings. Common causes include accidental deletion of the Windows EFI entry, incorrect drive letter assignments, or corrupted boot sectors on the Linux side. This guide outlines diagnostic steps and repair commands to restore the ability to select Windows at startup.

Diagnosing the Boot Loader State

Before attempting any repairs, it is essential to determine whether the issue lies with the bootloader configuration or the hardware detection of the operating systems. The most common symptom is a system that boots directly into Linux without presenting a menu, or a system that fails to boot entirely with an error such as GRUB error: unknown filesystem. Start by accessing your Linux installation via a live USB if you cannot boot normally. Once inside the live environment, open a terminal and identify your partitions using the lsblk command. Look for partitions labeled Microsoft basic data which usually indicates the Windows partition. If the partition exists but is not mounted, the file system may be corrupted or locked by Fast Startup in Windows. Check the current GRUB configuration by running sudo update-grub. If this command completes successfully but Windows still does not appear in the next reboot, the issue is likely with the UEFI boot entries rather than the GRUB text configuration itself. In many modern systems, GRUB relies on the Unified Extensible Firmware Interface (UEFI) to find the Windows Boot Manager. If the UEFI entry for Windows is missing, GRUB cannot chainload it regardless of its own config files. For more detailed diagnostics, you can inspect the EFI variables using efibootmgr -v. This tool lists all boot entries currently recognized by the firmware. Look for an entry named Windows Boot Manager. If it is absent, you will need to recreate it. If it is present but has an incorrect boot path, note the UUID or partition number associated with it for later correction.

Restoring GRUB Configuration

If the diagnosis confirms that GRUB is simply not detecting Windows, the first step is to regenerate the configuration file. GRUB uses utilities like os-prober to scan other disks for operating systems. Ensure that os-prober is installed on your system. On Debian-based distributions, you can install it using sudo apt install os-prober. On Arch Linux, it is often included in the base packages but may need explicit enabling. After installation, you must enable os-prober in the GRUB configuration. Open the file /etc/default/grub with a text editor. Add the line GRUB_DISABLE_OS_PROBER=false to the end of the file. By default, many security-focused distributions disable this feature to prevent potential vulnerabilities from other operating systems. However, for dual-boot setups, this setting is mandatory for automatic detection. Once saved, run sudo update-grub again. Reboot the system and check if the Windows option appears in the GRUB menu. If it does, select it to verify that Windows loads correctly. If the option still does not appear, there may be an issue with the partition identification. You can manually add a menu entry to /etc/grub.d/40_custom pointing to the Windows EFI file, but this is less reliable than letting os-prober handle it. It is also worth checking if the Windows partition is mounted in read-only mode due to hibernation. If Windows was hibernated instead of fully shut down, the NTFS file system locks the partition. Boot into Windows, hold Shift while clicking Restart to perform a full shutdown, and then reboot into Linux to allow proper mounting and detection.

Rebuilding UEFI Boot Entries

When GRUB configuration changes do not resolve the issue, the problem often lies within the UEFI NVRAM. The firmware maintains a list of bootable devices, and if the Windows entry is deleted or corrupted, the system cannot find the OS even if the files are intact. To fix this, you can use the efibootmgr utility from a live USB or your Linux installation. First, identify the EFI System Partition (ESP). It is typically a small FAT32 partition mounted at /boot/efi. Use ls /boot/efi/EFI to see the available directories. You should see a folder named Microsoft containing the Boot directory and the bootmgfw.efi file. To create a new boot entry, use the following command structure, replacing the placeholders with your specific partition details:
sudo efibootmgr --create --disk /dev/sda --part 1 --label "Windows Boot Manager" --loader \EFI\Microsoft\Boot\bootmgfw.efi
This command creates a new entry pointing to the correct EFI file on the first partition of the first disk. After running this, verify the creation with efibootmgr -v. You should now see a new entry for Windows. You can set it as a high-priority boot option using sudo efibootmgr --bootnum XXXX --bootorder XXXX,YYYY, where XXXX is the new Windows entry number. Reboot the computer. The firmware should now present the Windows Boot Manager as an option. If you prefer to keep GRUB as the primary bootloader, ensure that the GRUB entry is listed first in the boot order. This method bypasses GRUB entirely if you choose the Windows entry directly, ensuring that the OS loads independently of the Linux bootloader state.

Preventing Future Boot Issues

Maintaining a stable dual-boot environment requires understanding how both operating systems interact with the hardware. One major cause of boot failures is Windows updates that modify the EFI partition structure or disable secure boot unexpectedly. Always check your BIOS/UEFI settings after major Windows updates to ensure that Secure Boot and Fast Startup configurations remain consistent with your setup. Disabling Windows Fast Startup is highly recommended for dual-boot users. This feature writes the kernel state to the hard drive to speed up boot times, which effectively hibernates the OS. This prevents Linux from mounting the Windows partition for shared storage and can sometimes confuse the bootloader. You can disable it by going to Power Options in Windows Control Panel and unchecking Turn on fast startup. Regularly backing up your EFI partition is also prudent. You can clone the ESP to a safe location using cp -a /boot/efi/* /backup/efi/. If the bootloader ever becomes irreparably damaged, having a copy of the EFI files allows for quick restoration without needing to reinstall the operating systems. For persistent issues, consider consulting our detailed guide on restoring GRUB configurations to understand deeper recovery options.

Frequently Asked Questions

Why does GRUB say "Unknown Filesystem" when I try to boot Windows?

This error usually occurs when GRUB cannot recognize the file system type of the partition containing the Windows bootloader. It is often caused by a mismatch between the partition table format (MBR vs GPT) and the GRUB version being used. Ensure you are using a 64-bit GRUB build for GPT disks and that the EFI partition is formatted as FAT32.

Can I boot Windows without GRUB interfering?

Yes, you can bypass GRUB entirely by selecting the Windows Boot Manager directly from your motherboard's UEFI boot menu. Press the boot selection key (often F12, F9, or Esc) during startup to choose the Windows device directly. This method avoids any Linux bootloader configuration issues but requires manual selection every time you want to switch OSs.

What should I do if Windows Fast Startup locks my Linux partition?

If Windows hibernates or uses Fast Startup, it leaves the NTFS partition in a dirty state that Linux refuses to mount safely. To resolve this, boot into Windows, hold the Shift key while clicking Restart to force a full shutdown, or disable Fast Startup in the Power Settings. This ensures the partition is cleanly unmounted and accessible to Linux.

How do I know if my system is using UEFI or Legacy BIOS?

You can determine the mode by checking for the presence of the /sys/firmware/efi directory. If this directory exists, your system is using UEFI. If it is missing, you are likely using Legacy BIOS. Most modern dual-boot setups require UEFI for proper Windows support, and GRUB must be installed in UEFI mode to detect Windows correctly.

Is it safe to delete the Windows EFI entry in efibootmgr?

Deleting the Windows EFI entry does not remove the Windows operating system or its files; it only removes the firmware's pointer to the bootloader. This is safe if you plan to reinstall the entry later or use a different bootloader. However, doing so will make Windows unbootable until a new entry is created, so always verify the partition details before deleting.

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