Kokil Thapa - Professional Web Developer in Nepal
Freelancer Web Developer in Nepal with 15+ Years of Experience

Kokil Thapa is an experienced full-stack web developer focused on building fast, secure, and scalable web applications. He helps businesses and individuals create SEO-friendly, user-focused digital platforms designed for long-term growth.

Dual Boot Ubuntu with Windows: Step-by-Step

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.

Dual Boot Disk Layout (UEFI + GPT)Single Physical SSD or HDDEFI~512 MBWindows C:NTFS shrunkUbuntu ext4root /swapor swapfileGRUB boot menu picks Windows or UbuntuUEFI firmware loads shim + GRUB from EFI partitionWindows Boot Manager remains a GRUB entry
Typical UEFI dual boot layout: EFI System Partition, shrunk Windows NTFS volume, Ubuntu ext4 root, and optional swap.

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

  1. Open Disk Management: press Win + X, then choose Disk Management.
  2. Right-click the main Windows partition—usually C:—and select Shrink Volume.
  3. Enter the amount to shrink in megabytes. For 80 GB of Linux space, enter about 81920.
  4. 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:

  1. Open Control Panel → Power Options → Choose what the power buttons do.
  2. Click Change settings that are currently unavailable.
  3. Uncheck Turn on fast startup (recommended).
  4. 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.

Dual Boot Installation Workflow1. Backup2. Shrink3. USB4. BootInstall alongsideWindows Boot ManagerCopy filesand install GRUBRebootpick OS in GRUBPost-install: updates, drivers, ntfs fixOptional dev stack: PHP, Docker, Node.js
End-to-end Dual Boot Ubuntu with Windows workflow from backup through GRUB first boot and developer setup.

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.

FactorUEFI + GPT (modern PCs)Legacy BIOS + MBR (older PCs)
Boot loader locationEFI System Partition (FAT32)Master Boot Record of the disk
USB boot entryChoose UEFI: USB nameChoose USB without UEFI prefix
Windows coexistenceWindows Boot Manager in GRUB menuchainloader +1 on NTFS partition
Partition limitMany partitions, no extended logicFour primary partitions max on MBR
Repair if GRUB vanishesboot-repair or live USB efibootmgrLive 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.

UEFI Boot Chain on Dual-Boot PCsUEFIfirmwareshimSecure BootGRUBmenuOSUbuntu kernelsystemd, desktopWindows Boot Mgrwinload.efiGRUB chainloads Windows EFI binary without overwriting itBoth OS entries live on the shared EFI System Partition
UEFI firmware loads shim and GRUB, then chainloads either the Ubuntu kernel or Windows Boot Manager.

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.

Dual Boot Gotchas and FixesFast Startup ONNTFS mounts read-onlyBitLocker activeshrink or install failsWrong USB boot entryLegacy vs UEFI mismatchGRUB missingafter Windows updateDisable Fast Startupfull shutdownsudo update-grubor Boot Repair ISO
Common Dual Boot Ubuntu with Windows failures—Fast Startup, BitLocker, wrong firmware boot mode—and the fixes that work in practice.

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-grub after 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

Yes, if you shrink a partition and pick Install alongside Windows Boot Manager. Ubuntu installs into unallocated space and does not wipe Windows. Always back up first—partition edits always carry risk.

Ubuntu installs on about 25 GB minimum, but 80–100 GB or more is realistic for Docker, local MySQL, IDE caches, and Git repos on a dev workstation.

Use a flash drive of 8 GB or larger; 16 GB is recommended for the Ubuntu 24.04 LTS ISO and a reliable Rufus or balenaEtcher write.

Fast Startup hibernates the Windows kernel on shutdown instead of fully closing the system. Ubuntu may then mount your NTFS partition read-only or report dirty filesystem flags. Turn it off in Control Panel under Power Options, click Change settings that are currently unavailable, uncheck Turn on fast startup, save, and perform a full shutdown from the Start menu—not Restart—before you install Ubuntu. If read-only access persists after install, disable Fast Startup again in Windows and run ntfsfix on the correct partition after installing ntfs-3g.

Yes. If BitLocker encrypts your drive, suspend it before you shrink volumes in Disk Management and store the recovery key offline. Skipping this step has bricked boot paths on machines I have repaired for clients. After Ubuntu installs successfully and GRUB shows both operating systems, you can re-enable BitLocker. Partition edits on an encrypted volume without proper suspension can corrupt the boot chain or lock you out until recovery media is used.

