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.

I had a 160 GB hard disk with Windows XP. Then I installed Ubuntu 11.10 64bit. But I didn't knew anything about disk partition. After installation, I only have C drive with 20 GB in xp and about 40 GB in Ubuntu. I have The Ubuntu in a DVD.

How do I remove it and get all the space back in Windows XP without losing XP?

share|improve this question
    
How did you install it? wubi or dual boot –  Ashu May 19 '12 at 6:16
    
If Ubuntu is on a DVD, just remove the DVD. Nothing else to be done there. –  mikewhatever May 19 '12 at 8:17

4 Answers 4

There are 2 ways you can use:

  1. Download a trial of Acronis Disk Director, boot from the CD and increase the size of your partitions. To download go here and click on free trial

  2. Keep Ubuntu installed after you change the partition sizes, and boot from the XP CD, choose repair console and once you get to the command prompt type fixboot c: (if c: is you xp boot drive) and that will make XP boot again. If you want to get rid of Ubuntu, delete the Ubuntu partition from the Acronis CD, and then use the fixboot command.

Let me know if more help is needed.

share|improve this answer
    
I find it amusing that you suggest Acronis, given that OP has access to a Ubunu Live-CD which contains gparted. And fixmbr needsto be run in both cases. –  Bobby May 19 '12 at 18:25
    
touché, That can be done too. I just have spent more time with acronis and windows. –  Mitch May 19 '12 at 19:23

I think the fastest way is to use fixmbr from the Windows recovery console, as in this example.

After you manage to use Windows boot loader, just run Windows, and go to My Computer -> Managenent -> Disk Utility and format the linux partition to any file system you want (probably NTFS).

Good luck!

share|improve this answer

I had the same problem, I uninstalled Ubuntu back in the time where I didn't like it, and it damaged badly my Windows 7. Luckily, I had the repair disk.

In your case, you should just use a partition manager and delete the Ubuntu files (from Windows -- there is a default partition manager in the admin tools).

Thanks, mjchopperboy, hoping your XP will survive.

share|improve this answer

This solution will seem to be worked until you reboot your computer. Do not try it.

--> I realised that; that will probably remove grub and Windows will not be able to understand nor rewrite mbr data for "sure".

That means you will lose both OS.

Open your XP.

write diskmgmt.msc to "Run"

Find your linux partition and delete it.

Right click on C: partition. And select the option helps you include the empty space in your disk.

Hope This Helps. Tried on Windows 7.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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