How to Remove Linux from a Windows/Linux Dual-Boot System
Tips: It’s best to follow along with an AI assistant so you understand each step and avoid accidentally breaking your system.
Windows 11 + Linux (Ubuntu) dual-boot — removing Linux and keeping only Windows.
This guide assumes the Linux boot entry uses EFI + GRUB.
Restore the Windows Bootloader
On a dual-boot system, startup normally presents a menu to choose between Windows and Linux. Once Linux is removed, that menu is no longer needed — the system should boot directly into Windows by default.
-
Boot into Windows, open an administrator PowerShell or Command Prompt, and run:
bcdedit /enum firmwareCheck whether any entries for ubuntu or grub appear.
-
Write the Windows boot files back to the EFI partition:
mountvol S: /s bcdboot C:\Windows /s S: /f UEFI -
After the command completes, restart and enter your BIOS/UEFI settings. Move Windows Boot Manager to the top of the boot order.
Delete the Linux Partitions
- Open Disk Management (also labeled “Create and format hard disk partitions”).
- Locate the Linux partitions, right-click each one, and select Delete Volume. The partition should turn black, indicating Unallocated space.
- If a partition turns green instead, right-click the green border/outline and choose Delete Partition / Delete Extended Partition. Once deleted, it will become black Unallocated space.
Some Linux-related partitions (such as “UBUNTU BOOT”) may not allow Delete Volume from within Disk Management. In that case, use the command line:
Open a terminal as administrator:
diskpart
list disk
select disk 1 // Assuming the Linux partition is on disk 1 — adjust based on your setup
list partition
This displays the partition list for disk 1. Assuming the partition to delete is partition 2:
select partition 2
delete partition override
The override flag forces deletion of protected partitions.
After deletion, type exit to quit diskpart.
Create a New Volume
- Right-click the Unallocated space → New Simple Volume
- Leave the size at the maximum default
- Assign a drive letter (e.g., D: or F:)
- Format as NTFS and check Perform a quick format
- Click Finish