• Home
  • Directory
  • Geeky Fun
  • Answers
  • MakeUseOf Guides
cool websites
RSS Twitter Facebook
Subscribe to MakeUseOf. Now, 168728 members!
Aweber

How To Safely Uninstall Ubuntu From A Windows Dual-Boot PC

By Varun Kashyap on Oct. 24th, 2009

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:

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.

stumble it!

(By) Varun Kashyap - Programmer, Blogger and Tech Enthusiast, who tweets @VarunKashyap and blogs about tips, tricks and latest on the web at TechCrazy Blog

Enjoyed the article? Subscribe to MakeUseOf to get daily updates on new cool websites and programs in your email for free. You'll also get free printable cheat sheets to your favorite programs

Your Email:




More about: dual boot . Linux . operating system . ubuntu

13 Comments

2009-10-24 16:10:56
Noah
Subscribed to comments via email

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.

Reply to this comment
2009-10-25 00:31:28
Albert

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!

Reply to this comment
2009-10-25 05:46:00
Noah
Subscribed to comments via email

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.

(Comments wont nest below this level)
2010-02-07 20:17:37
MP
Subscribed to comments via email

Ubuntu is an operating system.

Reply here
2009-10-25 05:11:11
dp

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

Reply to this comment
2009-10-28 14:38:33
Ant
Subscribed to comments via email

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…

Reply to this comment
2009-10-25 13:55:10
cookielover

I did this once differently. I couldn’t find my Windows setup CD, so I went and got this software called MBRfix (http://www.sysint.no/nedlasting/mbrfix.htm) to restore the MBR. When I restarted, I automatically booted into Windows. THEN I deleted my Ubuntu partition.

And then I reinstalled it. ;)

Reply to this comment
2009-11-02 19:06:02
Kevin Reynolds
Subscribed to comments via email

Thank you once again Make Use Of.

I have a Dell Optiplex 320. It’s one of those machine on which it is very difficult to run any Linux Distro. I wanted to reclaim lost disk space and ran into the very problem (grub would not allow me to access Windows.

I found another article on how to uninstall Grub: http://www.cybercity.biz/faq/linux-how-to-uninstall-grub/ but man was that a trip. I mean I’m sure it works but unless you’re a geek…

Your article on the other hand was straight forward. It got me their in under 10 minutes.

Thank you Make Use Of for another great article!

Reply to this comment
2009-12-14 14:06:07
qasrani
Subscribed to comments via email

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
bootrec/fixmbr
done but
bootrec/fixboot
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.

Reply to this comment
2010-01-05 11:49:09
Jim
Subscribed to comments via email

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.

Reply to this comment
2010-02-03 13:51:07
Jesse
Subscribed to comments via email

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.

Reply to this comment
2010-02-07 20:23:59
MP
Subscribed to comments via email

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….

Reply to this comment
2010-02-08 17:50:03
Jesse
Subscribed to comments via email

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.

Jesse

Reply to this comment
Reply
Note: Comments with abusive content, sarcastic grammar nitpicking, self-promotion will not be published. All comments are moderated.
Click here to cancel "reply".

TopicsMUO Guides
  • Browsing
  • Cool Software
  • Web Apps
  • Lists of Tools
  • How-To Tips
  • Windows
  • Mac
  • Linux
  • Gaming
  • Mobile Apps
  • Polls
  • Geeky Fun
  • BitTorrentThe Easy Guide
  • iPhoneUnofficial Manual
  • ItunesThe Big Book
  • LinuxGetting Started
  • MacBeginner's Guide
  • MoviesFor Movie Addicts
  • PC BuildingThe Idiot's Guide
  • ProductivityProductivity Guide
  • PhotoshopThe Idiot's Guide
  • TwitterBest Tips & Tricks
  • More Guides
Follow us on Twitter
Be Our Friend on Facebook
MakeUseOf Staff
Editors:
  • Editor in ChiefAibek Esengulov
  • MakeUseOf Directory's EditorKaly
  • Managing EditorMark O'Neill
  • Assistant EditorJackson Chung
  • MUO WP GuyJorge Sierra
  • PDF ManualsSimon Slangen
  • Promotion & SEORyan Dube
  • Sys AdminKarl Gechlik
  • MakeUseOf NewsletterSaikat Basu
  • MakeUseOf Answers EditorTina Sieber
Staff Authors:
  • ( Ask The Admin )Karl Gechlik
  • Tina Sieber
  • ( Tech Crazy )Varun Kashyap
  • ( The Things I Do )Saikat Basu
  • ( simonslangen.com )Simon Slangen
  • ( Free Writing Center )Ryan Dube
  • ( Super Subconscious)Jeffry Thurana
  • ( Tapping Thought )Dean Sherwin
  • ( Mac Photography Tips )Bakari Chavanu
  • ( timmyjohnboy.com )Tim Lenahan
  • ( Boulder Community Computers )Justin Pot
  • Other Active Authors ...

 

© 2010 MakeUseOf . Designed by kailoon AboutContactSubmit AppWrite For UsArchivesMobile VersionDisclaimer visitor stats