How to Install Windows on a PC Running Ubuntu

To install Windows 10 on a PC that runs Ubuntu, create a Windows 10 installation USB, boot the PC from it, and choose Custom: Install Windows only. At the partition screen, either delete the Ubuntu partitions to replace Linux completely, or install into free space you set aside to keep both systems. Back up everything first; deleting partitions erases Ubuntu and its files.

Windows 10 reached end of support on October 14, 2025. Consumer Extended Security Updates (ESU) now run until October 12, 2027. If your PC meets the requirements, installing Windows 11 instead is the better long-term choice; the steps are the same.

Quick Answer

Make a Windows USB > boot from it > Custom install > delete the Ubuntu partitions (or pick free space) > Next.

Step 1: Back Up and Create the USB

  1. Copy your files from Ubuntu to an external drive or cloud storage.
  2. Download the Windows 10 (or 11) ISO from Microsoft’s website. On Ubuntu, the site offers the ISO directly.
  3. Write the ISO to a USB drive of at least 8 GB. On Ubuntu, a tool that supports Windows ISOs (for example, WoeUSB or Ventoy) is needed, since the built-in Startup Disk Creator is designed for Linux images.

If you have access to a Windows PC, Microsoft’s Media Creation Tool is simpler; see how to put Windows on a USB drive.

Step 2: Boot From the USB

  1. Plug in the USB drive and restart.
  2. Press the boot menu key (often F12, F11, F9, or Esc) and choose the USB drive. If needed, change the boot order in the firmware settings.
  3. Choose your language and click Install now.

Step 3: Choose Where to Install

  1. Select Custom: Install Windows only (advanced).
  2. To replace Ubuntu, select each Ubuntu partition on the target drive (ext4, swap, and the old EFI partition if you want a clean start) and click Delete.
  3. Select the resulting Unallocated Space and click Next. Windows creates the partitions it needs.
Operating system setup partition screen with drive partitions listed and Delete and New options
Delete the Linux partitions or choose free space, then click Next.

Replace Ubuntu or Dual-Boot?

Option What to do Result
Replace Ubuntu Delete all Ubuntu partitions Windows only
Dual-boot In Ubuntu, shrink its partition first to make free space; install Windows there Both, but Windows setup replaces the Linux boot menu
Keep Ubuntu, run Windows too Install Windows in a virtual machine instead No repartitioning

After a dual-boot install, you’ll need to restore the GRUB boot menu from an Ubuntu live USB (for example, with a boot-repair tool) to choose between systems.

After Installing

  • Connect to the internet and run Windows Update for drivers.
  • Windows activates automatically if the PC had a digital license; otherwise enter a product key.
  • Remove the old Ubuntu entry from the firmware boot list if it remains.

Troubleshooting

  • “Windows cannot be installed to this disk. The selected disk is of the GPT partition style”: You booted the USB in legacy mode. Boot it in UEFI mode from the boot menu.
  • The USB isn’t bootable: The ISO was copied as a file instead of written as a bootable drive. Recreate it with a Windows-capable tool.
  • The PC still boots into GRUB: Change the boot order in firmware settings; see how to open the firmware settings.
  • Want Linux inside Windows later? See how to install Linux on Windows with WSL.

Frequently Asked Questions

Can I install Windows from inside Ubuntu without a USB?

Not in a supported way. Booting from installation media is the reliable method.

Will I lose my Ubuntu files?

Yes, if you delete the Ubuntu partitions. Back them up first.

Do I need a product key?

Not if the PC previously had an activated Windows license. Otherwise you’ll need one.

Summary

  1. Back up and create a Windows USB.
  2. Boot from the USB and choose Custom install.
  3. Delete Ubuntu partitions or use free space.
  4. Install, then update drivers.