Previously I had installed the Ubuntu 10.04 and Windows 7.
Now I logged on to Windows, opened the partition editor and deleted the volume containing the Ubuntu – I thought it will delete the Ubuntu and it might help me install another OS – and I restarted the system.
GRUB rescue prompt is there.
I want to log on to Windows. How can I do that?
In GRUB rescue, I tried the following:
ls
(hd0) (hd0,3) (hd0,2) (hd0,1) (hd1) (hda1,1)
Tried all combinations of ls (hdax)/
, which threw out:
error: Unknown Filesystem.
I tried this:
rootnoverify (hd0,0)
chainloader +1
makeactive
boot
It threw out:
Unknown command.
EDIT:
I installed Ubuntu from the USB. Now when I restarted the system, I got the GRUB, showing old Windows and the newly installed Ubuntu. I happily logged onto Windows. Then I used standard procedure to remove Ubuntu, so as not to have grub rescue.
Best Answer
You can't boot Windows from a grub rescue prompt, unless the partition with the grub modules is available. That's why you get the unknown command error. Your best solution is to reinstall the Windows bootloader. To do this boot from a Windows 7 repair CD or the Windows Installation DVD to a repair prompt and run:
If you don't have a Windows repair CD or Installation DVD, it's also possible to install a Windows-like bootloader from an Ubuntu CD/USB if you have one of those:
Note that
lilo
will popup a large warning screen, but it's safe to ignore it as this refers to when it's used to boot linux.This is what it looks like to use
lilo
(note the command is case-sensitive):You'll see a warning that looks like this - it can be ignored when you use
lilo
as a windows-style bootloader: