When you installed Linux alongside Windows, the boot manager took control of your system’s startup sequence. Now you want to know how to remove linux dual boot and get your PC back to just Windows. This guide walks you through every step safely, whether you’re a beginner or just need a quick refresher. We’ll cover backing up data, deleting Linux partitions, fixing the bootloader, and avoiding common mistakes. Let’s get started without any fluff.
Removing a dual boot setup isn’t as hard as it sounds. The main tasks are: remove the Linux partitions, then fix the Windows bootloader. If you skip the bootloader fix, you’ll end up with a black screen or a “grub rescue” error. So follow the steps in order.
Before You Start: Backup And Preparation
Before you do anything, backup your important files. Even if you’re careful, mistakes happen. Use an external drive or cloud storage. This step is non-negotiable.
You’ll also need a Windows installation USB or recovery drive. If you don’t have one, create it using Microsoft’s Media Creation Tool. This USB will help you repair the bootloader after deleting Linux.
Check which Linux distribution you have. Most use GRUB as the boot manager. Knowing this helps when you troubleshoot later.
What You Need To Know About Your Disk Layout
Open Windows Disk Management. Press Win + X and select “Disk Management”. Look for partitions without a drive letter – those are likely Linux partitions. They might be labeled as “EFI System Partition”, “Linux filesystem”, or “swap”. Note their sizes and locations.
If you see a partition called “EFI System Partition” that’s shared between Windows and Linux, be careful. Deleting the wrong one can break Windows. We’ll handle that in the bootloader section.
How To Remove Linux Dual Boot: Step-By-Step
This section covers the actual removal process. Follow each step exactly. If you get stuck, refer back to the preparation steps.
Step 1: Boot Into Windows
Restart your computer and choose Windows from the boot menu. If GRUB shows up, select Windows. If you can’t boot into Windows at all, you’ll need to use the Windows recovery environment from your USB drive. But ideally, you want to be inside Windows first.
Step 2: Delete Linux Partitions Using Disk Management
Open Disk Management again. Right-click on each Linux partition (the ones without drive letters) and select “Delete Volume”. Do this for all Linux partitions: root, swap, home, and any EFI partition that belongs to Linux. Do not delete the Windows EFI partition – it’s usually labeled “EFI System Partition” and is around 100 MB. If you’re unsure, leave it alone and handle it via command line later.
After deleting, you’ll see “Unallocated” space. You can leave it for now or extend your Windows partition later. To extend, right-click the C: drive and choose “Extend Volume”. This merges the free space into Windows.
Step 3: Fix The Windows Bootloader
This is the most critical step. Deleting Linux partitions removes GRUB, but Windows boot manager might not be set as default. You need to rebuild the boot configuration data (BCD).
Insert your Windows installation USB and boot from it. On the setup screen, click “Repair your computer” (bottom-left). Then go to Troubleshoot > Advanced Options > Command Prompt.
In the command prompt, type these commands one by one, pressing Enter after each:
bootrec /fixmbrbootrec /fixbootbootrec /scanosbootrec /rebuildbcd
If you get an error on /fixboot, try bootsect /nt60 sys first. For UEFI systems (most modern PCs), you might need to use bcdedit commands instead. Type bcdedit /enum to see current entries. If you see a Linux entry, delete it with bcdedit /delete {identifier} – replace {identifier} with the actual ID shown.
After running these commands, restart your computer. It should boot directly into Windows without showing GRUB.
Step 4: Remove Linux Boot Entry From UEFI (If Needed)
On some UEFI systems, the Linux boot entry remains in the firmware. To remove it, boot into Windows and open an elevated Command Prompt (Run as Administrator). Type:
bcdedit /enum firmware
Look for an entry that says “Linux” or “Ubuntu”. Note its identifier (a long string like {12345678-...}). Then delete it with:
bcdedit /delete {identifier}
Alternatively, you can use a tool like EasyUEFI (free version works) to remove the entry visually. This step is optional but recommended for a clean system.
What To Do If You Can’t Boot Into Windows
Sometimes the dual boot removal goes wrong and Windows won’t start. Don’t panic. Boot from your Windows USB and go to Command Prompt as described above. Run the bootrec commands. If that fails, try a startup repair from the Troubleshoot menu.
If you still have issues, check your BIOS/UEFI settings. Make sure Windows Boot Manager is first in the boot order. Disable “Fast Boot” temporarily – it can interfere with boot repair.
Another common problem: after deleting Linux partitions, the system tries to boot from a missing GRUB. In that case, use the Windows USB to run bootrec /fixmbr and bootrec /rebuildbcd. This should overwrite the boot sector.
Recovering Data From Linux Partitions Before Deletion
If you forgot to backup files inside Linux, you can access them from Windows using tools like Ext2Read or Linux Reader. These let you copy files from ext4 partitions to Windows. Do this before deleting the partitions.
Alternatively, boot from a live Linux USB, mount your Linux partition, and copy files to an external drive. Then proceed with deletion.
Alternative Method: Using A Live Linux USB
Some people prefer to remove dual boot from a live Linux environment. This is useful if Windows is broken or you want to wipe everything. Boot from a live USB (like Ubuntu), open GParted, and delete the Linux partitions. Then run sudo update-grub (though this won’t help Windows). After that, use the Windows USB to fix the bootloader as described.
This method is more advanced but works the same way. The key is always fixing the Windows bootloader afterward.
Deleting The EFI Partition For Linux
If you have a separate EFI partition for Linux (common on UEFI systems), you can delete it after fixing the bootloader. In Disk Management, it might show as a small partition (100-500 MB) without a letter. Right-click and delete it. Then extend your Windows partition into the freed space.
Be absolutely sure it’s the Linux EFI partition. The Windows EFI partition is usually labeled “EFI System Partition” and is critical for booting. If you delete the wrong one, you’ll need to recreate it using a Windows recovery USB.
Common Mistakes To Avoid
Here are the biggest pitfalls people hit when removing Linux dual boot:
- Deleting the Windows EFI partition – always double-check before deleting.
- Not fixing the bootloader – leads to “no bootable device” errors.
- Forgetting to backup – you might lose important files.
- Using third-party partition tools incorrectly – stick to Disk Management or GParted.
- Leaving GRUB in the UEFI – it can cause boot menu clutter.
Avoid these and the process goes smoothly.
How To Remove Linux Dual Boot On A Mac (Briefly)
If you’re using a Mac with Linux installed via Boot Camp or manually, the process is similar but uses macOS tools. Boot into macOS, open Disk Utility, and delete the Linux partitions. Then use the Startup Disk preference to set macOS as default. For the bootloader, you might need to run bless commands in Terminal. This is a niche case, so refer to Apple’s support if needed.
What About The GRUB Rescue Prompt?
If you see “grub rescue>” after deleting partitions, you’ve removed the Linux bootloader but haven’t fixed Windows yet. Don’t worry – boot from a Windows USB and run the bootrec commands. This will restore the Windows bootloader and eliminate GRUB.
To temporarily boot into Windows from the grub rescue prompt, you can type ls to list drives, then find the Windows partition (usually (hd0,msdos1) or similar), and type set root=(hd0,msdos1) then chainloader +1 and boot. But this is tricky – better to use the USB.
Frequently Asked Questions
Can I Remove Linux Dual Boot Without A Windows USB?
It’s risky but possible if you have a working Windows recovery partition. You can try using the “Reset this PC” option or run bootrec from the advanced startup menu. However, a USB drive is much more reliable.
Will Deleting Linux Partitions Affect My Windows Files?
No, as long as you only delete Linux partitions. Windows files are on separate partitions. But always backup first just in case.
How Do I Remove The Linux Boot Option From The BIOS?
Use bcdedit in Windows or a tool like EasyUEFI. You can also enter BIOS/UEFI settings and delete the Linux entry from the boot menu. The exact steps vary by motherboard.
What If I Want To Keep Windows And Linux But Change The Boot Order?
That’s a different task – you don’t need to remove anything. Just use a tool like Grub Customizer or change the default boot entry in GRUB config. This article is about full removal.
Can I Reuse The Unallocated Space For Windows?
Yes. After deleting Linux partitions, you can extend your Windows C: drive into the unallocated space using Disk Management. This gives you more storage for Windows.
Final Checks After Removal
Once you’ve completed the steps, restart your computer a couple of times. Make sure it boots directly into Windows without any menus. Check Disk Management to confirm no Linux partitions remain. If you extended your C: drive, verify the new space is usable.
If you see any errors, go back and run the bootrec commands again. Sometimes you need to run them twice. Also check your BIOS boot order – Windows Boot Manager should be first.
That’s it. You’ve successfully removed Linux dual boot. Your system is now clean and running Windows only. If you ever want to try Linux again, you can always reinstall it later. For now, enjoy the simplicity of a single OS.
Remember, the key steps are: backup, delete partitions, fix bootloader. Follow them in order and you’ll avoid headaches. If you run into trouble, the Windows USB is your best friend. Keep it handy.
Hopefully this guide made the process clear. Removing a dual boot setup is straightforward once you understand the bootloader part. Don’t skip it. Good luck.