
September 11, 2026
12 min read
By Kokil Thapa | Last reviewed: September 2026
Dual Boot Ubuntu with Windows: Step-by-Step is the safest path when you need a Linux dev environment without giving up Windows-only tools. You keep your existing Windows install, carve out unallocated space, and let the Ubuntu installer place GRUB on the EFI System Partition or MBR. I've set up dual-boot workstations on client laptops in Kathmandu and on my own machines for Laravel deployment testing before pushing to production VPS hosts. This guide walks through backup, partitioning, USB creation, installation, and the fixes that actually matter after first reboot.
What Do You Need Before You Dual Boot Ubuntu with Windows?
Start with a full backup. Dual booting is routine, but partition edits always carry risk. Copy important files to an external drive or cloud storage before you touch disk layout.
Check your firmware mode next. Press the boot menu key during startup—often F12, F2, Esc, or Del—and note whether the machine says UEFI or Legacy. Almost every laptop sold since 2018 uses UEFI with GPT disks. Older PCs may still run Legacy BIOS with MBR. The install path differs slightly, and picking the wrong boot entry after install is the most common post-setup mistake.
Hardware and software checklist
- A PC with Windows 10 or Windows 11 already installed and activated
- At least 50 GB free unallocated space—100 GB or more if you plan Docker, local MySQL, and IDE caches
- A USB flash drive of 8 GB or larger (16 GB recommended)
- Stable internet for downloading the Ubuntu ISO and updates
- Your Windows BitLocker recovery key if drive encryption is enabled
Download Ubuntu 24.04 LTS from the official site. LTS releases receive security updates for five years, which matches how most developers treat a workstation OS. If you are new to the desktop, skim the Ubuntu download and installation guide first—it covers checksum verification, which you should not skip.
How Do You Free Disk Space on Windows for Ubuntu?
Ubuntu needs unallocated space—not a new NTFS drive letter inside Windows. You shrink an existing volume and leave the gap empty for the Linux installer.
Shrink the Windows partition safely
- Open Disk Management: press Win + X, then choose Disk Management.
- Right-click the main Windows partition—usually C:—and select Shrink Volume.
- Enter the amount to shrink in megabytes. For 80 GB of Linux space, enter about 81920.
- Click Shrink. You should see black Unallocated space beside C:.
If Shrink offers far less space than you expect, Windows blockers are usually the cause. Disable hibernation temporarily in an elevated Command Prompt:
powercfg /h off Run Disk Cleanup on C:, including system files. Uninstall large unused apps. Reboot, then try shrinking again.
BitLocker warning: If encryption is on, suspend BitLocker before partitioning. Store the recovery key offline. Re-enable it after Ubuntu installs successfully. Skipping this step has bricked boot paths on machines I've repaired for clients.
Disable Fast Startup before you install
Windows Fast Startup hibernates the kernel on shutdown. Ubuntu may mount NTFS read-only or report dirty filesystem flags. Turn it off:
- Open Control Panel → Power Options → Choose what the power buttons do.
- Click Change settings that are currently unavailable.
- Uncheck Turn on fast startup (recommended).
- Save changes and perform a full shutdown—not Restart—from the Start menu.
Microsoft documents UEFI/GPT partitioning in its hardware manufacturing guides. Reading that page helps when Disk Management refuses to shrink because of immovable files at the end of the volume.
How Do You Create a Bootable Ubuntu USB and Start the Installer?
You need a reliable bootable USB. On Windows, use the official Ubuntu tutorial for creating a USB stick on Windows with Rufus or balenaEtcher. Verify the ISO SHA256 checksum before writing.
Rufus settings for UEFI systems
- Partition scheme: GPT
- Target system: UEFI (non CSM)
- File system: FAT32
- Cluster size: default
Insert the USB, reboot, and open the one-time boot menu. Select the USB entry that mentions UEFI, not Legacy. The Ubuntu live environment should load within a minute.
Choose Try or Install Ubuntu. Connect to Wi-Fi if prompted. Updates during install are optional on slow links—you can patch later with apt.
Which Ubuntu Installer Option Should You Choose on a Dual-Boot PC?
When the installer detects Windows, it usually offers Install Ubuntu alongside Windows Boot Manager. Pick that on standard single-drive laptops. The installer creates ext4 and swap—or a swapfile—inside the unallocated region and registers GRUB with the existing EFI System Partition.
When to use Something else instead
Choose Something else (manual partitioning) when you have multiple drives, want a separate /home partition, or need precise sizes. A sensible manual layout on a 100 GB Linux slice:
- / ext4 — 70 GB mounted at root
- swap — 8–16 GB, or skip and use a swapfile on Ubuntu 24.04+
- /home ext4 — remaining space for user files and project repos
Do not format the EFI System Partition. Mount it at /boot/efi if the installer asks. Formatting EFI destroys the Windows boot entry until you run repair tools.
For Device for boot loader installation, select the whole disk—/dev/nvme0n1 or /dev/sda—not an individual partition. On UEFI, GRUB still writes to the EFI partition correctly when you pick the disk.
Secure Boot note
Ubuntu ships signed shim and GRUB binaries that work with Secure Boot enabled on most hardware. If the live USB fails to boot, disable Secure Boot temporarily in firmware settings, install Ubuntu, then re-enable and test. Some Wi-Fi chips need proprietary drivers installed after first boot anyway.
| Factor | UEFI + GPT (modern PCs) | Legacy BIOS + MBR (older PCs) |
|---|---|---|
| Boot loader location | EFI System Partition (FAT32) | Master Boot Record of the disk |
| USB boot entry | Choose UEFI: USB name | Choose USB without UEFI prefix |
| Windows coexistence | Windows Boot Manager in GRUB menu | chainloader +1 on NTFS partition |
| Partition limit | Many partitions, no extended logic | Four primary partitions max on MBR |
| Repair if GRUB vanishes | boot-repair or live USB efibootmgr | Live USB grub-install /dev/sda |
The Ubuntu community UEFI page remains the best reference when firmware behaves oddly across vendors. Keep that bookmarked before you touch manual partition edits.
What Should You Do Immediately After Dual Booting Ubuntu with Windows?
Remove the USB when prompted. The machine should show the GRUB menu with Ubuntu and Windows Boot Manager entries. Boot Ubuntu first and apply updates:
sudo apt update && sudo apt upgrade -y
sudo reboot Then boot Windows once to confirm it still loads. Run msinfo32 in Windows and check that Secure Boot state matches your plan.
Fix NTFS access from Ubuntu
If Ubuntu mounts your Windows drive read-only, Fast Startup is still the usual suspect. Disable it again in Windows and run a full shutdown. Install NTFS tooling:
sudo apt install ntfs-3g
sudo ntfsfix /dev/nvme0n1p3 Replace the partition device with your actual Windows NTFS partition. Find it with:
lsblk -f Never write to NTFS from Linux while Windows hibernated. Data loss is rare but possible.
Set GRUB defaults developers actually want
Most engineers want Ubuntu as the default OS but keep Windows one menu entry away. Edit GRUB config:
sudo nano /etc/default/grub Typical tweaks:
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=menu Apply changes:
sudo update-grub If Windows disappears from the menu after a Feature Update, boot Ubuntu and run sudo update-grub again. The os-prober hook usually redetects Windows.
How Do You Turn a Dual-Boot Ubuntu Machine Into a Dev Workstation?
Dual booting is often the first step before you run the same stack on a remote VPS. On a production Laravel app I maintain, local Ubuntu matches the server’s PHP-FPM and Nginx versions. That cuts deployment surprises.
A practical package baseline for PHP and Laravel work
After dual boot stabilises, install build tools and PHP. Ubuntu 24.04 ships PHP 8.3 in default repos; add ondrej/php if you need multiple versions side by side:
sudo apt install git curl unzip build-essential
sudo apt install php-cli php-mbstring php-xml php-mysql php-curl Follow the dedicated install PHP on Ubuntu guide for FPM and extension details. Install Composer 2.10 globally per the official Composer documentation.
For containerised projects, install Docker next using the Docker on Ubuntu tutorial. Node.js 26 LTS via NodeSource works when you build front-end assets with Vite 8.x locally before pushing artefacts to a server without Node.
Security habits that carry over from server work
A dual-boot laptop holding client repos deserves the same baseline hardening you apply on VPS hosts. Enable the UFW firewall, install fail2ban if you expose services, and keep automatic security updates on. The Ubuntu security hardening guide and UFW firewall walkthrough cover the essentials without overcomplicating a desktop.
Generate strong passphrases for disk encryption and sudo with a dedicated password generator tool instead of reusing browser passwords.
If you prefer not to maintain dual boot long term, many developers eventually move Linux to the primary drive and run Windows in a VM. Until then, dual boot gives bare-metal I/O for local MySQL benchmarks and Docker builds that feel sluggish inside VirtualBox on the same hardware.
When Windows updates overwrite the boot order
Feature Updates sometimes set Windows Boot Manager as the sole UEFI default. Ubuntu still exists on disk. Boot the live USB, choose Try Ubuntu, open a terminal, mount your install, and chroot—or use Boot Repair from a GRUB rescue session. Prevention beats repair: after major Windows updates, enter firmware and confirm Ubuntu or GRUB remains in the boot priority list.
For deeper recovery, the Ubuntu installation guide for beginners and Ubuntu desktop complete guide explain live-session mounting. The essential Ubuntu terminal commands cheat sheet helps when you are fixing partitions under pressure.
Key Takeaways
- Back up files, suspend BitLocker, and disable Fast Startup before shrinking Windows partitions for Linux.
- Leave truly unallocated space—do not create a new NTFS volume for Ubuntu during Windows Disk Management.
- Boot the USB in UEFI mode on modern hardware and choose Install alongside Windows unless you have a multi-disk manual layout.
- Run
sudo update-grubafter Windows updates if the Linux entry vanishes from the boot menu. - Match local PHP, Nginx, and Docker versions to your production VPS to reduce deployment drift.
- Keep at least 80–100 GB for Ubuntu if you run IDEs, containers, and local databases daily.
People Also Ask
Can I dual boot Ubuntu with Windows 11 without losing data?
Yes, if you shrink an existing partition and install into free unallocated space. The Ubuntu installer does not wipe Windows when you select Install alongside Windows Boot Manager. Still back up first—power loss mid-shrink can corrupt NTFS.
How much disk space does Ubuntu need for dual boot?
Ubuntu asks for about 25 GB minimum. That is tight for development work. Allocate 80 GB or more if you install Docker images, local databases, and multiple Git repositories. A separate /home partition makes future distro upgrades simpler.
Is it better to dual boot or run Ubuntu in a virtual machine?
Dual boot gives full hardware access—better for Docker, Android emulators, and large compile jobs. VMs are safer for casual testing and snapshots. Many developers dual boot for daily work and keep a Windows VM inside Ubuntu for rare legacy apps.
What happens if I delete Ubuntu later?
Removing Linux partitions without fixing the boot loader can leave an unbootable system. After deleting ext4 volumes, boot Windows installation media and run bootrec /fixmbr on Legacy systems or recreate the Windows EFI entry with bcdboot on UEFI. Always repair the boot chain before rebooting.
Next Steps After Your Dual Boot Ubuntu with Windows Setup
You now have a native Linux environment beside Windows without buying a second machine. Use Ubuntu for Git, PHP, Docker, and the same PHP app server patterns you run in production. Use Windows when proprietary tools require it. If dual boot is part of a wider move toward Linux hosting for your business site, review Linux system administration services or the Adventure Third Pole Trek portfolio case for a Laravel + Livewire stack shipped on Ubuntu infrastructure.
Need help migrating a live site or hardening a VPS after you outgrow local dual boot? See website migration services and web development services. For permission issues on shared project folders, read Ubuntu file permissions explained. To tune desktop responsiveness, try speed up Ubuntu performance.
Dual Boot Ubuntu with Windows: Step-by-Step is repeatable once you respect firmware mode, partition boundaries, and Fast Startup. Most failures I see in client support calls trace back to skipped backups or a Legacy USB boot on a UEFI-only laptop—not to Ubuntu itself. Take the afternoon, follow the sequence, and you will have a workstation that mirrors your production stack. Contact us if you want a second pair of eyes on disk layout before you click Install, or browse more guides on the blog and about page.
Frequently Asked Questions
0 Comments
Leave a comment
Your email is not published. Comments appear once they have been read. Sign in to have your details filled in.

