This guide walks you through completely removing Ubuntu from a Windows 10 dual-boot system, reclaiming the hard drive space and restoring the Windows boot loader so your PC starts directly into Windows. You’ll need to back up any important Linux files first, and have a Windows 10 installation USB drive (or access to Advanced Startup Options) for the boot repair step.
What You’ll Need
- A Windows 10 PC with Ubuntu installed alongside it (dual boot).
- Backup of any files you want to keep from Ubuntu (copy them to an external drive or Windows partition).
- A Windows 10 installation USB drive (or a recovery drive) – you’ll use it to repair the Windows boot loader.
- Administrator access to Windows.
Step-by-Step
- Back up your Ubuntu data. Boot into Ubuntu and copy any personal files (documents, photos, projects) to an external drive or to a Windows-accessible partition (like your Windows C: drive, if you can mount it). Double-check you have everything you need, as the next steps will erase the Ubuntu partitions.
- Boot into Windows. Restart your PC and choose Windows from the GRUB menu (if it appears). If Windows doesn’t appear, you may need to enter your BIOS/UEFI boot menu and select the Windows Boot Manager entry.
- Open Disk Management. Right-click the Start button and select Disk Management. You’ll see a list of your disks and partitions. Identify the partitions that belong to Ubuntu – they are usually formatted as EXT4 or Linux Swap, and often appear after your Windows partitions. The Ubuntu partition is typically the one with the Linux filesystem; the swap partition is smaller (a few GB). Do not delete the EFI System Partition (ESP) – that’s shared and needed for Windows to boot.
- Delete the Ubuntu partitions. Right-click each Ubuntu partition (the one with the Linux filesystem and the swap partition) and choose Delete Volume. Confirm when prompted. This will turn them into unallocated space. If you have multiple Ubuntu partitions (e.g., /boot, /home), delete all of them except the EFI partition.
- Extend the Windows partition (optional). To reclaim the unallocated space, right-click your Windows C: drive (or the partition you want to expand) and choose Extend Volume. Follow the wizard to add the unallocated space to that partition. If Extend Volume is greyed out, you may need to move the unallocated space next to the C: drive using a third-party tool, but that’s beyond this guide.
- Repair the Windows boot loader. Now you need to remove GRUB and make Windows boot directly. Insert your Windows 10 installation USB and boot from it (you may need to press a key like F12 or Esc during startup to choose the boot device). On the Windows Setup screen, click Next, then Repair your computer (bottom-left). Then choose Troubleshoot → Advanced options → Command Prompt.
- Run bootrec commands. In the Command Prompt, type the following commands one by one, pressing Enter after each:
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
If you get an error on/fixbootsaying “Access is denied”, you may need to runbootsect /nt60 sysfirst, then retry. After the commands complete, typeexitand restart your PC (remove the USB). - Verify Windows boots. Your PC should now boot directly into Windows 10 without showing the GRUB menu. If it still shows GRUB, you may need to delete the Ubuntu entry from the EFI partition using
diskpartor a tool like EasyBCD, but the bootrec commands usually resolve it.
Common Mistakes
- Deleting the EFI System Partition. The EFI partition (usually 100-500 MB, FAT32) is required for Windows to boot. Deleting it will break Windows entirely.
- Deleting the wrong partition. Double-check that you’re deleting the Linux partitions, not your Windows C: drive or recovery partitions. Look at the file system (EXT4, Swap) and size.
- Skipping the boot repair. Simply deleting Ubuntu partitions is not enough – you must repair the boot loader, or you’ll be stuck with a black screen or GRUB rescue prompt.
- Not backing up. Once you delete the Ubuntu partitions, the data is gone. Always back up first.
Tips
- Before you start, take a screenshot or note of your partition layout – it helps you identify the right partitions.
- If you have a laptop with a small SSD and a large HDD, Ubuntu may be on either drive – check the Disk Management list carefully.
- If you’re not comfortable with the command prompt, you can use a tool like EasyBCD (free for personal use) to remove the GRUB entry after deleting the partitions, but the bootrec method is built-in and reliable.
- Keep your Windows installation USB handy – you might need it again if the boot repair fails.
Troubleshooting
- GRUB still appears after bootrec. This means the EFI boot entry for Ubuntu still exists. Boot into Windows, open Command Prompt as administrator, and run
bcdedit /enum firmwareto list the entries. Find the one pointing to \EFI\ubuntu\shimx64.efi and delete it withbcdedit /delete {identifier}(replace {identifier} with the actual GUID). - Windows boots to a black screen. This can happen if the boot files are corrupted. Boot from the Windows USB, go to Command Prompt, and run
bootrec /rebuildbcdagain. If that fails, runsfc /scannowfrom a Windows recovery environment. - “Access is denied” on bootrec /fixboot. This usually means the system partition is not accessible. Try running
bootsect /nt60 sysfirst, then retry the /fixboot command. - Extend Volume is greyed out. The unallocated space must be immediately to the right of the partition you want to extend. If it’s not, you’ll need to use a third-party partition manager to move partitions, which is risky – back up first.
- Ubuntu partition won’t delete. If you get an error, make sure the partition is not currently in use (e.g., from a Linux live USB). Also check that you’re not trying to delete the EFI partition.
Frequently Asked Questions
Do I need to reinstall Windows after removing Ubuntu?
No. As long as you repair the boot loader with bootrec, Windows will boot normally. You don’t need to reinstall.
Will deleting Ubuntu partitions affect my Windows files?
No, as long as you only delete the Linux partitions. Your Windows files are on the NTFS partition, which you’re not touching.
What if I don’t have a Windows installation USB?
You can create one using the Media Creation Tool from Microsoft’s website (requires a blank USB drive, 8 GB or larger). Alternatively, you can use the “Reset this PC” option in Windows, but that may remove your files – not recommended.
Can I just delete the Ubuntu partitions and leave the boot loader alone?
No. If you leave GRUB, your PC will still try to boot Ubuntu and fail. You must repair the boot loader to point directly to Windows.
What is the EFI System Partition and why can’t I delete it?
It’s a small partition (usually 100-500 MB) that stores boot loaders for all operating systems. Windows needs it to boot, so deleting it will break Windows.
Will this also remove the GRUB menu from startup?
Yes, after repairing the boot loader, your PC will boot straight into Windows without showing GRUB.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- MacBook Charger Not Working? Fix It Now
- Fix Windows Cannot Be Installed to This Disk
- Zoom on iPhone & iPad: Host or Join a Meeting
- Fix iPhone SE 4 Unable to Activate: Step-by-Step
- Keep Important Emails From Getting Buried in iPhone Mail Categories
- How to Clear RAM on iPhone: Speed It Up