Double Booting Windows 11 and Ubuntu 20.04 LTS on a New HDD

Abstract: Resolves Windows 11 bootloader overwriting issues when dual-booting with Ubuntu 20.04 on a new HDD by enforcing correct installation order.

Created: 2026-10-25 by
To successfully double-boot Windows 11 and Ubuntu 20.04 LTS on a new hard drive, you must install the operating systems in a specific order to ensure both bootloaders are correctly configured. First, install Windows 11, then install Ubuntu 20.04, allowing its GRUB bootloader to manage the dual-boot menu. This method prevents Windows from overwriting the Linux bootloader during installation and ensures a seamless transition between the two operating systems without requiring third-party partition managers or complex manual configurations.

Preparation and Partition Planning

Before beginning the installation process, it is crucial to prepare your hardware and storage media. Since you are using a new HDD, you do not need to worry about preserving existing data, but you must ensure the drive is properly connected to your motherboard. Connect the new hard drive via SATA or NVMe slot depending on your system's capabilities. Ensure that your BIOS/UEFI settings are configured to support UEFI mode, as Windows 11 strictly requires this feature for security reasons such as Secure Boot and TPM 2.0 integration. Create a bootable USB installer for both Windows 11 and Ubuntu 20.04 LTS. You can use tools like Rufus for Windows or Etcher for creating these installers. Verify the integrity of the downloaded ISO files to avoid installation errors due to corrupted data. It is also advisable to update your motherboard BIOS to the latest version to ensure maximum compatibility with the newer Windows 11 requirements and Ubuntu kernel updates.

Installing Windows 11 First

The first step in the dual-boot process is installing Windows 11. Insert the Windows 11 USB drive and boot from it. During the installation process, you will be prompted to select the installation type; choose "Custom: Install Windows only (advanced)." When presented with the disk selection screen, select the new HDD where you intend to install Windows. Windows will automatically create necessary partitions, including the EFI System Partition (ESP) if one does not exist. Allow Windows to complete the installation and set up your user account. Do not install any additional drivers or software at this stage unless they are critical for basic functionality. Once Windows is fully installed and booted into the desktop, restart the computer and remove the USB drive. It is important to note that Windows may take control of the boot manager temporarily, which is expected behavior before the Linux installation.

Installing Ubuntu 20.04 LTS

After Windows 11 is operational, insert the Ubuntu 20.04 LTS USB drive and reboot. Access your BIOS/UEFI boot menu to select the Ubuntu installer. When the Ubuntu installation begins, choose "Install Ubuntu 20.04 LTS." During the partitioning phase, select "Something else" to manually configure the disk layout, although the guided option often works if the disk is empty. If you choose manual partitioning, ensure that the existing Windows EFI partition is mounted at /boot/efi without formatting it. Create a separate partition for Ubuntu's root filesystem, typically formatted as ext4, and assign it as /. Additionally, create a swap partition or file if desired, though modern systems often handle swap efficiently without a dedicated partition. The installer should detect the existing Windows installation and offer to install GRUB alongside it. Confirm this option to enable the dual-boot menu.

Configuring the Bootloader

Once Ubuntu installation completes, the system will reboot into GRUB, displaying a menu with options for Ubuntu and Windows Boot Manager. If Windows does not appear in the GRUB menu, you may need to update the GRUB configuration. Boot into Ubuntu and open a terminal. Run the command sudo update-grub to scan for other operating systems and add them to the boot list. If you encounter issues with Secure Boot preventing Ubuntu from loading, you may need to disable Secure Boot in the BIOS/UEFI settings or enroll the MOK (Machine Owner Key) when prompted during the first boot of Ubuntu. Most modern versions of Ubuntu 20.04 support Secure Boot out of the box, but verifying this setting ensures stability. Test both operating systems by selecting each from the GRUB menu to confirm that they boot correctly.

Troubleshooting Common Issues

Users often face issues where Windows fails to recognize the Ubuntu partition or vice versa. This is usually due to file system incompatibilities rather than actual access problems, as Windows cannot natively read ext4 partitions. To resolve boot order issues, you can adjust the default boot option in GRUB by editing the /etc/default/grub file and changing the GRUB_DEFAULT value. Another common issue is time synchronization discrepancies between Windows and Linux. This occurs because Windows uses local time while Linux uses UTC by default. You can fix this by running timedatectl set-local-rtc 1 in Ubuntu or adjusting the registry in Windows. For more advanced troubleshooting related to system performance and hardware compatibility, you might find resources on managing system resources helpful, similar to those discussed in our guide on Cron Won't Start VirtualBox VM: A Solution, which addresses underlying system scheduling and resource allocation issues.

Maintaining the Dual-Boot Setup

Regular maintenance involves keeping both operating systems updated. On Ubuntu, use sudo apt update && sudo apt upgrade regularly. In Windows, use Windows Update to stay current. Be cautious when updating the kernel in Ubuntu, as major kernel updates may require re-running sudo update-grub to ensure proper detection of Windows. Avoid resizing partitions from within Windows using standard disk management tools, as this can corrupt the ext4 filesystem. Use GParted in Ubuntu for any partition adjustments. Always back up important data before making changes to the disk structure. By following these steps, you maintain a stable and reliable dual-boot environment.

Frequently Asked Questions

Can I install Ubuntu first and then Windows 11?

Yes, but it is not recommended because Windows will overwrite the GRUB bootloader, leaving you unable to boot into Ubuntu without repairing the boot sector. Installing Windows first allows Ubuntu's installer to detect the existing Windows partition and configure GRUB correctly as the primary bootloader.

Why does my computer boot directly into Windows after installing Ubuntu?

This happens if the BIOS/UEFI boot order is set to prioritize the Windows Boot Manager over the Linux bootloader. You can change this by entering the BIOS settings during startup and moving the Ubuntu or GRUB entry to the top of the boot priority list.

Is it safe to keep both operating systems on the same physical drive?

Yes, it is safe as long as you do not format the wrong partition during installation. Each operating system resides in its own partition, and they do not interfere with each other's data files. However, always backup important data before partitioning to prevent accidental data loss.

How do I access the GRUB menu if it disappears quickly?

Press and hold the Shift key immediately after powering on the computer to delay the boot process and display the GRUB menu. Alternatively, you can edit the /etc/default/grub file in Ubuntu to increase the timeout duration for the menu display.

What should I do if Windows updates break the dual-boot capability?

Major Windows updates can sometimes reset the boot manager. If this occurs, boot from an Ubuntu live USB and use the Boot-Repair tool to reinstall GRUB and restore the dual-boot menu. Regularly checking for OS updates helps minimize such conflicts.

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