How to Dual Boot Windows and Linux
Dual booting Windows and Linux installs both operating systems on one computer and presents a boot menu at startup to choose between them. A dual boot setup keeps Windows intact, shrinks its partition to make room, and installs Linux alongside it so the GRUB boot loader manages the selection. This article walks through the setup in phases ordered to protect the existing Windows installation: back up first because partitioning carries risk, install Windows first if it is absent, shrink the Windows partition in Disk Management, create a Linux bootable USB with Ubuntu, disable Fast Startup and note Secure Boot, boot the USB and choose Install alongside Windows, let GRUB manage the boot selection, and verify both systems boot.
Each phase states its goal and gives the exact steps. The result is one computer running both Windows and Linux, with a boot menu at startup and both operating systems sharing the same drive.
What You Need Before You Start
Dual booting Windows and Linux requires a backup, free disk space, and a Linux bootable USB before any partition is changed. The items required for a dual boot setup are listed below, in the order each is needed:
- A full backup of the Windows system protects data, because shrinking and partitioning a drive carries a risk of data loss.
- Enough free space on the Windows drive provides room for the Linux partition, with at least 30GB recommended for a usable installation.
- An 8GB or larger USB drive holds the Linux installer and is erased when the bootable USB is created.
- The Ubuntu ISO file supplies the Linux installation image, downloaded from the official Ubuntu site.
- A tool to write the ISO such as Rufus or Ventoy, which creates the Linux bootable USB.
- Access to the firmware settings allows Fast Startup and Secure Boot to be checked before the install.
Partitioning a drive can cause data loss if it is interrupted, so a verified backup is the first requirement, which the computer backup guide explains through File History and full-image methods. Creating the Linux installer USB uses the same tools as a Windows installer, which the guide to creating a bootable USB covers.
Back Up Windows First
Backing up Windows first protects all data before the drive is repartitioned for Linux. Shrinking a partition and installing a second operating system carries a risk of data loss if the process is interrupted, so a verified backup precedes any partition change. Follow these steps:
- Create a full system image of the Windows drive, which restores the entire system if partitioning fails.
- Copy personal folders to an external drive, including Documents, Pictures, and Desktop, as a separate file-level backup.
- Verify the backup opens correctly on another device before continuing, confirming the files copied without error.
- Note the Windows product key or confirm the digital license in case Windows needs reinstalling.
A full system image restores Windows completely if the partition step damages the installation, which the computer backup guide describes alongside file-level methods. A partition operation that is interrupted by a power loss can corrupt the drive, so a power connection on a laptop and a verified backup are both required before continuing.
Install Windows First if It Is Absent
Installing Windows before Linux lets the GRUB boot loader detect Windows and add it to the boot menu automatically. Windows overwrites the boot loader if installed second, removing the Linux entry, so Windows must be in place first on a new drive. Follow these steps:
- Install Windows on the drive first if the computer has no operating system, following the standard Windows setup.
- Leave free space during the Windows install by not allocating the entire drive to the Windows partition, if planning Linux from the start.
- Complete the Windows setup and updates before adding Linux, so Windows is fully working first.
- Skip this phase if Windows is already installed, since an existing Windows installation needs only the partition shrunk.
The install order matters because the Windows boot loader does not detect Linux, while the GRUB boot loader Linux installs does detect Windows. Installing Windows second overwrites GRUB and removes the Linux boot entry, requiring a repair. A fresh Windows installation follows the install Windows 11 guide before Linux is added alongside it.
Shrink the Windows Partition in Disk Management
Shrinking the Windows partition creates unallocated space for the Linux installation without erasing Windows. Disk Management reduces the size of the Windows partition and leaves the freed space unallocated, which the Linux installer then uses. Follow these steps:
- Open Disk Management by right-clicking the Start button and selecting it from the menu.
- Right-click the Windows partition and select Shrink Volume, which calculates the maximum space that can be freed.
- Enter the amount to shrink in megabytes, allocating at least 30GB, or 30000MB, for a usable Linux installation.
- Confirm the shrink and leave the freed space unallocated, since the Linux installer creates its own partitions there.
Shrinking the Windows partition leaves the freed space unallocated, which the Linux installer detects and uses for its partitions. The freed space should not be formatted in Windows, because the Linux installer formats it during setup. A partition that cannot shrink to the wanted size often has immovable system files near the end of the volume, which disabling hibernation and the page file temporarily can free.
Create a Linux Bootable USB
Creating a Linux bootable USB writes the Ubuntu installer to a USB drive the computer can start from. Rufus or Ventoy writes the Ubuntu ISO to an 8GB or larger USB drive, producing the bootable installer. Follow these steps:

- Download the Ubuntu ISO from the official Ubuntu site, choosing the long-term support release for stability.
- Insert an 8GB or larger USB drive and open Rufus, which detects the drive automatically.
- Select the Ubuntu ISO and choose GPT for a UEFI system, matching the partition scheme to the firmware.
- Click Start and wait for Rufus to write the bootable drive, which erases the USB drive in the process.
The Linux bootable USB is created the same way as a Windows installer USB, with the partition scheme matched to the firmware, which the guide to creating a bootable USB covers in full. Ventoy holds the Ubuntu ISO alongside others on one drive, while Rufus writes a single image. A drive created with the wrong partition scheme fails to boot on a UEFI system.
Disable Fast Startup and Note Secure Boot
Disabling Fast Startup prevents Windows from leaving the drive in a state that can corrupt a partition shared with Linux. Fast Startup hibernates the Windows kernel rather than shutting down fully, which can lock or corrupt a partition Linux also accesses. Follow these steps:
- Open Control Panel, then Power Options, then Choose what the power buttons do.
- Click Change settings that are currently unavailable to unlock the shutdown options.
- Uncheck Turn on fast startup and save the changes, which makes Windows shut down fully.
- Note the Secure Boot state in the firmware, since some Linux distributions require it disabled while Ubuntu supports it enabled.
Fast Startup leaves the Windows file system in a hibernated state that Linux can corrupt if it writes to a shared partition, so disabling it is required for a safe dual boot. Ubuntu supports Secure Boot through signed boot files, so Secure Boot can stay enabled for Ubuntu, while some other distributions need it disabled in the firmware. Checking the Secure Boot state before installing avoids a boot failure after setup.
Boot the USB and Install Alongside Windows
Booting the USB and choosing Install alongside Windows installs Linux into the unallocated space without erasing Windows. The Ubuntu installer detects the existing Windows installation and offers to install alongside it, using the space freed earlier. Follow these steps:

