Most of us are dual booting operating system in our computers, means installing two operating systems in separate partition instead of using VMware or VirtualBox. Mostly people installs Linux-Windows combination in dual boot system. And always messes up during uninstalling either one of this OS from their system. In this article we will show you how to uninstall Linux or Windows from dual boot system.
Most of the users use Windows version of OS in their systems, but there are some nerds who want both Linux and Windows. And after a couple of months, some of them wanted to switch to a single operating system, either Linux or Windows and most of them always break their boot sequence while uninstalling Linux or Windows. For those guys this tutorial will help, actually uninstall Linux or Windows from dual boot system is not that difficult. So let’s start :
Uninstall Linux And Keep Windows:
First method for those who wants to stick on regular Windows version and like to uninstall Linux OS from their system.
- First go to “Start Menu” and search for “Disk Management” and open up the Disk Management tool or you can simply hit “Windows key + R” to open Run dialogue box and type “diskmgmt.msc” to open Disk Management tool.
- Next find out your Linux partition. It won’t be labeled since Windows doesn’t understand the Linux file system, so you’ll need to figure out which one it is by size and where it is on your hard drive.
- Before moving to next step make sure you choose right partition. Now right click on Linux partition and choose “Delete Volume“. This will delete the partition from your hard drive, leaving free space.
- Now you can see the deleted partition in green color labeling “Free Space“. Next, locate the Windows partition near the newly available free space, right-click it, and select Extend Volume. Extend the partition so that it takes up all of the available free space. Any free space on your hard drive will remain unusable until you assign it to a partition.
- Yes you uninstall Linux from your system but its boot loader persists. So insert your Windows recovery media and boot from it. Choose “Repair Your Computer” go to “Troubleshoot” and then enter into Command Prompt. Type the following command:
- And this will remove or uninstall Linux bootloader and replace it with Windows.
- Reboot your computer and you should find that it boots directly into Windows, with no Linux partition to be found.
Uninstall Windows And Keep Linux:
- Insert a live CD or USB for your Linux distribution and start up its partition manager (like Gparted). Find your Windows partition in Gparted’s menu—it’ll be listed as an NTFS drive.
- Right-click on that Windows partition and choose “Delete” from the menu. Your machine may have other Windows-related partitions as well, like “System Reserved” and recovery partitions. If you want, you can delete these as well (but make sure you have recovery discs handy if you’re going to delete a recovery partition).
- Right-click on your Linux partition and choose “Resize/Move“. Resize it so it takes up the rest of the now-free space on your drive.
- Click the “Apply All Operations” button in the toolbar to perform the selected tasks. It may give you a warning saying that your computer may not boot, but with most Linux installations this shouldn’t be a problem (though if it is, check out this article to fix it). This process may take some time, so let it be!
- When it finishes, you should have a hard drive with nothing but Linux on it. Your boot menu will still have some Windows entries, and it’ll work fine if you leave them there, but if you want to clean things up, just open up a Terminal in Linux and run:
to remove them.
So this is how to uninstall Linux or Windows from dual boot system. If you are stuck during any process feel free to seek out our help by commenting below.