How to uninstall ubuntu and grub from pre-installed windows 8?

19,599

Solution 1

Most instructions are for BIOS installs, but if you have pre-installed Windows 8 then you have an UEFI install.

With UEFI, grub does not overwrite Windows boot loader in efi partition but all boot loaders co-exist in efi partition as separate folders.

You need to first check that Windows will directly boot from UEFI menu. If you used tools to reconfigure dual booting or had a system that was not UEFI compliant and forced file renaming to dual boot then you may need to restore Windows efi file.

Best to have Windows 8 UEFI compatible repair flash drive. Windows 8 UEFI repair USB must be FAT32

http://www.eightforums.com/tutorials/2855-system-repair-disc-create-windows-8-a.html

http://social.msdn.microsoft.com/Forums/en-US/samsungpcgeneral/thread/e7ed293e-b565-44ee-a536-166dddf32205/

http://www.ghacks.net/2012/11/01/how-to-create-a-windows-8-system-repair-disc/

Windows UEFI install should have backup of bootmgfw.efi here if needed: C:\Windows\Boot\EFI\bootmgfw.efi from a working Windows x86_64 installation.

Generally once you can directly boot Windows from UEFI menu, you have to edit UEFI menu to remove ubuntu entry with either UEFI or with command line efibootmgr. You will have to remove ubuntu folder from efi partition and maybe recovery partition if also copied there. Then you can delete Linux & swap partitions with your favourite Windows partition tools or gparted and use Windows partition editor to expand the Windows NTFS partition or reuse space as a NTFS data partition.

Solution 2

You can make a Recovery disk or USB in Windows 8 if you want to delete the Ubuntu partition. To create a recovery disk/USB, just search the word "recovery" in Windows 8's search function.

This step-by-step guide shows you how to remove the Ubuntu partition and fix the Windows 8 Boot Loader safely:

How to Uninstall a Linux Dual-Boot System From Your Computer

Good luck to you, hope this helped!

Share:
19,599

Related videos on Youtube

ninjax999
Author by

ninjax999

Updated on September 18, 2022

Comments

  • ninjax999
    ninjax999 over 1 year

    I am about to install ubuntu to dual-boot on my pre-installed windows 8 laptop. Before I do, I really need to know how to uninstall ubuntu safely if I don't like it, or if I have to for some reason. I've been searching for an answer to this, but I do not have any sort of windows 8 disc. At all. This laptop came with windows 8, and I have no way to repair anything or things like that.

    So how would I go about uninstalling Grub and Ubuntu completely from my computer and restore the windows 8 boot manager with the circumstances that I'm in? I cannot find any solution except booting into the installation CD and repairing things - which I don't have.

    • ninjax999
      ninjax999 over 10 years
      @TrailRider That was for windows 7 BIOS. I specifically said I do not have a recovery CD and I have preinstalled windows 8 (efi)
    • Eliah Kagan
      Eliah Kagan over 10 years
      Hopefully that question can be updated soon to cover this. But until it is, I agree; this shouldn't be closed a a duplicate of that question until it has an answer that might plausibly answer this.
  • ninjax999
    ninjax999 over 10 years
    This was helpful, but may I ask - can I do the recovery disc with a flash drive? I am not currently at my house, and my laptop is a sleekbook - hence no CD/DVD drive. I will check later, but I would just like to know if you knew right now.
  • Nullet
    Nullet over 10 years
    Yes, you can create a recovery USB flash drive for Windows 8. Glad I could help!