Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Win/Ubuntu 11.10 dual-boot setup, where I am running the OSes on separate partitions of my laptop HDD. I assume the best method of uninstalling is 'simply' a matter of deleting the Ubuntu partitions -once I've made sure control is given to the Windows bootloader instead of grub after POST.

The question is: How do I do that?

Stuff I've tried:

I tried the boot-repair CD (, but that was a bit beyond my abilities to figure out if I could do it with that tool :/.

I also tried EasyBCD ( It couldn't identify my ext3 partitions, let alone change the bootloader.

Lastly, I tried installing startup-manager in Ubuntu, and using that to set the Win7 bootloader as default. But upon restart, it still loads grub.

Kind regards, Martin

share|improve this question
up vote 1 down vote accepted


  1. Boot in to windows and right click on my computer.
  2. Go to manage>disk management.
  3. Delete the ubuntu installed partition and space reserved for swap.(If you like to use it in windows... format it and create a new partition. Or you can do it later.)


  1. Reboot the computer.
  2. Go to bios.
  3. Set the boot media to CD/DVD
  4. Put the windows 7 DVD(or recovery disk) in to the drive.
  5. Boot from the DVD


  1. Start windows repair(if you use windows 7 DVD or if you are using recovery it will automatically show repairing option)
  2. Allow the utility to repair startup.
  3. If utility found a error and fixed it reboot the machine and enjoy!!

If it failed.. follow step 4.


  1. Open command prompt in recovery mode.
  2. Type diskpart hit enter
  3. Then type list disk hit enter
  4. Then select your disk(you can find it by size) - use select disk x to select the disk. Replace x by relevant number.
  5. Then type list part hit enter.
  6. Then select primary disk with mb in size(not in gb) - use select part x to select the part. Hit enter.
  7. Then type active hit enter.
  8. Close the command prompt and again run the startup recovery tool.


share|improve this answer

I think that you can use Windows Recovery Console from the CD to "fix" the bootloader, i. e. deleting grub and replacing it with Windows' bootloader.

share|improve this answer
Ah, good idea! Why didn't I think of that >.< I'll try it when I get home. – MartinDK Feb 22 '12 at 12:18
If the automatic "fix" from the CD/DVD's menu system doesn't work, try navigating to System Recovery - System Repair and use the command bootrec.exe /fixmbr. (This what I have used successfully for Vista. I imagine that Win 7 is the same.) – CentaurusA Feb 22 '12 at 16:55
Ah, up and running again. Thanks for the help, guys. – MartinDK Feb 23 '12 at 15:16

Your Answer


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.