2

Possible Duplicate:
How to remove Ubuntu and put Windows back on?

I would like to completely remove Ubuntu from my hard drive, but I do not know how. I want to remove it because I just installed it on a different hard drive and would like to have two separate drives for Ubuntu and Windows 7.

Blake
  • 21
  • Could you clarify? Is this a drive with a dual boot set up, where you are trying to maintain a Windows Partition? Or, a drive that you simply want to install Windows over a current Ubuntu install? – Argusvision Oct 16 '12 at 19:39

1 Answers1

1

I had to do a similar thing. I needed to make Windows the only OS on a hard drive without formatting the drive/reinstalling. What I did was:

Boot into windows run BootRec.exe /fixmbr . This will get Windows7 to fix the Master Boot Record (MBR). Since it doesn't recognize Ubuntu this will set it so Windows7 is the only boot option.

Then you can boot into an Ubuntu CD. Use Gparted to remove the Ubuntu (Ext4) and Swap partitions. Then, expand the Windows Partition to fill the Hard drive.

Please be careful with each step as a mistake could wipe the wrong info. Also, make sure (and make sure again) that you have all the data you need off of the partitions you're removing.

Argusvision
  • 1,711