Technical Anshu
Tutorials Blog
🐧 Dual Boot Removal

Remove Ubuntu Dual Boot and Restore the Windows Bootloader

Done with Ubuntu? Removing a dual boot the wrong way leaves a PC that boots to a GRUB error. Removing it in this order — boot entry first, partitions second, space last — leaves Windows starting exactly as it did before Ubuntu ever arrived.

✍️ Technical Anshu🪟 Windows⏱️ 8 minute read
🎥 Watch the video — the dual boot installation this removal cleanly undoes, step by step

Everything on this page happens from inside Windows, and the order is the entire secret. If you delete the Ubuntu partitions while the firmware still tries to boot Ubuntu first, the PC greets you with a GRUB rescue error instead of Windows. So: make Windows the default again, remove Ubuntu's boot entry, then delete its partitions and reclaim the space. Back up anything stored inside Ubuntu before you begin — once the partitions go, its files go with them.

1

Set Windows Boot Manager First

Before anything is deleted, tell the firmware that Windows is in charge again. Restart into the BIOS setup — from Windows, Settings, Recovery, Advanced startup, then UEFI Firmware Settings — open the Boot section, and move Windows Boot Manager to the top.

  1. Move Windows Boot Manager above the ubuntu entry
  2. Save and exit, and let the PC start
  3. Confirm Windows boots directly with no GRUB menu

Only when Windows starts cleanly on its own is it safe to remove the Ubuntu pieces. If your BIOS offers the option to delete the ubuntu boot entry outright, you can do it there — but the folder cleanup in the next step is still needed.

2

Delete the Ubuntu Folder From the EFI Partition

Ubuntu keeps its bootloader in a folder named ubuntu inside the small EFI System Partition, next to Microsoft's own folder. Windows hides this partition, but an admin Command Prompt can mount it long enough to clean it.

  1. Open Command Prompt as administrator
  2. Mount the EFI partition with mountvol S: /S — S is just a free letter; use another if S is taken
  3. Step into it with cd /d S:\EFI and look around with dir — you should see folders like Microsoft, Boot and ubuntu
  4. Delete only the Ubuntu one with rmdir /s ubuntu and confirm
  5. Unmount with mountvol S: /d

Be precise here. The Microsoft folder in that same partition is what boots your Windows — it must not be touched. You are removing one clearly named folder, nothing else.

Command Prompt (Admin) — cleaning the EFI partition
C:\Windows\System32> mountvol S: /S C:\Windows\System32> cd /d S:\EFI S:\EFI> dir Microsoft Boot ubuntu S:\EFI> rmdir /s ubuntu Are you sure (Y/N)? Y S:\EFI> mountvol S: /d
Only the ubuntu folder is removed. The Microsoft folder beside it is your Windows bootloader — leave it exactly as it is.
3

Delete the Ubuntu Partitions

Now the space itself. Open Disk Management with diskmgmt.msc. Ubuntu's partitions are the ones with no drive letter and no file system name that Windows recognises — Windows files live on the lettered NTFS drives, which you leave alone.

  1. Identify the unlettered partitions that belonged to Ubuntu — check their sizes against what you created
  2. Right-click each one and choose Delete Volume
  3. They merge into a single block of Unallocated space

Take ten seconds per partition to be sure. The EFI partition (a few hundred MB, labelled EFI System) and any recovery partition belong to Windows and stay. When in doubt, compare sizes with the layout you remember from the installation.

4

Give the Space Back to the C Drive

With the space unallocated, hand it back to Windows. Right-click the C drive in Disk Management and choose Extend Volume, then accept the full amount offered.

  1. Extend works when the unallocated space sits immediately to the right of C — the normal layout after deleting Ubuntu
  2. Follow the wizard and C grows by the full size of the old Ubuntu partitions
  3. If Extend is greyed out, a recovery partition is sitting between C and the free space — that is a layout problem, not damage, and third-party partition tools exist for moving it

Restart once at the end and confirm the boring result you wanted: power on, Windows loads, no menu, and the C drive shows its original full size.

5

Legacy BIOS Machines — One Extra Command

On a genuinely old PC where Ubuntu was installed in legacy BIOS mode, GRUB may live in the master boot record itself instead of the EFI partition. There the cleanup is a Windows command, run from a Windows installation USB or the recovery environment.

  1. Boot the Windows USB and choose Repair your computer, then Command Prompt
  2. Run bootrec /fixmbr to restore the Windows boot code
  3. Run bootrec /fixboot as well if the first alone is not enough
  4. Restart — Windows loads directly

Most Windows 10 and 11 machines are UEFI, where the folder method above is the whole job. Use this step only when your machine truly boots in legacy mode.

🔴 The one mistake that creates the GRUB rescue error: deleting the Ubuntu partitions before making Windows the default boot. The firmware then looks for a bootloader that no longer exists. Order is everything on this page — entry first, partitions second.

🎥 Watch the Dual Boot Video

Thinking of trying Ubuntu again later? The video shows the complete installation whenever you are ready.

▶️ Watch Full Video
❓ Frequently Asked Questions

Will removing Ubuntu affect my Windows files or programs

No. Ubuntu lived in its own partitions and its own folder in the EFI partition. Deleting exactly those returns the disk to its previous layout, and Windows, its programs and its files are untouched. The only files lost are the ones stored inside Ubuntu itself, so copy those out first.

My PC shows a grub rescue error after I deleted the partitions

That means the partitions went before the boot order was changed, so the firmware is still trying to start the deleted GRUB. Boot a Windows USB, open the recovery Command Prompt and rebuild the Windows boot files — and set Windows Boot Manager first in the BIOS order. Your Windows installation itself is unharmed.

Extend Volume is greyed out for my C drive

Disk Management can only extend a partition into unallocated space that sits directly beside it. If a Windows recovery partition sits between C and the freed space, Extend stays grey. That is a Windows limitation, not a failure of the removal — a partition tool can move the recovery partition, or you can simply leave the free space as a separate data drive.

This guide is based on the Technical Anshu video linked above • Stuck on a step? Ask in the video comments — you will get a reply 🙏