Pinterest MobileAppPage Stumbleupon Whatsapp
Ads by Google

Linux is a great operating system and more often than not, it’s the installation of Linux that is the matter of discussion.

For a change, I will be talking about how to uninstall Linux Ubuntu (or other operating systems) from a dual boot windows pc, and still being able to boot into other OS without much work. So let’s get started right away.

Backup your Linux files

It pops up everytime, but backup really is very important. If you have been using your Linux system for some time, chances are you would have created files you wouldn’t want to loose. In such a case, you can boot into Linux, backup your files (check out your Home directory) on an external device or onto a Windows partition.

Alternatively if you somehow managed to mess up and can’t boot into Linux, you can use ext2 IFS which allows you access to your Linux paritions. It can only read ext2 and ext3 filesystems though. If you are using other filesystems, you would have to look around a bit for a similar application. In any case, you can always boot from a Linux live CD to backup files if everything else fails.

Delete Linux Partitions

Next step: delete every Linux partition. That would include everything – boot, swap, home, whatever way you set up your system, it is time to delete all Linux partitions. There are a couple of ways to achieve this, easiest being from within Windows’ Computer Management. You need to:

Ads by Google

how to uninstall ubuntu from dual boot windows pc

  • Log in to an account with administrative privileges.
  • Right click on My Computer, click ‘Manage’.
  • Choose ‘Disk Management’ listed under ‘Storage’ and you will see all of your partitions listed there.

how to uninstall ubuntu from dual boot windows pc

Next, you need to identify Linux partitions. The Linux partitions generally don’t have a file system listed with them if Windows doesn’t recognize it, so this can serve as a clue. Other ways can be identifying by size or partition number. You can use partition managers, these are generally better at identifying filesystems. Go ahead, delete the partitions, just make sure you delete the correct ones. Linux is gone and so is GRUB, which allowed you to choose operating system to use at boot time. So currently, you cannot boot into any other operating system, without some help. We are going to fix that soon.

Restore MBR

As we noted, GRUB is gone and so is the ability to boot into Windows. You would now need to boot from the Windows CD/DVD to restore the Master Boot Record. You can also use other Live CDs like one of my absolute favorites and highly recommended HBCD just in case you don’t have Windows installation media handy. Here are the steps:

  • Boot from Windows CD/DVD and choose “Repair” when it shows up.

uninstall ubuntu from dual boot pc

  • Choose command prompt on the resulting screen and run the following two commands:
    • bootrec /fixmbr
    • bootrec /fixboot

XP users need to run the recovery console from Windows XP CD and then type fixmbr when at the command prompt.

Reclaim free space

Restart now, remove the CD and you should be able to boot into your Windows installation. Once there, you should go ahead and reclaim the unpartitioned free space which was previously occupied by Linux. Doing so is simple and straight forward:

  • Fire up Disk Management as before.
  • Right-click on the unparitioned space, choose new partition or new logical drive.
  • Specify the size and other options according to your needs and you are done.

