Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have Windows 7 installed on my system. After I installed Windows 7, I installed Fedora on a separate partition so that I could dual boot.

I removed Fedora by deleting the partition it was installed on. Now I am unable to start my system. On boot, my system stops at the Grub command line.

I want to boot to my Windows 7 installation which I haven't removed from my system.

This is displayed on startup

GNU GRUB version 0.97-71.fc15 (634k lower /306122k upper momory)<br> [
minimal BASH-like editing is supported.for the first word, TAB lists
possible commands completions.anywhere else TAB lists the possible
completion of device/filename.]
grub>

How can I boot my Windows partition from this grub command?

share|improve this question

3 Answers

up vote 4 down vote accepted

The ultimate goal is to restore the Master Boot Record (MBR) to the hard drive, removing Grub, so you can boot to your Windows partition in the future without stopping at the Grub command line.

The easiest way to achieve this is to boot from your Windows 7 installation media. Use the Repair computer link and choose Command Line. At the command line, enter bootsect /nt60 SYS /mbr. You can reboot your system and it will now boot into Windows.

share|improve this answer
its awesome ! i am very thankful to you ! – juned Apr 26 '12 at 15:58
I also have this problem; however I was running Windows 8. Now when I boot all I can see is the grub rescue> prompt. What do I do? – PolyShell Apr 19 at 13:29
You should open a new question with the details specific to your issue, specifically Windows 8. – uther Apr 19 at 14:29

In addition to what uther suggests, you can also attempt to boot Windows directly from GRUB. You're using GRUB 0.97 (i.e. Grub ‘legacy’), so try this:

chainload (hd0,0)+1

This will boot the first sector (+1) of the first partition (,0) of the first HD (hd0). Your partition layout may be different. Press Tab once or twice after typing the opening parenthesis (() to get a listing of your partitions and choose the one you need.

The first sector of a Windows partition is its bootloader, and chainload is the way GRUB boots Windows normally.

If this works, and you get to Windows, you should do as uther suggests: open a shell (Start → Run… → type cmd Enter), then rewrite the Windows MBR with bootsect /nt60 SYS /mbr. That should stop GRUB from running on boot.

share|improve this answer

Possible partitions are: Partition num: 0, Filesystem type unknown, partition type 0x7 Partition num: 4, Filesystem type unknown, partition type 0x7 Partition num: 5, Filesystem type unknown, partition type 0x7

Please help - this is what I get on hitting tab after chainload. Unable to boot into windows or ubuntu. I'm a n00b, how do I boot?

share|improve this answer
do not answer, ask your query in comment please – juned yesterday

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.