Will Installing Ubuntu Erase Windows? A Practical Guide

Learn whether installing Ubuntu will erase Windows, how to dual-boot safely, and steps to back up data before switching. This guide covers disk layouts, boot modes, and recovery options for homeowners and DIY enthusiasts.

Install Manual
Install Manual Team
·5 min read
Dual-Boot with Ubuntu - Install Manual
Photo by appleservicevia Pixabay
Quick AnswerSteps

Will installing Ubuntu erase Windows? The short answer is: it depends. If you choose to erase the entire disk during installation, Windows will be removed. If you pick the live USB option to install Ubuntu alongside Windows, you can keep Windows and create a dual-boot setup. This guide explains how to protect Windows, verify boot mode, and complete a safe Ubuntu installation.

The Reality: will Ubuntu erase Windows?

According to Install Manual, the outcome of installing Ubuntu hinges on your installer choice and disk layout. Most modern PCs use UEFI with GPT partitions. If you run the Ubuntu installer and select the option to erase the disk, Windows will be removed and the drive repurposed for Ubuntu. If you instead choose to install Ubuntu alongside Windows, Windows remains intact and a new boot option is created. The key is to understand how the installer writes the new bootloader (GRUB) and which partitions it touches. With careful preparation, you can preserve your existing Windows installation while gaining a fully functional Ubuntu system. This approach is especially important for DIY enthusiasts who rely on Windows for specific software or gaming. Install Manual analysis shows that most users successfully retain Windows when they opt for a dual-boot path and avoid discarding the Windows partitions during setup.

How dual-boot works

Dual-booting means your computer can start into either Windows or Ubuntu, depending on what you choose at startup. When you install Ubuntu with the proper settings, the installer installs the GRUB bootloader, which presents a menu allowing you to pick an OS. You do not lose Windows unless you explicitly instruct the installer to erase Windows’ partitions. For homeowners, this is the safest way to experiment with Linux without abandoning Windows entirely. The Install Manual team emphasizes verifying that Windows still boots after the first reboot and ensuring your data remains safe even if something goes wrong during the process. A well-planned dual-boot setup also simplifies access to both environments for different tasks.

Disk layouts and boot modes

Understanding disk layouts is crucial. Most Windows systems today use GPT with UEFI boot. Ubuntu can boot in either UEFI or legacy BIOS mode, but mixing boot modes can cause boot issues. Before starting, ensure your BIOS/UEFI settings align with your intended setup: enable UEFI, disable Secure Boot if you encounter installer issues, and preserve Windows recovery environments. If Windows uses BitLocker, you should suspend it during installation to prevent auto-unlock problems. By keeping Windows partitions intact and allocating new space for Ubuntu, you enable a clean, safer installation and turn on a robust GRUB menu for OS selection at startup.

Preparing before install

Before you touch the hardware, back up all important files. Verify Windows is activated and consider creating a Windows recovery drive. Turn off Fast Startup in Windows to prevent file-system locks during the install. Decide how much disk space to allocate for Ubuntu—include room for / (root), /home (optional), and a swap area. Verify you have the Ubuntu ISO downloaded from the official site and a reliable USB drive ready to become a bootable installer. This preparatory work minimizes the risk of accidental data loss and reduces install time.

During installation: options and safeguards

Boot from the USB installer and start the Ubuntu installation. When prompted, pick the 'Install Ubuntu alongside Windows' option if you want a straightforward dual-boot. If you prefer, choose 'Something else' to manually partition the drive: create a root partition (/) for Ubuntu, a swap area, and optionally a separate /home. Double-check the partition targets to avoid overwriting Windows. The GRUB bootloader should detect Windows and present a menu on boot. If you don’t see Windows in the menu, there are recovery steps to restore the Windows boot entry using Windows recovery tools or the Ubuntu boot-repair utility.

After installation: verifying Windows and Ubuntu are healthy

Once installation completes, reboot and test both OS entries in the GRUB menu. Update both systems and install any required drivers. Confirm that Windows still boots normally, and ensure your files were not altered by the process. If Windows won’t boot, you may need to repair the Windows bootloader or re-run GRUB repair from Ubuntu. Regular backups remain essential in case you need to revert or repair either OS in the future.

Troubleshooting and recovery

If you encounter boot issues after installing Ubuntu, start by checking the BIOS/UEFI boot order and the chosen boot mode. Use the Ubuntu live environment to run boot-repair if GRUB fails to show Windows. If Windows becomes inaccessible, a Windows recovery drive can reestablish Windows boot, and you can then reattempt a clean dual-boot. Remember, the goal is to minimize risk by preserving Windows partitions and maintaining current backups.

