Virtual machines and Windows Subsystem for Linux (WSL2) are powerful tools, but they cannot replace bare-metal hardware access when you require raw GPU compute power, kernel-level development access, or complete isolation from Windows background telemetry. Dual-booting Windows 11 and Ubuntu Linux on a single machine allows you to enjoy the best of both worlds with maximum hardware performance.
Essential Safety Prerequisites
Modifying drive partitions carries an inherent risk of data loss if performed incorrectly. Before proceeding:
- Create a full external system image backup of your Windows 11 drive.
- Disable BitLocker Drive Encryption in Windows (or ensure you have your 48-digit recovery key saved in an external location).
- Prepare a 16GB or larger USB flash drive.
Step 1: Shrinking the Windows 11 Partition
To provide unallocated space for your Ubuntu installation:
- Press
Windows Key + Xand select Disk Management. - Locate your primary
C:drive partition, right-click it, and select Shrink Volume. - Enter the amount of space to shrink in megabytes. For a comfortable Ubuntu development environment, allocate at least 60,000 MB (approx. 60GB) to 100,000 MB (100GB).
- Click Shrink. You will now see black “Unallocated Space” beside your Windows volume. Leave it unformatted.
Step 2: Disabling Windows Fast Startup & Secure Boot Setup
Windows 11 utilizes a hybrid hibernation feature called “Fast Startup” that locks partition headers upon shutdown, preventing Linux from safely accessing shared NTFS storage drives:
- Open Control Panel → Power Options → “Choose what the power buttons do”.
- Click “Change settings that are currently unavailable”.
- Uncheck Turn on fast startup (recommended) and save changes.
Step 3: Creating the Ubuntu Bootable USB
Download the latest official Ubuntu LTS ISO from the canonical website. Download Rufus or balenaEtcher to flash the ISO to your USB flash drive using the GPT partition scheme and UEFI target system.
Step 4: Installing Ubuntu Alongside Windows Boot Manager
Restart your computer, enter your motherboard BIOS/Boot menu (typically F12, F11, or Del), and select your UEFI USB drive:
- Select “Try or Install Ubuntu”.
- Follow the setup wizard to language and keyboard selection.
- When prompted for “Installation type”, select Install Ubuntu alongside Windows Boot Manager. The Ubuntu installer will automatically detect your unallocated space and partition it with the modern Ext4 filesystem.
- Complete the user account and password creation, and proceed with installation.
Step 5: Managing the GRUB Bootloader
Upon rebooting, your computer will display the GNU GRUB menu, presenting you with the option to boot into Ubuntu or Windows Boot Manager. To set your preferred default operating system or adjust the countdown timeout, you can install the visual Grub Customizer tool inside Ubuntu or edit /etc/default/grub directly.