How to remove Linux from dual-boot setup alongside Windows

Yes, you can remove Linux from a dual-boot setup, and here's how to revert to a single-boot system with Windows 11 (or 10).

UEFI delete Linux from dual-boot
UEFI delete Linux from dual-boot / Image: Mauro Huculak
  • To safely remove Linux from a dual-boot setup using Windows 11 (or 10), you must first access WinRE to start the device in the UEFI firmware settings and change the boot manager from Linux to Windows. 
  • The next step is to boot into Windows, delete the partition containing the Linux installation, and either extend or create a new partition using the unallocated space. 
  • The third step is to delete the Linux boot manager from the Windows system partition and then remove the Linux Grub entry from the UEFI firmware.

If you have a dual-boot system using a Linux distribution (such as Ubuntu, Mint, or Fedora) and Windows 11 (or 10), but it’s now time to remove the Linux installation to revert to a single boot using only Windows, this is possible, but it’s not a straightforward process.

Setting up a dual-boot configuration with Linux and Windows isn’t complicated. You have to shrink the Windows partition or use a secondary drive to install Linux. However, if you no longer need the Linux installation, you have to complete several steps, including switching the bootloader in the UEFI firmware settings, deleting the partition with the Linux distro, relocating the unallocated space, modifying the Windows recovery partition to remove the Linux bootloader and changing the UEFI settings to remove the Linux bootloader entry. 

In this guide, I’ll outline the steps to safely uninstall or remove the Linux installation from a dual-boot system alongside Windows 11 or 10.

Warning: It’s important to note that you will be modifying the system partitions, which can carry some risks if not corrected. Creating a full computer backup before proceeding in case you need to roll back is still recommended. Also, to avoid potential problems, it’s recommended to disable BitLocker before proceeding. You can turn encryption on again after reconfiguring the system.

Remove Linux from dual-boot setup (safely)

To remove Linux from a dual-boot system to start with the Windows 11 (or 10) boot manager, use these steps:

  1. Start the computer on Windows.

  2. Open Settings.

  3. Click on System.

  4. Click the Recovery page.

  5. Click the Restart now button from the “Advanced startup” section.

    Windows 11 advanced startup

    Quick note: On Windows 10, the option is available on Settings > Update & Security > Recovery.
  6. Click the Restart button again.

  7. Click on Troubleshoot.

  8. Click on Advanced options.

  9. Click the “UEFI Firmware Settings” option.

    UEFI Firmware settings on WinRE

  10. Click the Restart button.

  11. Open the setup page.

    Quick note: I’m using the UEFI (BIOS) available with VMware. Since most manufacturers build their firmware experience differently, you may have to check their documentation to find the boot order settings.
  12. Open the “Configure boot options” page.

    Configure boot options

  13. Click the “Change boot order” option.

    Change boot order

  14. Change the boot order to make the Windows Boot Manager the first option and Linux the second option.

    UEFI make Windows Boot Manager first

  15. Save the changes and exit to restart the computer on Windows 11 (or 10).

  16. Open Start.

  17. Search for Create and format hard disk partitions and select the top result to open the Disk Management tool.

    Quick note: You can also use the “Disks & Volumes” page from the Settings app, but in this case, I’m using “Disk Management” since it’s available on both Windows 10 and 11.
  18. Confirm the partition containing the Linux setup in dual-boot.

    Quick tip: The best way to identify the correct partition is to remember the size you assigned to the volume. Also, it’ll probably be the one without a drive letter without a file system label or label from a Linux file system. However, don’t remove the “Healthy (EFI System)” or “Healthy (Recovery Partition)” since these are partitions in the Windows setup.
  19. Right-click the partition and select the Delete Volume option.

    Remove Linux dual-boot partition

  20. Click the Yes button to confirm.

  21. (Optional) Right-click the Unallocated space and choose the Extend Volume.

    Quick tip: If the smaller recovery partition is on the way to the main “C” partition, you won’t be able to extend the partition. You will have to use third-party software, such as GParted, or you will have to create a secondary partition.
  22. Click the Next button.

  23. Confirm the volume information.

  24. Click the Next button.

  25. Click the Finish button.

  26. Open Start.

  27. Search for Command Prompt, right-click the top result, and choose the Run as administrator option.

  28. Type the following command to launch the DiskPart tool and press Enter:

    DiskPart
  29. Type the following command to view the available drives and press Enter:

    List Disk
  30. Type the following command to select the primary drive and press Enter:

    Select Disk 0
  31. Type the following command to list the partitions and press Enter:

    List Partition

    DiskPart List Partition

  32. Type the following command to select the “System” partition and press Enter:

    Select Partition 1

    In the command, change “1” to the number corresponding to your “System” partition.

  33. Type the following command to mount the storage with a drive letter and press Enter:

    Assign Letter=E

    Add drive letter to recovery partition

    Quick note: You can assign virtually any drive letter that hasn’t already been taken.
  34. Type the following command to exit from DiskPart and press Enter:

    Exit
  35. Type the following command to enter the new system drive and press Enter:

    E:
  36. Type the following command to access the boot manager configuration and press Enter:

    CD efi
  37. Type the following command to view the boot manager options, identify the Linux bootloader, and press Enter:

    Dir
  38. Type the following command to remove the Linux boot manager from your computer and press Enter:

    RD ubuntu /s

    Delete Linux boot manager from Windows recovery partition

    In the command, change “ubuntu” to the name of the Linux bootloader installed on your computer.

  39. Type the “Y” key and press Enter.

  40. Type the following command to confirm the Linux bootloader has been deleted and press Enter:

    Dir

    Check Linux boot manager deleted

  41. Type the following command to launch the DiskPart tool and press Enter:

    DiskPart
  42. Type the following command to view the available volumes and press Enter:

    List Volume
  43. Type the following command to select the volume with the letter to delete and press Enter:

    Select Volume 4
  44. Type the following command to remove the drive letter and press Enter:

    Remove Letter=E
  45. Type the following command to exit from DiskPart and press Enter:

    Exit
  46. Open Settings.

  47. Click on System.

  48. Click the Recovery page.

  49. Click the Restart now button from the “Advanced startup” section.

    Windows 11 advanced startup

  50. Click the Restart button again.

  51. Click on Troubleshoot.

  52. Click on Advanced options.

  53. Click the “UEFI Firmware Settings” option.

    UEFI Firmware settings on WinRE

  54. Click the Restart button.

  55. Open the setup page. 

  56. Open the “Configure boot options” page.

    Configure boot options

  57. Click the “Delete boot option” setting.

    UEFI settings delete boot option

  58. Choose the Linux Grub entry to remove from the UEFI (in my case, Ubuntu).

    UEFI delete Linux dual-boot entry

  59. Save the changes to the delete entry and exit to restart the computer on Windows 11 (or 10).

Once you complete the steps, you will have successfully removed Linux from the dual-boot setup, and now, Windows should start correctly in a single-boot setup.

You may also use the bcdedit with the “enum” option to delete the Linux bootloader from the dual-boot setup, but while creating this guide, the Ubuntu entry did not show up in the list of bootloaders. As a result, I opted to mount the recovery drive and delete the entry manually.

Although it’s possible to revert to a single boot system, ideally, you want to restore the previous configuration from a backup or perform a clean install of Windows 11 to ensure the stability and reliability of the system.

If you have any questions or problems uninstalling Linux from your dual-boot setup, leave me a comment below.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 14 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].