Wednesday, March 18, 2015

How To Install Ubuntu 14.04 In Dual Boot Mode With Windows 8 Or 8.1 UEFI


I have covered how to install Ubuntu in dual boot with Windows 8 several times in the past. But what about uninstalling Ubuntu from Windows dual boot? Tutorial which we are going to follow here applies on any Linux OS be it Ubuntu, Linux Mint, Elementary OS or any other Linux distribution.
If you think installing Ubuntu with Windows 8 in dual boot was a tough task and it will be very easy to remove Ubuntu from Windows dual boot, you are not completely wrong. Uninstalling Linux from Windows dual boot is a piece of cake if you have a Windows installation disk.
This tutorial teaches you how to remove Linux completely from Windows 8 or Windows 8.1 dual boot with a Windows 8/8.1 installation disk.

Uninstall Ubuntu safely from Windows 8 dual boot mode

It doesn’t matter if you have Windows 8 installation disk and Windows 8.1 installed on your system. It will work all the same. I cannot say the same of Windows 7 though. If you have your Windows disk with you, let’s start the process to remove Ubuntu Linux from Windows dual boot.
Deleting Linux from dual boot is done in two parts. First is to delete the partition(s) on which Linux was installed. Second part is to fix Windows boot loader as just deleting the Linux partition will result in Grub rescue error.

Part 1: Deleting Linux partition in Windows

Step 1:

Log in to Windows. Press Windows+R and run diskmgmt.msc command in it. It will open the Windows disk management tool.
Disk Management Windows

Step 2:

Since you had installed Linux, it will be easy for you to recognize the Linux partition by its size. Another hint to recognize the Linux partition is to look at the partitions which doesn’t have a file system and drive number. Windows partition are labeled with a drive number such as C, D, E etc and are usually in NTFS or FAT file system.
As you can see, I have three Linux partitions here as I had created root, swap and home separately while installing Ubuntu.
Delete Linux Partition

Step 3:

Select the Linux partition(s), right click on it and opt for Delete Volume option.
Uninstall_Linux_From_WIndows_Dual_Boot_1
It will throw you a warning, just select Yes here.
Uninstall_Linux_From_WIndows_Dual_Boot_2

Step 4:

The deleted partition(s) will be available as a chunk of free space. You can either extend the existing volume or create a new Windows partition out of it. I would suggest to create a new drive (or volume or partition, whatever you call it) as a new drive would be easier in case you decide to dual boot Linux with Windows again.
Uninstall_Linux_From_WIndows_Dual_Boot_3

Part 2: Fixing Windows boot loader

Once you have deleted the Linux partition, it’s time to fix the Windows boot loader. Pictures here are might not be that clear as it is easier to take screenshot of login screen in Ubuntu than in Windows. I took them with phone camera.

Step 1:

Put the Windows 8 installation disk and restart your computer. Press F10 or F12 at the boot time to go into BIOS/UEFI and choose to boot from removable disk.
Booting from Windows installation disk

Step 2:

Choose to repair your computer:
Repair windows boot loader

Step 3:

Go for Troubleshoot option here:
troubleshoot windows and linux dual boot

Step 4:

In troubleshoot page, choose for Advanced options:
Uninstall_Linux_Windows_Dualboot_4

Step 5:

Look for command prompt option in here:
Uninstall_Linux_Windows_Dualboot_6

Step 6:

In the command line, type the following command to fix the Windows boot loader:
bootrec.exe /fixmbr
Normally, it works instantly. You don’t even have to wait for it.
Uninstall_Linux_Windows_Dualboot_5

Step 7:

Once it’s done, restart your computer and this time boot normally from hard disk. You should be able to boot in to Windows. In case you still see Grub rescue error, try the steps below.

Step 8: If trick in step 6 did not work

If the command in step 6 did not work, try the automatic repair option in advanced troubleshoot option.
automatic repair windows troubleshoot
It will take some time to find the issue and then repair it.
Automatic repair Windows Linux dual boot
Now if you reboot, you should go in Windows normally and you should not see any Grub rescue error thingy.
I hope this guide helped you to completely remove Ubuntu from Windows 8 dual boot. Feel free to ask any questions or put up a suggestion.

No comments:

Post a Comment