Back to Blog
The Complete Guide to Dual Booting Windows & Ubuntu: Step-by-Step

The Complete Guide to Dual Booting Windows & Ubuntu: Step-by-Step

March 30, 2025
15 min read
Larry Vu
TutorialLinuxWindows

Have you ever wanted to dive headfirst into Linux—to get comfortable with the command line, explore modern development environments, or simply enjoy a fast, distraction-free OS—only to hesitate because you cannot afford to lose your existing Windows setup?

It is a common dilemma. Windows holds your daily workflow, specialized applications, and your game library. Meanwhile, running Linux inside a virtual machine or through WSL (Windows Subsystem for Linux) never quite delivers the genuine feel of bare-metal performance.

The good news: you do not have to choose between them. With Dual Booting, both operating systems live peacefully side-by-side on the same drive. Every time you turn on your machine, a clean menu pops up asking which universe you want to step into today.

In this guide, we will walk through the entire process from start to finish. Rather than throwing a bare list of bullet points at you, we will break down what is happening behind the scenes, share some clever Windows tricks to skip the BIOS-button-mashing madness, and show you exactly how to fix the most common post-install hiccups.


Why Dual Boot? (The Best of Both Worlds)

When exploring Linux, people usually weigh three distinct paths:

  1. Virtual Machines (VirtualBox, VMware): Convenient for quick testing, but they run on top of Windows. They share your RAM, simulate graphics, and introduce noticeable input latency and disk overhead.
  2. WSL2 (Windows Subsystem for Linux): Great for terminal utilities and lightweight backend coding, but not a full standalone desktop environment.
  3. Dual Boot: Both Windows and Ubuntu run directly on your physical hardware (bare-metal). Each OS gets 100% of your CPU, memory, and graphics power with zero virtualization penalty.

This setup gives you the ultimate balance:

  • Ubuntu Linux gives you a lightning-fast, secure, and bloatware-free environment tailored for development, programming, and learning operating system internals.
  • Windows remains intact whenever you need proprietary productivity suites, creative software like Adobe Creative Cloud, or games with kernel-level anti-cheat engines.

Best of all, your personal files on Windows remain accessible directly from Ubuntu, and the entire setup is 100% reversible if you ever decide Linux is not for you.


What You Need Before Starting

Before touching any partition settings, gather these essentials:

  • A working PC or laptop running Windows 10 or Windows 11.
  • Available disk space: Ubuntu officially recommends at least 25GB, but for a comfortable setup where you can install packages and build projects without worrying about disk warnings, aim for 50GB to 100GB (or split your drive in half if you have a 1TB SSD).
  • A USB flash drive (8GB or larger): Keep in mind that everything on this USB stick will be completely wiped during the creation process, so make sure to copy any personal files off it first.
  • A quick backup: Dual booting is safe when done properly, but modifying partitions always carries a small risk of human error. Back up your crucial documents and photos to cloud storage or an external drive before continuing.

You will also need to download two free tools:

  1. Ubuntu Desktop ISO: Grab the latest LTS (Long Term Support) release from ubuntu.com/download/desktop. LTS versions receive five years of guaranteed stability and security patches.
  2. Rufus: A lightweight, portable utility that flashes the ISO file onto your USB drive, available at rufus.ie.

Step 1: Create the Bootable Ubuntu USB with Rufus

Our first milestone is turning your ordinary USB stick into bootable Linux installation media.

Plug your USB drive into your computer and launch Rufus (it runs as a portable .exe, so no installation is required).

Configure the fields as follows:

  • Device: Carefully check the drop-down menu and make sure your USB drive is selected. Double-check the drive letter and capacity. If you have an external backup drive plugged in, you do not want to overwrite it by mistake!
  • Boot selection: Click the SELECT button and browse to the Ubuntu .iso file you downloaded earlier.
  • Partition scheme: Leave this set to GPT.
  • Target system: Leave this set to UEFI (non CSM). Virtually all modern computers manufactured in the last decade boot via UEFI.

Once verified, hit START at the bottom.

Note on prompt modes: If Rufus prompts you with an ISOHybrid image detected alert, keep the recommended option: Write in ISO Image mode (Recommended) and click OK. Confirm the warning that your USB will be formatted.

The flashing process takes around 3 to 5 minutes depending on the speed of your USB port and drive. Once the status bar reaches 100% and displays READY, close Rufus. Your installer is ready to go.


Step 2: "Carve the Cake" - Shrink Your Windows Partition

Right now, Windows occupies the entirety of your primary storage drive (typically C:). To make room for Ubuntu, we need to shrink Windows slightly and leave a patch of unformatted space, known in disk terminology as Unallocated Space.

You do not need third-party partition managers for this; Windows has a reliable native tool built right in:

  1. Press Win + X on your keyboard (or right-click the Windows Start icon) and select Disk Management.
  2. Look at the disk volume list and locate your primary Windows drive—it will have the drive letter C:, usually followed by (BitLocker Encrypted) or (Healthy, Boot, Page File...).
  3. Right-click the C: partition and choose Shrink Volume....
  4. Windows will query the volume for available shrink space. In the dialog that appears, look for the field labeled "Enter the amount of space to shrink in MB".

Here is the exact formula to convert gigabytes to megabytes:

text
Desired Gigabytes (GB) x 1024 = Megabytes (MB) to enter

Common allocations:

  • 30 GB: 30720 MB
  • 50 GB: 51200 MB
  • 100 GB: 102400 MB

Enter your calculated value and click Shrink.

Within a few seconds, a new black block will appear directly to the right of your C: partition labeled Unallocated.

Crucial Rule: Leave that space unallocated! Do not right-click it to create a "New Simple Volume" or format it as NTFS. The Ubuntu installer specifically searches for unallocated space to build its own Linux filesystem (ext4 and swap) automatically.


Step 3: Disable Fast Startup and Check Secure Boot

Before we boot into the installer, there are two firmware-level settings we should adjust to prevent conflicts between the two operating systems.

1. Disable Windows Fast Startup

Windows includes a feature called Fast Startup that achieves quicker boot times by putting the kernel into a hybrid hibernation state instead of performing a clean shutdown. When hibernated, Windows keeps a lock on your hard drive partitions. If Linux attempts to mount or write to those partitions, it can trigger file corruption or drive-access errors.

To turn it off safely:

  1. Open the Start menu, search for Control Panel, and open it.
  2. Navigate to Hardware and Sound → Power Options.
  3. Click the link on the left sidebar: "Choose what the power buttons do".
  4. Click the link with the administrator shield: "Change settings that are currently unavailable".
  5. Scroll down to Shutdown settings, uncheck Turn on fast startup (recommended), and click Save changes.

2. Check and Disable Secure Boot (The Shift + Restart Trick)

Secure Boot is a UEFI security standard designed to prevent untrusted bootloaders from executing. While modern Ubuntu officially supports Secure Boot keys, it can still block third-party drivers (such as proprietary NVIDIA graphics cards or specific Wi-Fi chipsets) and occasionally prevents the bootloader from chaining properly.

First, check if Secure Boot is active:

  • Press Win + S, type System Information, and press Enter.
  • In the System Summary window, find the line labeled Secure Boot State.
  • If it says Off, you are already good to go!
  • If it says On, let's head into your BIOS/UEFI to disable it.

Pro Tip: No more spamming F-keys at boot!
Instead of restarting your computer and frantically tapping F2, F10, F12, or Delete trying to catch the split-second BIOS window, you can command Windows to restart directly into UEFI settings:

  1. Click the Windows Start button, then the Power icon.
  2. Hold down the SHIFT key on your keyboard, and while still holding it, click Restart.
  3. Windows will immediately transition to a blue "Choose an option" recovery screen.
  4. Click Troubleshoot → Advanced options → UEFI Firmware Settings → Restart.

Your machine will reboot straight into your motherboard's BIOS/UEFI interface cleanly and predictably.

Inside the BIOS:

  • Use your arrow keys (or mouse, if supported) to navigate to the Security or Boot tab.
  • Locate the Secure Boot option and change it to Disabled.
  • Press F10 (Save and Exit) to apply your changes and reboot.

Step 4: Boot into the USB and Install Ubuntu

Now for the main event: installing Ubuntu onto that unallocated slice of your SSD.

Plug your prepared USB installer into your computer. Once again, we can use the Shift + Restart technique to avoid guessing your boot-menu key:

  1. In Windows, hold SHIFT and click Restart.
  2. On the blue options screen, click Use a device.
  3. Select your USB drive from the list (often displayed as UEFI: [USB Brand Name]).

