Windows – Completely remove Ubuntu from Windows 10 PC

biosbootloaderUbuntuuninstallwindows 10

I have the following situation:

I have a PC with Win10 installed. My computer has 2 SSD disks, one with Windows installation and the other was completely empty, so, I decided to install Ubuntu 18 in it.

I booted from a USB with Ubuntu installer. The default option in the wizard was to install in the same disk as windows, so I chose the "do something else" option. I selected the empty disk, created the mount points:
/, /home and swap

The installation finished fine and asked me to reboot. When I rebooted, a menu with purple background showed me the Windows and Ubuntu options. I chose Win in that very first reboot to make sure everything remained fine in that OS, and it did.

Then, I decided to restart in order to validate my Ubuntu installation, but BIOS just hung and it didn't even recognize my keyboard. No matter how many times I rebooted, I couldn't get past the Bios logo screen but not being able to access BIOS setting or do anything else but turn off.

I had to do a CMOS reset. After that, I booted with only the Windows 10 disk connected to the PC just to make sure everything ran smoothly. It did.

Then, I decided to reboot my computer, just to make sure. But, it happended just the same: BIOS hangs, no keyboard detection and doesn't get past that start up BIOS screen.

I did a second CMOS reset with only the Win 10 hard disk connected (again), but accessed the BIOS settings and in the Boot Options I see Windows, UEFI, the name of my SSD disk, and an Ubuntu option. Remember, the disk where I installed Ubuntu is not even connected. I don't understand how Ubuntu appears as a possible candidate for booting sequence if the disk where I installed is not even connected!!!!

How can I get rid of the Ubuntu traces that appear in my disk when choosing the Boot sequence in the BIOS? I am afraid (just guessing) that's the reason everytime I do a CMOS reset to BIOS, it only allows one boot. When I boot for the second time, my BIOS just hangs and I have to CMOS reset again and again.

Thanks a lot in advance.

Best Answer

Try following these steps...

Deleting Linux (Ubuntu) partition in Windows

You may skip this step since you have installed Ubuntu on a separate drive (SSD). However, if some partition (such as SWAP, Boot, etc) are installed in the main hard drive, you may have to do this.

Log into Windows and start Windows disk management tool. You can do this by searching “diskmgmt.msc”.

Start DiskMgmnt

Identify the Linux partition(s) and delete those partitions. These deleted partitions will be available as a chunk of free space. You can either extend the existing partition or create a new Windows partition out of it.

Note: Usually Linux partition(s) have no label under the File System column while Windows partitions will be identified by either NTFS or FAT. However, there might be a one or two partition that belongs to Windows but still have no label under the File System column.
Example: Healthy EFI System Partition (100MB)

Disk Partitions

Fixing Windows boot loader

Linux has been removed from your computer, but its boot loader persists. To remove this, you need a Windows installer disc or Windows repair disc.

How to Create and Use a Recovery Drive or System Repair Disc 10: https://www.howtogeek.com/131907/how-to-create-and-use-a-recovery-drive-or-system-repair-disc-in-windows-8/

Insert the Windows installer or recovery disc into your computer, restart your computer, and let it boot from that disc. After booting from your disc, click the “Repair your computer” option on the main install screen.

Main install screen
Image Source: https://www.howtogeek.com

On the “Choose an option” screen, click the “Troubleshoot” option and then on the “Advanced options” screen, click the “Command Prompt” option.

Choose an option screen Image Source: https://www.howtogeek.com

Advanced options screen Image Source: https://www.howtogeek.com

At the Command Prompt, type the following command and then press Enter to fix the Windows boot loader.

bootrec.exe /fixmbr

Once it’s done, restart your computer and this time windows should boot normally.
However, If this not work, you can also try the “Automatic Repair” option On the “Advanced options” screen.    


Updated ...
If you're still seeing the Ubuntu boot option in the Windows Boot Manager, try following steps.

Press Win + R on your keyboard to open the Run dialog box, and enter msconfig to open the System Configuration tool. Go to the Boot tab and delete unwanted boot options.

System Configuration tool


References and resources
How to Remove Linux (Ubuntu) From Dual Boot in Windows 10 []
How to Uninstall Windows or Linux After Dual-Booting
How to use the Command Prompt to fix issues with your PC's boot records
How to remove Ubuntu and put Windows back on?
How to Uninstall a Linux Dual-Boot System From Your Computer
How To Uninstall Ubuntu From Windows Dual Boot Safely
How to Delete Old Boot Menu Options on Windows 10

Related Question