- Boot from the USB drive through the firmware boot menu, selecting the UEFI USB entry.
- Choose Try or Install Ubuntu, then proceed to the installation type screen.
- Select Install Ubuntu alongside Windows Boot Manager, which uses the unallocated space without touching the Windows partition.
- Set the partition size with the slider, choose a time zone and account, and start the install, letting Ubuntu create its partitions.
The Install alongside Windows option preserves the Windows partition and installs Ubuntu into the unallocated space, creating its own root and swap partitions automatically. Choosing a different option, such as Erase disk, would delete Windows, so the alongside option is the one a dual boot requires. The installer writes GRUB as the new boot loader during this step.
Let GRUB Manage Boot Selection and Verify
The GRUB boot loader presents a menu at startup to choose between Linux and Windows, and verifying both confirms the dual boot works. Ubuntu installs GRUB, which detects the Windows installation and lists both operating systems at every boot. Follow these steps:
- Restart the computer and confirm the GRUB menu appears, listing Ubuntu and Windows Boot Manager.
- Boot into Ubuntu first to confirm Linux starts and reaches the desktop.
- Restart and select Windows Boot Manager from the GRUB menu to confirm Windows still boots.
- Set the default entry and timeout in GRUB if a different default or a longer menu delay is wanted.
The GRUB menu appears at every startup, defaulting to Ubuntu after a timeout unless changed. A system that boots straight into Windows without showing GRUB may need the firmware boot order adjusted to put the Ubuntu boot entry first. Both operating systems sharing one drive run independently, each managing the hardware as the overview of what an operating system is describes.
Common Mistakes to Avoid
A dual boot setup fails or loses data when Fast Startup is left on or the install order is wrong. The mistakes that break a dual boot are listed below:
- Leaving Fast Startup enabled can corrupt a partition shared between Windows and Linux, because Windows leaves the drive hibernated.
- Installing Windows after Linux overwrites the GRUB boot loader, removing the Linux entry and requiring a repair.
- Skipping the backup before partitioning risks total data loss if the shrink or install is interrupted.
- Choosing Erase disk instead of Install alongside deletes the existing Windows installation entirely.
- Allocating too little space to Linux leaves no room for updates and applications, so at least 30GB is recommended.
Fast Startup left enabled is the most common cause of a corrupted shared partition, so disabling it before installing Linux is essential. Installing Windows second overwrites GRUB, which a boot-repair tool restores, but installing Windows first avoids the problem. A verified backup taken with the computer backup guide protects against the partitioning risk.
Key Takeaways
- Back up Windows first, since partitioning a drive carries a risk of data loss.
- Install Windows before Linux, because GRUB detects Windows while the Windows boot loader does not detect Linux.
- Shrink the Windows partition in Disk Management to create unallocated space for Linux.
- Disable Fast Startup before installing, since it can corrupt a shared partition.
- Choose Install alongside Windows in the Ubuntu installer, not Erase disk.
- Let GRUB manage the boot menu and verify both operating systems boot.
How do I dual boot Windows and Linux?
Back up first, install Windows if absent, shrink the Windows partition in Disk Management, create an Ubuntu bootable USB, disable Fast Startup, and choose Install alongside Windows. GRUB then manages the boot menu.
Should I install Windows or Linux first?
Install Windows first. The GRUB boot loader Linux installs detects Windows and adds it to the boot menu, while the Windows boot loader does not detect Linux and would remove the GRUB entry.
Why disable Fast Startup for dual boot?
Fast Startup hibernates the Windows kernel rather than shutting down fully, leaving the file system in a state Linux can corrupt if it writes to a shared partition. Disable it for a safe dual boot.
How much space does Linux need for dual boot?
At least 30GB, or 30000MB, gives Ubuntu room for the system, updates, and applications. Shrink the Windows partition in Disk Management to free this unallocated space for the Linux installer.
Does Ubuntu work with Secure Boot?
Yes. Ubuntu supports Secure Boot through signed boot files, so it can stay enabled. Some other Linux distributions require Secure Boot disabled in the firmware, so check the state before installing.
What is GRUB in a dual boot?
GRUB is the boot loader Ubuntu installs that presents a menu at startup to choose between Linux and Windows. It detects both operating systems and lets either be selected at every boot.
Last Thoughts on Dual Booting Windows and Linux
Dual booting Windows and Linux installs both systems on one drive through phases that protect the existing Windows installation: back up first, install Windows before Linux, shrink the Windows partition in Disk Management, create an Ubuntu bootable USB, disable Fast Startup and note Secure Boot, choose Install alongside Windows, and let GRUB manage the boot menu. The install order and Fast Startup are the two settings that most often cause failure. Readers can continue with the bootable USB guide, the computer backup guide, or the PC tutorials hub for related procedures.


