You can install Windows from Linux using a bootable USB drive and your Windows installation media

Installing Windows on a computer that currently runs Linux is straightforward if you have a Windows installation file and a USB drive. The process involves creating a bootable USB drive from Linux, restarting your computer to boot from that drive, and then following Windows's installation steps. You do not need to remove Linux first — the Windows installer will handle partitioning your disk, though you will lose any data currently on the drive unless you back it up.

The main challenge is that Linux and Windows use different tools to create bootable media, so you need to use a Linux-compatible program to prepare the USB drive. Once that is done, the rest follows Windows's standard installation process.

Key Takeaways

  • You need a Windows installation file (an ISO file), a USB drive with at least 8 GB of space, and a computer with a USB port.
  • Use a tool like Etcher, GNOME Disks, or dd from the Linux command line to write the Windows ISO to the USB drive.
  • Restart your computer and enter the boot menu (usually by pressing F12, Esc, or Del during startup) to boot from the USB drive.
  • The Windows installer will guide you through partitioning and installation, and you can choose to wipe the entire disk or keep Linux alongside Windows.
  • After installation, you may need to reinstall your Linux bootloader or adjust your boot settings if you want to keep both operating systems.

Getting your Windows installation file and USB drive ready

Start by obtaining a Windows ISO file. You can download this from Microsoft's website for Windows 10 or Windows 11 — the file is typically 4 to 6 GB. You will also need a USB drive with at least 8 GB of free space. The USB drive will be erased during this process, so back up anything on it first.

Once you have both, insert the USB drive into your Linux computer. Open your file manager and note the device name — it usually appears as something like /media/username/DRIVENAME. You will need this name in the next step.

Writing the Windows ISO to your USB drive

Linux offers several tools to write the ISO file to the USB drive. The easiest graphical option is Balena Etcher, which works on most Linux distributions. Download it from balena.io/etcher, install it, then open the program. Select your Windows ISO file, choose your USB drive from the list, and click Flash. Etcher will write the file and verify it — this takes 5 to 15 minutes depending on your USB drive speed.

If you prefer not to install additional software, you can use GNOME Disks, which comes built into many Linux distributions. Open Disks, select your USB drive from the left panel, click the menu button (three horizontal lines), and choose "Restore Disk Image". Select your Windows ISO file and click Start Restoring.

From the command line, you can use dd, though this method requires care because a mistake can overwrite the wrong disk. Open a terminal, run lsblk to list your drives and find your USB device (look for the one matching your drive size), then run sudo dd if=/path/to/windows.iso of=/dev/sdX bs=4M status=progress, replacing /dev/sdX with your USB device name and /path/to/windows.iso with the actual path to your ISO file. Do not include a partition number — use sdX, not sdX1.

Booting from the USB drive and starting Windows installation

Once the ISO is written to the USB drive, shut down your computer completely. Insert the USB drive, power the computer back on, and immediately start pressing a key to enter the boot menu. The key varies by manufacturer — common ones are F12, Esc, F2, or Del. You should see a menu appear before Windows or Linux starts loading. If you miss it, restart and try again.

From the boot menu, select your USB drive. It usually appears with a name like "UEFI: Kingston DataTraveler" or similar. Select it and press Enter. The computer will boot from the USB drive, and after a few seconds, the Windows installer will appear.

Partitioning your disk and completing installation

The Windows installer will ask where you want to install Windows. If you want to replace Linux entirely, select your main disk and click Next — Windows will handle the partitioning. If you want to keep both Linux and Windows on the same computer, you will need to shrink your Linux partition first from within Linux before starting this process, then select the unallocated space in the installer.

Follow the installer's prompts to choose your language, accept the license terms, and select your installation drive. Windows will copy files, install drivers, and restart several times. This process takes 15 to 30 minutes. When it finishes, you will see the Windows setup screen asking for your region, language, and Microsoft account details.

Fixing your boot menu if you kept Linux

If you installed Windows alongside Linux rather than replacing it, your computer may boot directly into Windows and skip the menu that lets you choose which operating system to start. To fix this, you need to reinstall your Linux bootloader from a Linux live USB.

Boot from a Linux live USB (the same way you booted from the Windows USB), open a terminal, and run commands to reinstall GRUB, the Linux bootloader. The exact commands depend on your Linux distribution — Ubuntu users typically run sudo grub-install /dev/sda and sudo update-grub, while other distributions may differ. After this, restart your computer and you should see a menu letting you choose between Windows and Linux.

Troubleshooting common problems

If your computer does not boot from the USB drive, check that you selected the correct device in the boot menu. Some computers list USB drives under "Removable Devices" rather than by name. If the Windows installer starts but immediately shows an error, the ISO file may be corrupted — try downloading it again and rewriting it to the USB drive.

If Windows installation fails partway through, restart the computer, boot from the USB drive again, and try installing to a different partition or disk if you have multiple drives. If you see a message about UEFI or Secure Boot, restart into your computer's BIOS or UEFI settings (usually by pressing F2 or Del during startup) and disable Secure Boot temporarily, then try again.

Frequently Asked Questions

Do I need to uninstall Linux before installing Windows?

No. The Windows installer can overwrite Linux automatically. However, if you want to keep both operating systems on the same computer, you should shrink your Linux partition first using a tool like GParted, leaving unallocated space for Windows. Then select that unallocated space during Windows installation.

Can I use a DVD instead of a USB drive?

Yes, but USB is faster and more reliable. To burn a Windows ISO to a DVD from Linux, use a tool like Brasero (built into GNOME) or K3b (built into KDE). Insert a blank DVD, open the tool, select your ISO file, and click Burn. The process takes 10 to 20 minutes depending on your DVD drive.

What if my computer has only one disk and I want to keep Linux?

Before starting Windows installation, boot into Linux and use GParted to shrink your Linux partition by at least 50 GB. This creates unallocated space. Then boot from the Windows USB, and during installation, select that unallocated space as your installation target. After Windows finishes, boot from a Linux live USB and reinstall your bootloader so you can choose which operating system to start.

Will my Linux files still be there after Windows installation?

Only if you installed Windows to a separate partition or disk. If you installed Windows to your entire disk, all Linux files are overwritten and cannot be recovered. Always back up important files before starting.

Why does my computer boot straight into Windows instead of showing a menu?

Windows overwrote your Linux bootloader. Boot from a Linux live USB, open a terminal, and reinstall GRUB by running sudo grub-install /dev/sda and sudo update-grub (adjust the device name if needed). After restarting, you should see a boot menu.