How To Remove Linux From Windows : Windows Bootloader Restoration

Windows users removing Linux must reclaim disk space and repair the Windows Master Boot Record. If you installed Linux alongside Windows and now want to go back to just Windows, you need to know exactly how to remove linux from windows without breaking your system. This guide walks you through every step, from backing up data to fixing the boot loader.

Many people try dual-booting but later decide they prefer Windows. Maybe you don’t use Linux anymore, or it just takes up too much space. Removing it is not as simple as deleting the partition. You have to restore the Windows boot manager first.

We will cover three main methods. Each one works for different skill levels. You can use Windows built-in tools, a recovery drive, or a third-party app. Pick the one that fits your setup.

Before you start, understand the risks. If you delete the wrong partition, you could lose all your data. So read each step carefully. Let’s get your computer back to pure Windows.

Why You Need To Remove Linux From Windows Properly

Simply deleting the Linux partition does not work. The boot loader, usually GRUB, stays in the Master Boot Record. Without fixing it, Windows won’t start. You will see a black screen with a blinking cursor or a GRUB error.

Another issue is disk space. Linux partitions use different file systems like ext4. Windows cannot read them directly. So you must delete or format those partitions to reclaim the space.

Also, if you have a dual-boot system, the EFI partition might have leftover Linux entries. These can cause boot menu clutter. Removing them cleans up your system.

So the process has two parts: remove the Linux partitions and repair the Windows boot loader. We will do both in the right order.

How To Remove Linux From Windows

This section gives you the complete step-by-step. Follow the method that matches your Windows version and comfort level. We start with the easiest option using Disk Management and a recovery drive.

Method 1: Using Windows Disk Management And A Recovery Drive

This method works for Windows 10 and 11. You need a Windows installation USB or recovery drive. If you don’t have one, create it using another Windows computer.

First, back up any important files. Removing partitions can cause data loss if you make a mistake. Use an external drive or cloud storage.

Now open Disk Management. Press Windows Key + X and select “Disk Management.” Look for partitions that do not have a drive letter. These are usually Linux partitions. They might show as “Healthy (Unknown Partition)” or have no label.

Identify the Linux swap partition and the root partition. They are often ext4 or swap file systems. Do not delete the EFI System Partition or the Windows partition (usually C:).

Right-click each Linux partition and select “Delete Volume.” Confirm the action. You will now have unallocated space. You can extend your Windows partition into this space later.

Now you must repair the boot loader. Insert your Windows installation USB or recovery drive. Restart your computer and boot from the USB. You may need to change the boot order in BIOS.

On the Windows Setup screen, click “Next” and then “Repair your computer” at the bottom left. Choose “Troubleshoot” > “Advanced options” > “Command Prompt.”

In the Command Prompt, type these commands one by one, pressing Enter after each:

  1. bootrec /fixmbr
  2. bootrec /fixboot
  3. bootrec /scanos
  4. bootrec /rebuildbcd

If you get an “Access is denied” error on /fixboot, try this instead: bootsect /nt60 sys. Then repeat the bootrec commands.

After that, type exit and restart your computer. Remove the USB drive. Windows should boot directly without showing GRUB.

If you still see a Linux option in the boot menu, you can remove it using EasyBCD or by editing the BCD store. We cover that later.

Now extend your Windows partition. Go back to Disk Management. Right-click the C: drive and select “Extend Volume.” Follow the wizard to add the unallocated space.

Method 2: Using A Live Linux USB To Remove GRUB

If you cannot boot into Windows at all, use a live Linux USB. This method is for advanced users. You will boot into Linux from a USB, then repair the MBR.

Download a Linux ISO like Ubuntu. Create a bootable USB using Rufus or Etcher. Boot from the USB. Choose “Try Ubuntu” or “Live session.”

Open a terminal. First, identify your Windows drive. Type sudo fdisk -l. Look for a partition with the type “NTFS” and a size matching your Windows installation. It is usually /dev/sda1 or /dev/sda2.

Now install a tool called ms-sys or use dd to write a Windows MBR. For example, to write a generic MBR, type:

sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda

If you do not have mbr.bin, install syslinux first: sudo apt install syslinux (on Debian/Ubuntu).

Alternatively, use ms-sys: sudo ms-sys -m /dev/sda. This writes a Windows 7/8/10 MBR.

Then reboot and remove the USB. Windows should start. If not, use the Windows recovery method from Method 1 to rebuild the BCD.

This method is riskier because you are writing directly to the disk. Double-check the device name. Writing to the wrong drive can destroy your data.

Method 3: Using Third-Party Tools Like EasyBCD

EasyBCD is a free tool for Windows that manages boot entries. It simplifies removing Linux from the boot menu. This method is good if you already removed the Linux partitions but still see GRUB.

Download and install EasyBCD from the official site. Open it. In the “Edit Boot Menu” section, you will see entries for Linux and Windows. Select the Linux entry and click “Delete.”

Then go to “BCD Deployment” and choose “Write MBR.” Select the “Windows Vista/7/8/10” option. Click “Write MBR.” This overwrites the GRUB boot loader.

Restart your computer. The Linux option should be gone. If you still have unallocated space, extend your Windows partition using Disk Management.

EasyBCD also lets you rename boot entries. You can change “Windows 10” to something else if you like. But the main goal is to remove Linux.

