Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

marked as duplicate by Mitch, Stephen Myall, con-f-use, Takkat, John S Gruber Oct 18 '12 at 1:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.