Tools & Materials

  • Ubuntu installation ISO(Download from the official Ubuntu site and verify checksums)
  • USB drive (4GB or larger)(Format and create bootable USB)
  • USB bootable creator (Rufus, BalenaEtcher, or Startup Disk Creator)(Use the tool compatible with your OS)
  • Backup storage (external drive or cloud)(Back up all Windows data before starting)
  • Windows recovery media(Optional but recommended for recovery)
  • A computer with Windows installed (UEFI preferred)(Access BIOS/UEFI settings easily)

Steps

Estimated time: Estimated total time: 60-120 minutes

  1. 1

    Prepare Windows environment

    Back up all important data and create a Windows recovery drive. Disable Fast Startup to prevent file locks during the install. Check disk space and plan partitions for Ubuntu, ensuring Windows remains protected.

    Tip: Back up before starting; this reduces stress if something goes wrong.
  2. 2

    Create a bootable Ubuntu USB

    Download the Ubuntu ISO from the official site and write it to a USB drive using a trusted tool. Verify the write with the checksum and ensure the USB boots on your PC.

    Tip: Verify the checksum after download to avoid corrupted install media.
  3. 3

    Boot from USB

    Enter BIOS/UEFI and set the USB drive as the first boot option. Use the boot menu to select the USB device for installation. If Secure Boot blocks the installer, temporarily disable it.

    Tip: Familiarize yourself with your PC's boot-key (F12, F10, etc.) for quick access.
  4. 4

    Choose installation type

    In the Ubuntu installer, pick 'Install Ubuntu alongside Windows' for a safe dual-boot. If you prefer, use 'Something else' to manually partition and control space for Ubuntu.

    Tip: Avoid touching Windows partitions unless you intend to erase Windows.
  5. 5

    Partition if needed

    If using manual partitioning, create a root partition for Ubuntu (mount point /, ext4), a swap area, and optionally a /home partition. Double-check you’re not selecting Windows partitions by mistake.

    Tip: Keep Windows partitions intact to prevent data loss.
  6. 6

    Complete the install

    Proceed with the installation, set up your user account, and select your time zone. The installer will install GRUB as the boot manager, which allows you to choose Windows or Ubuntu at startup.

    Tip: Take a moment to review the summary before finalizing.
  7. 7

    First boot and verification

    Reboot and confirm both Ubuntu and Windows appear in the GRUB menu. Update both systems and check drivers. If Windows fails to boot, prepare a recovery path and consider GRUB repair.

    Tip: If Windows doesn’t appear, try boot-repair from the Ubuntu live session.
  8. 8

    Post-install housekeeping

    Run updates, install essential applications, and verify backups. Keep Windows recovery media handy and document any changes to the boot configuration for future reference.

    Tip: Document your partition layout for future maintenance.
Pro Tip: Back up all critical files before starting; a failed install can affect Windows data.
Warning: Never delete or shrink Windows partitions from Windows itself during dual-boot attempts; do it from the Ubuntu installer only if you know what you’re doing.
Pro Tip: Disable Fast Startup in Windows to prevent the OS from locking system partitions.
Note: Have Windows recovery media ready in case you need to repair Windows boot.

Got Questions?

Will installing Ubuntu erase Windows?

Not if you choose the dual-boot option; Windows remains intact and a GRUB menu is created. Erasing Windows only happens if you select 'Erase disk and install Ubuntu' during setup.

No, you can keep Windows by choosing the alongside option. Only erasing the disk will remove Windows.

Do I need to disable Secure Boot to install Ubuntu?

In many cases you can install Ubuntu with Secure Boot enabled, but some hardware configurations require temporarily disabling it. If you encounter installation issues, try disabling Secure Boot and retry.

Secure Boot can sometimes block the installer; if that happens, disable it temporarily and try again.

What if Windows won’t boot after Ubuntu is installed?

If Windows won’t boot, you can repair the Windows bootloader using recovery media or use a boot repair tool from Ubuntu to restore GRUB and re-detect Windows.

If Windows has a boot problem, use recovery media or boot repair to restore access to both OSes.

Can I remove Ubuntu later and keep Windows?

Yes. You can remove Ubuntu and restore the Windows boot manager, but the process is more complex than a simple uninstall. Use recovery options or reinstall Windows boot manager if needed.

Yes, you can remove Ubuntu, but you may need to repair Windows boot afterward.

How much disk space should I reserve for Ubuntu?

Reserve enough space for the Ubuntu root partition and, if desired, a separate /home partition. Include a small swap area for system stability and hibernation support if you plan to use it.

Leave enough space for Ubuntu root and optional /home; add swap if you need it.

Watch Video

Main Points

  • Back up all data before starting any OS install.
  • Choose 'Install Ubuntu alongside Windows' to preserve Windows.
  • Do not delete Windows partitions unless you intend to erase Windows.
  • Verify Windows and Ubuntu boot entries after installation.
Infographic showing steps to install Ubuntu alongside Windows
Process flow for installing Ubuntu alongside Windows

Related Articles