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 have installed Ubuntu 11.10 on my Acer netbook as a dual boot with the default Windows XP on said netbook. Now I need only Windows XP and want to completely uninstall Ubuntu 11.10, there is no cd drive in my netbook. Any help would be greatly appreciated.

share|improve this question
    
How did you install it in the first place? Wubi, or something else? –  ams Nov 28 '11 at 13:16
1  
I've been trying to find ways to do this for the last 20 minutes and it seems the sticking point is restoring the Windows bootloader without a CD. With a CD, it's easy (recovery console, startup repair). Whatever you do, don't delete the Ubuntu partition until the Windows bootloader is back, or GRUB will probably stop working and you'll be left with no bootable OS. –  Caesium Nov 28 '11 at 13:50
    
as "Caesium" said just restore the windows boot loader and remove the ubuntu partition this will solve your problem –  VENKI Nov 28 '11 at 14:50
    
possible duplicate of How to remove Ubuntu and put Windows back on? –  Jorge Castro Jun 23 '12 at 1:02
add comment

2 Answers

Follow the instructions regarding easybcd as described

How to reinstall windows bootloader to the MBR

After you reinstalled the windows bootloader you can delete the ubuntu partion using a live cd/usb and running gparted.

share|improve this answer
add comment

If you have a Wubi install then you can just remove it from the Windows 'Add/Remove programs' tools (or whatever it's called these days).

If you installed it some other way (USB?) as a full dual-boot system, then you can probably restore it using a USB CD drive - but I'm sure you already thought of that. (Maybe you could put a Windows CD image on a USB drive, but I don't know?)

If none of that works then you could try using a virtual machine. If your machine can't handle real VMs (and many netbooks won't be able to), then kvm can simulate a machine the hard way, slowly, as long as you have enough memory.

Within Ubuntu, kvm will boot from an iso image of a Windows CD (or maybe a network mounted CD drive, slowly), and you can set your virtual hard drive to be your real hard drive /dev/sda (or whatever it's called on your system - you'll need to be root to access it), and then you can let it do a repair. IF THIS GOES WRONG BAD THINGS WILL HAPPEN, so wait until somebody has found the obvious flaw in my plan and posted it in the comments.

Don't ever try to do a full install this way though: a) bad things happen if you wipe the drive your OS is running from, and b) Windows detects hardware at install time, not run time, and the virtual hardware won't match your real hardware, so the result won't boot. (Although, I have actually used this technique to install Linux on a drive that I had physically removed from another machine that had no CD or boot-from-USB feature.)

Once the Windows boot loader is restored, you can reboot into Windows, and use normal Windows tools to rearrange/reformat/delete/extend the drive partitions to your taste.

share|improve this answer
    
Setting the virtual HD to be your currently live mounted real HD sounds incredibly dangerous. Does that even work? –  Caesium Nov 28 '11 at 17:07
    
It works as long as you don't touch the partitions you are running from. In particular, if you're running Linux, you can touch the Master Boot Record and Windows partitions 'safely' (as in, it won't crash now - you can easily prevent it from booting again, but then that's true for any installer). –  ams Nov 29 '11 at 9:43
add comment

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.