1

I am trying to uninstall Ubuntu on a Windows 10 dual boot. I understand that I must delete the partitions holding Linux and the Linux swap, but do not know how to proceed to get rid of boot entry and GRUB.

I have read that I can use efibootmgr on a live version of Ubuntu to delete the Ubuntu entry, but I have also read that I can delete the Ubuntu folder in the EFI directory through Windows. Are these two methods the same or do I have to use both of them to completely erase traces of Ubuntu?

Thank you for your help.

mook765
  • 18,644
coolro
  • 31

2 Answers2

0

First boot to Ubuntu and install efibootmgr and use it to check your current efi boot list.

$ sudo apt-get install efibootmgr
$ sudo efibootmgr
BootCurrent: 0000
Timeout: 10 seconds
BootOrder: 0000,0004,2001,2002,2003
Boot0000* ubuntu
Boot0003* Windows Boot Manager
Boot0004* Windows Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

In my example, my windows boot manager is entry 4, and ubuntu is entry 0. You can see the boot order 0, 4, ...

To delete the Ubuntu boot entry, first update the boot order then delete the Ubuntu entry (follow the number on your computer, not this example.)

$ sudo efibootmgr -o 4,2001,2002,2003
$ sudo efibootmgr -B 0

Now you can go ahead and boot into Windows and use the disk manager to remove the Ubuntu partition.

PS: Make sure you keep everything in the list except the Ubuntu entry you want to remove from the boot list.

Additional info can be found in the UEFI Wiki page. It explain that EFI system partition is mounted on /boot/efi, and other useful details.

Bernard Wei
  • 2,175
  • 1
  • 14
  • 23
0

the best way to completely remove ubuntu is using a windows live DVD to delete the ubuntu partition then extend the current windows to the whole drive .

just reboot your computer with a bootable windows DVD, and fallow the instructions to get ride of ubuntu.

Kaylee
  • 63