On a standard single-drive laptop where the installer detects Windows, pick Install Ubuntu alongside Windows Boot Manager. The installer creates ext4 and swap—or a swapfile—inside unallocated space and registers GRUB with the existing EFI System Partition. Choose Something else for manual partitioning when you have multiple drives, want a separate /home partition, or need precise sizes. Do not format the EFI System Partition; mount it at /boot/efi if asked. For boot loader installation, select the whole disk such as /dev/nvme0n1, not an individual partition.

Download Ubuntu 24.04 LTS from the official site and verify the ISO SHA256 checksum before writing. In Rufus, set Partition scheme to GPT, Target system to UEFI (non CSM), File system to FAT32, and leave cluster size at default. Insert the USB, reboot, open the one-time boot menu, and select the USB entry that mentions UEFI—not Legacy. The live environment should load within a minute. On slow internet links, optional updates during install can wait; patch later with apt after first boot.

Almost every laptop sold since 2018 uses UEFI with GPT disks; older PCs may still run Legacy BIOS with MBR. On UEFI, GRUB writes to the EFI System Partition and chains Windows Boot Manager; USB boot entries must include the UEFI prefix. Legacy systems install GRUB to the Master Boot Record with a chainloader on the NTFS partition, and MBR allows only four primary partitions. Picking the wrong firmware boot mode after install is the most common post-setup mistake. Press F12, F2, Esc, or Del at startup to confirm which mode your machine reports.

Remove the USB when prompted and confirm the GRUB menu lists Ubuntu and Windows Boot Manager. Boot Ubuntu first and run sudo apt update && sudo apt upgrade -y, then sudo reboot. Boot Windows once to confirm it still loads and check Secure Boot state in msinfo32 matches your plan. Edit /etc/default/grub if you want Ubuntu as default with a visible timeout, then run sudo update-grub. If Windows vanishes from the menu after a Feature Update, boot Ubuntu and run sudo update-grub again—the os-prober hook usually redetects it.

Fast Startup is the usual cause. Windows hibernates the kernel on shutdown, leaving the NTFS volume in a state Linux refuses to write to safely. Disable Fast Startup in Windows, perform a full shutdown—not Restart—and boot Ubuntu again. Install ntfs-3g with sudo apt install ntfs-3g, find your Windows partition with lsblk -f, then run sudo ntfsfix on the correct device such as /dev/nvme0n1p3. Never write to NTFS from Linux while Windows is hibernated; data loss is rare but possible.

Windows Feature Updates sometimes set Windows Boot Manager as the sole UEFI default even though Ubuntu still exists on disk. Boot Ubuntu if it remains accessible and run sudo update-grub. If GRUB is gone entirely, 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 settings and confirm Ubuntu or GRUB remains in the boot priority list.

Ubuntu ships signed shim and GRUB binaries that work with Secure Boot enabled on most hardware, so you can usually leave it on. If the live USB fails to boot, disable Secure Boot temporarily in firmware, install Ubuntu, then re-enable and test. Some Wi-Fi chips need proprietary drivers installed after first boot regardless of Secure Boot state. After installation, run msinfo32 in Windows to confirm Secure Boot state matches your plan on both sides of the dual-boot setup.

Dual boot gives full hardware access, which is better for Docker, Android emulators, and large compile jobs that feel sluggish inside VirtualBox on the same hardware. VMs are safer for casual testing and snapshots because they do not touch disk partitions. Many developers dual boot for daily work and keep a Windows VM inside Ubuntu for rare legacy apps. If you prefer not to maintain dual boot long term, moving Linux to the primary drive and running Windows in a VM is a common next step.

Removing Linux ext4 volumes without repairing the boot chain can leave an unbootable system. On Legacy BIOS systems, boot Windows installation media and run bootrec /fixmbr. On UEFI systems, recreate the Windows EFI entry with bcdboot. Always repair the boot loader before rebooting after deleting Ubuntu partitions. The Windows Boot Manager entry may remain but point nowhere, or firmware may still try to chainload GRUB from a missing shim binary on the EFI partition.

After dual boot stabilises on Ubuntu 24.04, install build tools with sudo apt install git curl unzip build-essential, then PHP 8.3 packages including php-cli, php-mbstring, php-xml, php-mysql, and php-curl. Install Composer 2.10 globally per the official documentation. Add ondrej/php if you need multiple PHP versions side by side. Install Docker for containerised projects and Node.js 26 LTS via NodeSource when you build front-end assets with Vite 8.x locally. Enable UFW, keep automatic security updates on, and match local PHP-FPM and Nginx versions to your production VPS to reduce deployment drift.

Share this article

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.

Quick Contact Options
Choose how you want to connect me: