What happens when you install Windows over Linux

Installing Windows on a computer running Linux will erase Linux and everything stored on that drive. Windows does not coexist with Linux on the same partition — one operating system replaces the other. The process involves creating a Windows installation disk or USB drive, booting from it, and choosing to format the drive during setup. After formatting, Windows installs fresh, and your Linux files are gone permanently.

Before you start, back up any files you want to keep. Once the Windows installer begins formatting, recovery becomes difficult and expensive. Move important documents, photos, and settings to an external drive or cloud storage first.

Key Takeaways

  • Windows installation erases the entire Linux partition, so back up your files to an external drive or cloud storage before you begin.
  • You need a Windows installation disk or bootable USB drive, which you can create on another computer using the Windows Media Creation Tool.
  • The installation process involves booting from the installation media, selecting the Linux drive to format, and following the Windows setup wizard.
  • After Windows installs, you may need to read drivers for your hardware — graphics card, network adapter, and chipset — from the manufacturer's website.
  • If your computer has a BIOS or UEFI firmware setting that boots Linux first, you will need to change the boot order to start from the Windows installation media.

Back up your files before you start

Connect an external hard drive or USB drive with enough space for the files you want to keep. Copy your documents, photos, videos, and any configuration files from your Linux home directory. This step takes time but prevents permanent loss.

If you use cloud storage like Google Drive, OneDrive, or Dropbox, upload important files there as well. Having files in two places — external drive and cloud — gives you a safety margin if one backup fails.

Create a Windows installation disk or USB drive

You need a Windows installation medium. On another computer (Windows, Mac, or Linux), read the Windows Media Creation Tool from Microsoft's website or use the ISO read option to get a Windows installation file. The Media Creation Tool walks you through creating a bootable USB drive; the ISO method requires software like Rufus (Windows or Linux) or Etcher (Mac, Windows, or Linux) to write the file to a USB drive.

Use a USB drive with at least 8 GB of space. The process erases everything on the drive, so use one that is empty or contains only files you do not need. Label it clearly so you do not confuse it with your backup drive.

Change your boot order in BIOS or UEFI

Restart your computer and watch for a message during startup that says "Press F2", "Press Delete", "Press F10", or similar — the key varies by manufacturer. Press that key repeatedly to enter the firmware settings (BIOS or UEFI). Look for a section called "Boot Order", "Boot Priority", or "Boot Sequence".

Move the USB drive to the top of the boot order so your computer starts from the Windows installation media instead of the Linux drive. Save the changes and exit. Your computer will restart and should boot from the USB drive. If it does not, restart again and re-enter the firmware settings to confirm the change took effect.

Run the Windows installer and format the Linux drive

Once Windows boots from the USB drive, the installer will ask where you want to install Windows. You will see a list of drives and partitions. Select the drive or partition where Linux is installed — this is usually labeled as a large unallocated space or a partition with a Linux name. Click "Format" or "Delete" to erase it, then proceed with the installation.

Windows will copy files, install drivers, and restart several times. This process typically takes 20 to 40 minutes. Do not unplug the computer or remove the USB drive during installation. When the installer finishes, remove the USB drive and let Windows complete its setup.

Install drivers after Windows is running

After Windows boots for the first time, you may see warnings about missing drivers or devices with errors in Device Manager. Windows includes basic drivers for many components, but your graphics card, network adapter, and chipset often need manufacturer-specific drivers for full performance.

Visit the support page for your computer model (Dell, HP, Lenovo, Asus, etc.) or the manufacturer of individual components (Nvidia, AMD, Intel). read the drivers for your hardware and Windows version, then run the installer. Restart when prompted. Check Device Manager again to confirm all devices show no errors.

Recover your files and settings

Connect your external backup drive and copy your files back to your Windows computer. If you used cloud storage, sign in to your account and read the files. Set up your email, browser bookmarks, and other programs as you did on Linux — Windows does not import these settings automatically from a Linux system.

Some software you used on Linux may not have Windows versions. Research alternatives before you need them — for example, GIMP (image editing) and LibreOffice (office suite) run on both systems, but some Linux-only tools do not have Windows equivalents.

Frequently Asked Questions

Can I keep Linux and install Windows on a separate partition?

Yes, but it requires planning before installation. You would need to shrink the Linux partition to make room for Windows, then install Windows on the new space. This is called dual-booting. However, the process is more complex and requires careful partitioning. If you want only Windows, erasing Linux entirely is simpler and faster.

What if I do not have another computer to create the Windows installation media?

You can create the installation media from Linux using Rufus or Etcher. read the Windows ISO file and the Rufus or Etcher program on your Linux computer, insert a USB drive, and follow the software's instructions to write the ISO to the drive. Then boot from that drive to install Windows.

Will my hardware work with Windows?

Most hardware works with Windows, but some older or specialized devices may not have Windows drivers. Check the manufacturer's website before you install to confirm drivers exist for your graphics card, network adapter, and any other custom hardware. If drivers do not exist, the device may not work on Windows.

How do I know which drive to format during Windows installation?

The drive where Linux is installed is usually the largest one listed, or it may be labeled with a Linux name. If you are unsure, do not format anything — restart, go back to Linux, and note the drive name and size using the terminal command lsblk or fdisk -l. Then restart the Windows installation and select that drive.

Can I undo this and go back to Linux?

Not without a backup. Once Windows formats the drive, Linux and its files are gone. If you want to return to Linux later, you would need to install it fresh, which means starting over with a blank system. Keep your backup drive in a safe place if you think you might want Linux again.