(If your Windows recovery menu lacks the "Use a device" button, simply reboot your PC and press your manufacturer's one-time boot menu key during the splash screen—commonly F12 for Dell/Lenovo, F9 for HP, or F8/F11 for Asus and MSI).

Ubuntu's bootloader will load. Highlight Try or Install Ubuntu and press Enter.

Once the Ubuntu desktop loads, the welcome wizard will appear:

  1. Language & Keyboard: Select your preferred language (e.g., English) and click Install Ubuntu. Choose your keyboard layout (typically English US).
  2. Network Connection: Connect to your Wi-Fi or Ethernet network. Connecting now allows Ubuntu to fetch minor package updates and hardware drivers during installation.
  3. Installation Type Options: Choose Normal installation so you get useful baseline tools (web browser, utilities, office tools). Check the box for "Install third-party software for graphics and Wi-Fi hardware"—this ensures your Wi-Fi card and dedicated GPU work seamlessly right out of the box.

The Critical Step: Installation Type

Next comes the screen where newcomers often get nervous: disk partitioning.

Take a breath and look at the options. You should see a choice that says:

👉 "Install Ubuntu alongside Windows Boot Manager"

This is the magic option. The Ubuntu installer has automatically detected your existing Windows installation and recognized the empty, unallocated space we set aside in Step 2. Choosing this option guarantees that Ubuntu will isolate itself within that free space and configure the dual-boot loader without touching or erasing your Windows files.

(If you do not see this option, ensure you left the space Unallocated in Windows rather than formatting it with a filesystem).

Proceed with the setup:

  • Location / Timezone: Click your geographical region on the map (e.g., your local timezone) and continue.
  • User Profile: Enter your real name, your computer's network name, a username, and a strong password.

    Important Reminder: Keep this password in a safe place! In Linux, this password is your sudo root administrative credential. You will need it whenever you install new software or make system modifications.

Click Install Now and confirm the partition write prompt. The installation will run for about 5 to 10 minutes.

When the process completes, a prompt will announce: "Installation is complete. You need to restart the computer in order to use the new installation."

  • Click Restart Now.
  • When prompted with "Please remove the installation medium, then press ENTER", unplug your USB flash drive and hit Enter.

Step 5: Fixing the Boot Priority (If You Boot Straight Back to Windows)

Once your computer restarts, one of two things will happen:

Scenario A: The GRUB Menu Appears (Success!)

A clean black menu titled GNU GRUB appears on your monitor:

  • Ubuntu (selected by default)
  • Windows Boot Manager

If you see this, you are done! Use the arrow keys to pick your OS and hit Enter. If you leave it alone for a few seconds, it will boot into Ubuntu automatically.

Scenario B: Your PC Boots Straight Back into Windows (Common Fix)

Don't panic! This happens frequently on modern UEFI motherboards (especially laptops and Mini PCs). Your Ubuntu installation is completely fine—it simply means your motherboard's Boot Order still lists "Windows Boot Manager" as the #1 priority, so it ignores the new Linux bootloader.

Here is how to fix it in under two minutes:

  1. Inside Windows, hold down the SHIFT key and click Restart.
  2. Navigate to Troubleshoot → Advanced options → UEFI Firmware Settings → Restart.
  3. In your BIOS/UEFI, navigate to the Boot menu or Boot Option Priorities.
  4. Examine the boot priority list. You will see both Windows Boot Manager and ubuntu listed as available UEFI boot targets.
  5. Use the navigation keys (typically +/-, F5/F6, or your mouse) to move ubuntu to the #1 spot, above Windows Boot Manager.
  6. Press F10 to Save and Exit.

When your computer boots up, the GRUB menu will now welcome you every single time. Whenever you want to return to Windows, just tap the down arrow key to highlight Windows Boot Manager and press Enter.


Step 6: First Steps in Your New Ubuntu System

Congratulations on crossing the bridge into Linux! Here are three quick tips to get comfortable:

1. Update your system packages

Open your terminal with the universal shortcut Ctrl + Alt + T and run:

bash
sudo apt update && sudo apt upgrade -y

Type your password when prompted (note: terminal will not show asterisks or dots while typing passwords on Linux—this is an intentional security design; simply type your password and hit Enter). This refreshes package repositories and patches your system with the newest security updates.

2. Install desktop apps via the App Center

You do not have to live exclusively in the terminal. Open the App Center from your dock to search for and install popular apps like VS Code, Google Chrome, Spotify, Discord, and VLC with a single click.

3. Access your Windows files from Ubuntu

Linux handles Windows file systems (NTFS) natively. Open the Files app in Ubuntu, click on Other Locations in the left sidebar, and you will see your Windows drive partitions listed. You can browse, open, and edit your Windows documents, images, and project files directly without having to copy them back and forth over a USB drive.


How to Safely Remove Ubuntu (If You Ever Change Your Mind)

One of the greatest advantages of dual booting on modern UEFI systems is how clean and reversible it is. If you ever want to revert your computer back to a 100% Windows-only state, you can do so in three easy steps:

  1. Boot into Windows.
  2. Open Disk Management (Win + X → Disk Management).
  3. Find the Linux partitions (they will not have a drive letter and will match the storage size you originally carved out). Right-click each Linux partition and select Delete Volume. They will merge back into black Unallocated space.
  4. Right-click your C: partition and choose Extend Volume..., following the wizard to absorb that unallocated space back into your main Windows drive.
  5. To clean up the GRUB boot entry so your machine boots cleanly without hesitation, open an elevated Command Prompt (Run as Administrator) and run:
cmd
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd

Your computer is now restored completely to its original, out-of-the-box Windows configuration.


Wrapping Up

Dual booting does not have to be an intimidating trial-and-error ordeal. By understanding how partitions work, using the Shift-Restart shortcut to glide into UEFI settings without guesswork, and knowing how to arrange boot priorities, you get a clean, rock-solid dual-boot setup in about twenty minutes.

Happy dual booting!