Menu Close

How to remove ubuntu from uefi boot menu

Ubuntu is one of the popular Linux distributions. Just as users install Ubuntu directly on their computers, many install it next to the Windows operating system. Thanks to this installation, called DualBoot, users can use both Windows and Ubuntu on the same computer.

There are two main steps to removing Ubuntu from your computer: deleting files and removing the GRUB boot loader.

How to remove ubuntu from uefi boot menu, Cleaning Linux Files

Turn on your computer with Windows. Then, open Disk Management. You have two options for this:

My Computer – > Right Click -> Manage – > Disk Management
Search and click “Disk Management” from the Start Menu

After the Disk Management window opens, find and remove Ubuntu partitions. To do this, follow the steps below:

Check for partitions that do not have a partition name and are larger than 1 GB in size.
After defining the partitions, right-click – > Delete Partition – > Yes

If you have free space (unallocated memory/partition/space), combine it with another partition to use it again later. To do this, follow the steps below:

Hover over the relevant section: right-click – > expand Section – > Next – > Next – > finish

Afterwards, restart the system.

How to remove ubuntu from uefi boot menu, Removing The Ubuntu Bootloader

Although you have removed your Ubuntu operating system, you will find that the Ubuntu bootstrapper still exists. This is because the Ubuntu system files stop on the disk where you installed Ubuntu and deleted it in the previous step, but the GRUB boot loader files are stored in the EFI partition. The next step will be to delete the group bootstrapper files from the EFI partition.

To do this, you must first start the command line (CMD) as an administrator. To do this, follow the steps below:

  • Start Menu – > CMD – > right click – > Start as Administrator

ubuntu_1-640x3386197092-1

After you open the command line as an administrator, use the diskpart tool by following the steps below:

  • At the command line, type diskpart, and then press Enter

ubuntu_2-640x3409557495-1

  • After this process, type the list disk and find the number of the disk on which Windows is installed.

ubuntu_3-640x3405627367-1

  • Then, type select disk <the number you found>. Ex: select Disc 4

ubuntu_4-640x3393976915-1

  • type list partition, press Enter, and list the partitions of the corresponding disk. Find the partition number that says System

ubuntu_5-640x3389228681-1

  • type select partition <the number you found> and click Enter. For example: select partition 1

ubuntu_6-640x3395397940-1

  • type assign letter = X, and then press Enter. Instead of X, you can write any number that has not been received by existing disks.

ubuntu_7-640x3396796834-1

Now, when you enter my computer, you will see a 100 MB partition in the Drivers section. This is your EFI system partition. Let’s put that information aside. We’re not doing anything from my computer folder. Let’s go back to the command line.

  • type exit, and then close diskpart.

ubuntu_8-640x3403235111-1

  • Type the letter that you just gave to the disk that you created, and add a colon, and then press Enter. Ex: X:

ubuntu_9-640x3385508825-1

  • type dir and access the files within the section.

ubuntu_10-640x3375677893-1

  • enter the efi folder by typing cd efi, then list the contents of the folder by typing dir.

ubuntu_11-640x3388861621-1

ubuntu_12-640x3416688203-1

Now you will see a list with the name of the Linux distribution you have installed (Ubuntu, Fedora, Manjaro). This is exactly the folder we want to delete.

  • type rd <Linux folder name> / s and click Enter. For example: Rd ubuntu / s

ubuntu_13-640x3411196276-1

  • Type Y and click Enter

ubuntu_14-640x3398310132-1

  • make sure the folder is deleted by typing dir

ubuntu_15-640x3396913855-1

Congratulations. You have deleted Ubuntu or any Linux distribution you use from your computer along with its boot loader. The connection to the GRUB boot loader will be disconnected when you restart the computer.

Leave a Reply

Your email address will not be published. Required fields are marked *