The free space should now be accessible from My Computer like any other partition. Alternatively, you can create multiple partitions from the free space or resize existing partitions to suit your needs.You can use utilities like GParted, Easues Partition Master or any one of the many partition managers on HBCD to perform such advanced tasks easily.

  1. P. Oed
    December 26, 2016 at 6:11 pm

    As long as Linux is so DOS like it will never be fully realized. Linux for Geeks and even geeks don't understand it; just linux elitist, and they enjoy keeping it to themselves for a sense of power. Power over nothing is still nothing.

  2. dlefcoe
    September 28, 2015 at 7:54 am

    also, worth creating a Linux boot disc too (just in case you need to go back).

  3. dlefcoe
    September 28, 2015 at 7:52 am

    Yes, the partition tool is used to get back the space.

    I actually created a windows 7 boot disc first, because when the partitions are deleted a boot disc is required (since the PC does not have boot instruction at this point).

    I then did the upgrade from win7 to win10.

    One could directly go to win10, but to be safe make sure a win7 boot disc is also created.

    Hope this helps.

  4. dlefcoe
    August 8, 2015 at 7:45 pm

    Ubuntu with windows 7... migrating to windows 10 (so one operating system).
    Followed instruction & works.

    2 ubuntu partitions deleted.
    windows 10 iso disc created from windows website.
    partition magic (from used to resize windows partition.
    FYI. the free version was sufficient.

    Took time, but worked well..!

    • Dennis Chavez
      September 28, 2015 at 7:25 am

      Hey doefcoe, so first i create the win 10 iso disk from windows website, then delete the ubuntu partitions? and then i use the partition tool after everything is done?

  5. De Vytau
    August 7, 2015 at 5:00 am

    Thanks a lot :)

  6. Prudhvi Charan
    June 5, 2015 at 6:33 am

    I do not have a Windows cd or dvd . Is there any alternative

    • BillV
      March 7, 2016 at 4:27 am

      I realize this is an old post now, either you found the alternative or moved on to something else however, for others wanting to know same thing, you can create a multi-boot thumb drive from that will have the DOS recovery tools in it that you can restore the MBR without needing the original Windows install CD or DVD.

  7. Ssejjemba Daniel
    May 21, 2015 at 1:23 pm

    My pc will not load the windows cd it keeps warning no operating system found and then goes to grub recovery

  8. Pastnormal
    April 30, 2015 at 11:11 am

    This worked for me. I uninstalled Linux Mint from a dual boot with Windows XP. Now I'm going to upgrade to Windows 7, and reinstall Mint on another PC.

  9. MAK
    April 14, 2015 at 1:35 pm

    thanks.IT worked for me

  10. Wouter11234
    March 1, 2015 at 8:52 am

    Thanks! It works :D

  11. RH
    February 14, 2010 at 8:53 am

    I have deleted that partition and then reboot. Then, the screen to select among different OS (Ubuntu, WindowsXP) did not come and my PC automatically booted with XP(as it boots when WindowsXP is the only OS)!! No problem came. Though I did not do that thing(fixmbr....). Now I am working in XP. Has Ubuntu been fully uninstalled??

    • Remmy700P
      January 26, 2015 at 3:39 am

      No. GRUB is still installed in place of the Windows bootloader.

  12. Jesse
    February 8, 2010 at 5:50 pm

    Ubuntu gets more difficult to manage for noobs as it ages. It should be the other way around. I can't even get 9.10 to do dial up much less use my aircard. I'm over it.


  13. MP
    February 7, 2010 at 8:23 pm

    I tried the instructions offered. However, they did not work as expected. I deleted the partition with Ubuntu, but when I restarted the laptop (HP Pavilion 9700 with XP home SP2) with the recovery DVD, it immediately re-formatted my hard drive and is doing a clean installation of XP.... Oh well, I don't care about the data lost, but it's a real pain to bring the computer up to date. This was not a good way to uninstall Ubuntu and leave the XP alone....

  14. Jesse
    February 3, 2010 at 1:51 pm

    This didn't work for me... at least it didn't take care of the grub problem. Ubuntu still shows up. This is a problem because there is nothing there and if I try to reinstall ubuntu it will not allow me to boot in to xp.

  15. Jim
    January 5, 2010 at 11:49 am

    Hi all,

    I have windows 7 instead of Vista, will the process be the same as listed here?
    I have the installation disc from MS. Please let me know, if true, then, I will try it.

  16. qasrani
    December 14, 2009 at 2:06 pm

    Hi there,
    After trying to find a solution about what I am supposed to do in following situation:
    I have Acer Aspire 5315 laptop with pre-installed windows Vista Basic. I put Ubuntu on its top. All went messed up if I talk about booting. System restoring to factory default, ubuntu and windows booting, all comes on one screen. I have already once restored my system to factory defaults but as I do not have a windows CD or DVD seperatly (I got hard drive as recovery media), I was lost.

    I went to boot options by pressing F8 and there I choose system recovery. In system recovery, I went to command prompt and get
    done but
    did not worked. At least now there is no more option for operating system installations but still I can not figure out anything how to remove Ubuntu from system. Any help I can get from here?

    Summery: I want to restore my laptop to factory defaults. I do not have any CD or DVD for windows recovery but I have a hard drive partition for the purpose. Ubuntu mixed up my partitions so restoring the factory default does not work.

  17. cookielover
    October 25, 2009 at 1:55 pm

    I did this once differently. I couldn't find my Windows setup CD, so I went and got this software called MBRfix ( to restore the MBR. When I restarted, I automatically booted into Windows. THEN I deleted my Ubuntu partition.

    And then I reinstalled it. ;)

  18. dp
    October 25, 2009 at 5:11 am

    Kernel schmernel. This is a helpful explanation of how to get Ubuntu off my laptop.

    • Ant
      October 28, 2009 at 2:38 pm

      It certainly is. Thanks, Varun! If I'd had help as good as this when I was installing Ubuntu, maybe I wouldn't now need help UNinstalling it...

  19. Noah
    October 24, 2009 at 4:10 pm

    Correction - Linux is a kernel which lots of great OS's use. Please correct your error. I don't want to have to re-inform the masses.

    • Albert
      October 25, 2009 at 12:31 am

      Linux IS an operating system. If you are unclear on this point I suggest you talk to RedHat, Ubuntu, or even Microsoft. They will explain it to you. Don't Let Stallman or his minions confuse you. Without the Linux "kernel" their is no Linux operating system. This myth of GNU/Linux is just that, a myth! Their was never, and will never be a GNU operating system. The Linux kernel is what makes linux, Linux!

      • Noah
        October 25, 2009 at 5:46 am

        No, it's not a operating system. Those which believe so are wrong. Ubuntu and Redhat USE the Linux KERNEL, but they are NOT Linux. They are simply based upon it.

        • MP
          February 7, 2010 at 8:17 pm

          Ubuntu is an operating system.

Leave a Reply

Your email address will not be published. Required fields are marked *