One downside: EasyBCD may not work on all systems, especially with UEFI. For UEFI systems, you need to delete the Linux EFI entry manually.

How To Remove Linux EFI Entry From UEFI Firmware

If your computer uses UEFI instead of BIOS, the boot loader is stored in the EFI System Partition. Deleting the Linux partition does not remove the EFI entry. You must delete it from the firmware or using Windows tools.

First, open Command Prompt as Administrator. Type diskpart and press Enter. Then type list disk. Find your system disk, usually Disk 0. Type select disk 0.

Now type list partition. Look for the EFI System Partition. It is usually about 100 MB and labeled “System.” Type select partition X (replace X with the number). Then type assign letter=S to give it a drive letter.

Exit diskpart by typing exit. Now navigate to the EFI folder: cd /d S:\EFI. You will see folders like “Microsoft” and “ubuntu” or “linux.” Type dir to list them.

Delete the Linux folder: rmdir /s ubuntu (or whatever the folder name is). Confirm with Y. Then remove the drive letter: back in diskpart, select the partition and type remove letter=S.

Now you must remove the boot entry from the firmware. In Command Prompt, type bcdedit /enum firmware. Look for an entry with description “ubuntu” or “Linux.” Note the identifier, which looks like a long GUID.

Type bcdedit /delete {identifier} (include the curly braces). Replace {identifier} with the actual GUID. This removes the Linux entry from the UEFI boot menu.

Restart your computer. The Linux option should be gone. If not, you can also go into BIOS/UEFI settings and delete the boot option manually. Look for “Boot Order” or “Boot Options.”

Reclaiming Disk Space After Removing Linux

After deleting Linux partitions, you have unallocated space. You can add it to your Windows partition or create a new partition for data. Here is how to do both.

To extend the C: drive, open Disk Management. Right-click the C: partition and select “Extend Volume.” The wizard will show the available unallocated space. Click through to finish. This works only if the unallocated space is directly next to C:.

If the unallocated space is not adjacent, you need a third-party tool like MiniTool Partition Wizard or EaseUS Partition Master. These can move partitions around. Free versions often have limitations, but they work for basic tasks.

Alternatively, create a new partition from the unallocated space. Right-click the unallocated area and select “New Simple Volume.” Format it as NTFS and give it a drive letter. This gives you a separate drive for files.

If you have multiple Linux partitions (like /home, /, swap), delete them all first. Then decide how to use the space. A single large partition is simpler for most users.

Remember to defragment your drive after extending partitions, especially if you use a traditional HDD. SSDs do not need defragmentation.

Common Problems And Fixes

Sometimes things go wrong. Here are typical issues and how to solve them.

Problem: “Bootmgr is missing” after removing Linux. This means the boot loader is damaged. Use your Windows recovery USB and run the bootrec commands again. Make sure you run them in the correct order.

Problem: Cannot delete Linux partition because it is “in use.” Boot from a Windows recovery drive or use a live Linux USB to delete the partition. Disk Management sometimes locks partitions.

Problem: GRUB still shows after using bootrec. You may have multiple drives. Check your BIOS boot order. Also, try the UEFI method above if you have a UEFI system.

Problem: Windows does not boot after extending partition. This is rare but can happen if the partition table gets corrupted. Use a Windows recovery drive and run chkdsk /f C: from Command Prompt.

Problem: “Access denied” when running bootrec. Run Command Prompt as Administrator. Also, ensure you are booted from the recovery drive, not from Windows itself.

FAQ: Removing Linux From Windows

Q: Can I remove Linux without a Windows installation USB?
A: Yes, but it is riskier. You can use EasyBCD or a live Linux USB. However, having a recovery drive is the safest option.

Q: Will removing Linux delete my Windows files?
A: No, if you only delete the Linux partitions. Do not touch the Windows partition (C:). Always back up first.

Q: How do I know which partitions are Linux?
A: Linux partitions often have no drive letter and show file systems like ext4 or swap. They are usually smaller than your Windows partition. In Disk Management, they appear as “Healthy (Unknown Partition).”

Q: What if I have a UEFI system and the Linux entry is still in BIOS?
A: You need to delete the EFI entry using bcdedit or from the BIOS menu. See the UEFI section above.

Q: Can I reinstall Linux later after removing it?
A: Yes. You can create unallocated space and install Linux again. The process is the same as a fresh dual-boot setup.

Final Checks After Removing Linux

Once you have removed Linux and repaired the boot loader, test your system. Restart your computer a few times. Make sure Windows boots quickly without any menu.

Check Disk Management to confirm the unallocated space is gone or used. Open File Explorer and verify all your files are there. If you extended C:, check the drive capacity.

Run Windows Update to ensure all drivers are working. Sometimes the boot repair can affect driver settings. A quick update fixes that.

If you used a third-party tool like EasyBCD, uninstall it after you are done. It is not needed anymore and can clutter your system.

Finally, consider creating a system restore point. This gives you a fallback if something goes wrong later. Go to Control Panel > System > System Protection and create a restore point.

Removing Linux from Windows is straightforward if you follow the steps. The key is to repair the boot loader first, then delete partitions. Do not skip the boot repair step. Many users think deleting the partition is enough, but it is not.

Now your computer is back to a clean Windows system. You have reclaimed disk space and a working boot manager. If you ever want to try Linux again, you can always dual-boot later. For now, enjoy your simplified setup.