I wish to uninstall Ubuntu 14.04 from my dual boot machine. I had installed Ubuntu 14.04 with Windows 10. Currently I boot with GRUB and not windows bootloader. I have read on the internet that it is a safe choice to move to windows bootloader before uninstalling Ubuntu otherwise it will corrupt my windows files. Kindly suggest me a way to uninstall Ubuntu 14.04. There might be similar links available but they are about Windows 7. Windows 10 uses UEFI rather than BIOS (Windows 7) and instructions are outdated. Also detail out the steps required to change to the windows bootloader from GRUB.

In case you want to point me to some other questions/instructions please feel free. I just want to make sure that someone has tried or vet other/outdated answers.

Note - I will reinstall Ubuntu 14.04 once again but later; so if you have tips regarding making a fresh dual boot installation please mention them, and I don't want to use easyBCD for changing to bootloader

Notable links - How to remove Ubuntu and put Windows back on, How to geek - deleting Ubuntu partition, Changing to bootloader askUbuntu

--3 parts-- 1. Changing to bootloader + taking other precautionary measures to minimize the risk of corrupting Windows 2. Uninstalling Ubuntu 14.04 (including reformatting the hard disk and getting back the memory space in Windows) 3. Fresh install with Windows Tips (Optional) :D

  • Have you considered running Ubuntu 14.04 as a virtual machine withing Windows 10 Hyper-V? While the dual-boot is certainly possible, we see a lot of questions on Super User from people who encounter problems with a Windows/Linux dual-boot configuration. In contrast, we almost never hear about any problems from people running an Ubuntu VM. – Run5k Jan 20 '17 at 21:07
  • you can probably access a boot menu in your UEFI at bootup to pick which bootloader it will use; test and see if you can already pick the Windows bootloader from it. if so, it's safe to blow away the ubuntu partition. my UEFI uses F11 to trigger the boot menu during startup; yours might be different. – quixotic Jan 21 '17 at 5:31
  • @Run5k - I considered VM before but I am working with Kinect v2 Microsoft on Ubuntu 14.04 hence need the USB port 3 live time. Do you have any other tips? – Pallav Bakshi Jan 21 '17 at 10:24
  • @quixotic - I entered the boot menu as you suggested but couldn't find different options available. There were two - EFI File and Hard disk and under UEFI - HPDocs and NO VOLUME LABEL (may be because I have a unallocated partition ~ 300GB). I don't think so that it is picking up Windows bootloader. Let me know how can I test it. I have added the details about the options I see in boot menu on snayob's answer (see comment) – Pallav Bakshi Jan 21 '17 at 10:29

Windows boot files are placed in \EFI\Microsoft and Ubuntu boot files (GRUB) are placed in \EFI\ubuntu on EFI System Partition (ESP).

A simple change of UEFI boot order (stored in NVRAM) which would place Windows entry as first boot choice would be enough. Then, you can delete Ubuntu partition.

To achieve this:

In UEFI setup on your computer there should be a separate screen for setting boot where you can reorder which device or boot entry to boot first. Usually this list contains USB device, DVD device and boot entries from OS installed on disk.

If there is no way to reorder boot choices by using UEFI firmware setup, you could just delete "\EFI\ubuntu" folder on ESP.

To do this, open an admin command prompt:

  1. Map ESP using diskpart.exe to drive Z: (alternatively you can use Dual-boot Repair tool which maps ESP to drive Z: on start )
  2. Issue the following commands:


    This selects z: drive as current

    rd /s \EFI\ubuntu

    This deletes the folder

You can also use any bootable USB/DVD with Windows or Ubuntu to delete "EFI\ubuntu" directory from EFI System partition.

After a reboot, the UEFI boot entry for Ubuntu should not exist anymore.

Then, you can simply delete Ubuntu partition using Windows Disk Management or some third party disk tool.


  1. I would suggest if you have enough free disk space you just copy (recursively) "\EFI\ubuntu" folder to a safe place and then delete it from ESP. This way you still have Ubuntu installed but not in boot menu. Copying back \EFI\ubuntu would bring it back to boot menu.
  2. There is a connection between EFI boot menu (stored in NVRAM - not to be confused with Windows or GRUB boot menu) and the folders (Microsoft, Ubuntu) on ESP. Usually (dependent on implementation) EFI firmware checks boot menu entries on computer startup and dynamically adds or deletes boot menu entries if corresponding files exist or do not exist on disk.
  • In boot manager (opened using function keys during booting) there are two options - 1. Boot From EFI File 2. Notebook Hard Drive - WDC {Serial Number}. It seems I have to delete the \EFI\ubuntu. – Pallav Bakshi Jan 21 '17 at 10:08
  • When I press enter on the EFI File Option I enter into another screen detailing two volumes - HPDOCS[Pc iRoot(0x0)/Pci(0x17,0x0)/Sata(0x0,0x0,0x0)/HD(1, MBR, 0x1BEE7E3A, 0x800, oxF9C800)] and NO VOLUME LABEL,[Pc iRoot(0X0) ...]. My laptop came with FreeDOS and I installed Windows 10 on it (without deleting FreeDOS) and then installed Ubuntu 14.04. I cannot login to Ubuntu today,trying to figure that out as well. Do you think I can go for a clean install - deleting everything including Windows, Ubuntu, FreeDOS as well? – Pallav Bakshi Jan 21 '17 at 10:20
  • Once Windows 10 is installed on a computer and activated you can wipe disk and do a clean install. The new (clean) Windows 10 installation will be activated automatically. – snayob Jan 23 '17 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.