Dual booting allows you to run both Ubuntu Linux and Windows on the same computer, choosing which operating system to load each time you start up. This is the ideal setup for users who need Windows for specific applications or gaming while also wanting access to Linux for development, privacy, or simply to explore an alternative operating system.
Unlike running Linux in a virtual machine, dual booting gives Ubuntu direct access to your hardware, resulting in significantly better performance, full graphics acceleration, and native speed for all operations. The GRUB bootloader installed by Ubuntu manages the boot process and presents a menu at startup where you select your OS.
This guide covers the complete process from preparing your Windows installation to installing Ubuntu alongside it. The process is safe when followed correctly — your existing Windows installation and all its data remain untouched. However, any time you modify disk partitions, creating a backup of important data is strongly recommended as a precaution.
Download Ubuntu ISO from ubuntu.com, create a bootable USB with Rufus or balenaEtcher, shrink your Windows partition in Disk Management to free at least 50 GB, boot from USB, and select "Install Ubuntu alongside Windows." The installer handles partitioning automatically.
Dual Boot Setup — Ubuntu + Windows 10/11 (UEFI/GPT)Basic Troubleshooting
Step 1: Back up your important data. While dual booting is safe when done correctly, working with disk partitions always carries some risk. Copy your important files to an external drive, cloud storage, or another backup location. Also note your Windows product key (run wmic path softwarelicensingservice get OA3xOriginalProductKey in Command Prompt) in case you ever need to reinstall Windows.
Step 2: Free up disk space and shrink the Windows partition. Open Windows Disk Management (right-click Start > Disk Management). Right-click your main Windows partition (usually C:) and select "Shrink Volume." Allocate at least 50 GB for Ubuntu — 100 GB or more is recommended if you plan to install many applications or store files in Ubuntu. Enter the amount in megabytes (50 GB = 51200 MB) and click Shrink. The freed space will appear as "Unallocated."
Step 3: Download the Ubuntu ISO and create a bootable USB drive. Go to ubuntu.com/download and download the latest LTS (Long Term Support) version. Download Rufus (rufus.ie) on Windows. Insert a USB drive with at least 8 GB capacity (all data on it will be erased). Open Rufus, select your USB drive, click SELECT to choose the Ubuntu ISO file, leave all other settings at their defaults (GPT partition scheme, UEFI), and click START.
Step 4: Disable Fast Startup in Windows. Go to Control Panel > Power Options > "Choose what the power buttons do" > "Change settings that are currently unavailable." Uncheck "Turn on fast startup" and click Save. Fast Startup puts Windows into a hybrid hibernation state that can cause filesystem conflicts when Ubuntu tries to access the Windows partition.
Step 5: Boot from the USB drive. Restart your computer and enter the BIOS/UEFI settings (usually by pressing F2, F12, Del, or Esc during startup — the key varies by manufacturer). Disable Secure Boot if Ubuntu does not appear as a boot option. Set the USB drive as the first boot device, or use the boot menu (usually F12) to select the USB drive. The Ubuntu installer will load from the USB.
Advanced Solutions
Step 1: Install Ubuntu alongside Windows. When the Ubuntu installer loads, select your language and click "Install Ubuntu." Choose your keyboard layout. On the "Updates and other software" screen, select "Normal installation" and check "Install third-party software for graphics and Wi-Fi hardware." On the "Installation type" screen, select "Install Ubuntu alongside Windows Boot Manager" — this is the safest option that automatically uses the unallocated space you created earlier.
Step 2: For manual partitioning (advanced users), select "Something else" on the Installation type screen. In the unallocated space, create three partitions: a root partition (/) with ext4 filesystem using most of the space (minimum 25 GB), a swap partition equal to your RAM size (or at least 8 GB for hibernation support), and optionally a separate /home partition with ext4 for your personal files. Select the EFI System Partition as the bootloader installation location.
Step 3: Complete the installation. Set your timezone, create your user account with a strong password, and click Install. The installation takes 10-20 minutes depending on your hardware speed. When finished, click "Restart Now" and remove the USB drive when prompted. The GRUB bootloader menu will appear on every startup, letting you choose between Ubuntu and Windows.
Step 4: If Windows does not appear in the GRUB boot menu after installation, boot into Ubuntu and open a terminal. Run sudo os-prober to detect Windows, then run sudo update-grub to regenerate the GRUB menu. If os-prober does not detect Windows, edit /etc/default/grub and add GRUB_DISABLE_OS_PROBER=false, then run sudo update-grub again. Reboot to verify both operating systems appear in the menu.
Step 5: If you encounter a black screen after installation, it is likely a graphics driver issue. Boot into Ubuntu recovery mode from the GRUB menu (Advanced options > Recovery mode). Select "Enable networking" then "Drop to root shell." Install the appropriate proprietary graphics driver: for NVIDIA, run ubuntu-drivers autoinstall; for AMD, the open-source driver included with Ubuntu usually works well. Reboot normally after driver installation.
Why Does This Problem Happen?
Setting up a dual boot requires careful preparation because Windows and Linux use different filesystems, bootloaders, and disk management approaches. Windows uses NTFS and the Windows Boot Manager, while Ubuntu uses ext4 and GRUB. The GRUB bootloader installed by Ubuntu takes over the boot process and can chainload the Windows Boot Manager, allowing both systems to coexist on the same disk.
Most dual boot issues arise from three areas: UEFI Secure Boot blocking the Ubuntu installer, incorrect partition configuration, or GRUB not detecting the Windows installation. Modern computers use UEFI firmware and GPT partition tables, and Ubuntu has supported this configuration fully since version 12.04. Keeping both operating systems updated and avoiding modifications to each other's partitions from within the other OS ensures a stable dual boot setup.