How to Uninstall Ubuntu in a Windows 10 Dual-Boot System

by David Trounce

What do you do if you have installed Ubuntu on your PC alongside Windows but don’t want to use Linux anymore? You now have a Linux partition on your hard drive that is taking up space you want to use for your Windows folders and files.

This article will show you how to safely uninstall Ubuntu in Windows 10 dual boot without losing data or applications.

Table of Contents

    The first part of this process is to remove the Linux operating system. Keep in mind that this will also remove all your Ubuntu data and system files. Be sure to save anything you don’t want to delete somewhere else. The second part of the process is to change the Windows boot loader.

    Before making any changes to your computer, you always want to back up your files. Even if you have only been using Linux for a short period, there will most likely be data you want to save.

    Also, you want to back up all the critical data from your Windows partition. Use an external hard drive, cloud storage, or DVDs so that you don’t lose any data.

    Make sure you have a USB or DVD of Windows. You can download a copy of Windows 10 from Microsoft.

    Delete The Linux Partition In Windows

    Linux partitions are differentiated from Windows because they don’t have a drive number and file system.

    Windows partitions can be identified by the drive label such as C, D, and E. They are also usually FAT or NTFS files.

    Deleting the partitions will free up space on your drive.

    After the process is complete, you will see only one volume meaning you have claimed all your disk space back to Windows.

    Once you remove Linux partitions from your computer, the boot loader for Ubuntu is still there and needs to be removed as well. There are several ways to do this.

    Remove the Grub Bootloader

    1. Go to the Windows Start menu and click on the power icon. Then press and hold down the Shift key and select Restart.
    2. Continue holding down the shift key until you see the Choose an option screen.
    3. Select the Troubleshoot option > Advanced options > Command Prompt. Choose your user account from the Command Prompt options and enter your password.
    4. This will open a command-line terminal. Type bootrec /fixmbr and hit Enter. See the message that the operation has completed successfully.
    5. Next type bootrec /fixboot > Enter. See the same message that the operation has completed successfully. Type another command bootrec /scanos > Enter. This command will scan all your disks to see if there are any instances of the Windows OS. The time it takes to complete depends upon your system specifications and the size and number of disks you have installed. When the scan is complete, you will see the Windows installations you have on your disk. 
    6. To make Windows your primary boot OS, type the command bootrec /rebuildbcd > Enter.
    7. If you have multiple Windows installations, you will see a list of all of them and where they are stored on your drive. Type A > Enter to complete the process. 
    8. To close the terminal, type exit > Enter. You have now successfully removed everything related to Ubuntu. Your PC will now boot directly to Windows.

    Overwrite the Linux Boot Loader with Windows Boot Loader

    What if You Don’t Have a Windows Installation CD or USB?

    You can still uninstall Ubuntu dual boot from Windows 10 or Ubuntu as explained below.

    bcdedit /set “{bootmgr}” path \efi\microsoft\boot\bootmgfw.efi

    Change Boot Order Using UEFI

    Uninstalling Ubuntu from Windows 10 dual boot is not difficult. You can follow one of the methods above to do so without losing any data.

    Exit mobile version