Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.
  1. I had Windows 7 and Ubuntu installed on the same partition
  2. Some time later, decided to uninstall Ubuntu.So I booted Ubuntu,Changed the hd related to it to NTFS,I did NOT extended my main drive

  3. restarted-> GRUB rescue>. No surprise since I had just wiped out the whole GRUB directory staff

  4. Now I just want to boot into my windows.Move my necessary files to an external memory and reinstall the windows seven

What I have in my hands:
Ubuntu live CD, A copy of win7 DVD
I tried to make use of the win7 DVD(I had lost my DVD) to fix the mbr but the problem is when I choose repair, It says that this version of Windows is incompatible with yours
What should I do?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

One way of doing that, is to download the Ultimate Boot CD, once downloaded, go ahead and burn the ISO to CD, boot from it, and run a command prompt.

Once you get the prompt, run the the following two commands in a command prompt:

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
share|improve this answer
Downloaded and wrote UBC, How can I get a command prompt? – Zeta.Investigator Jul 6 '13 at 4:24
I couldn't use UBCD.Thanks for the code.It worked.I'll update me post – Zeta.Investigator Jul 6 '13 at 6:42
This is still the best answer :D – Alan Asher Aug 30 '14 at 8:58
Glad to be of help. Thanks. – Mitch Aug 31 '14 at 5:21
If you don't have a Windows repair/recovery disc (which can be used to fix the bootloader), and don't have a copy of Ubuntu or some other Linux installed elsewhere (which can also be used to fix the bootloader), you may boot from a LiveCD of Ubuntu and then move the bootloader to Windows: sudo apt-get install lilo sudo lilo -M /dev/sda mbr To check which disk (e.g. /dev/sda) contains your Windows partition, use the Disks application available on the LiveCD. – jevon Feb 8 at 11:57

Using windows xp cd boot the machine, delete the linux partition and turn of the pc without installing windows xp operating system. Automatically system will boot normally. Reason: all the necessary files required by boot loader will be copied when you boot from cd.

share|improve this answer

protected by Braiam Feb 24 '14 at 4:55

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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