Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-17-2011, 02:56 PM   #1
LQ Newbie
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
Angry Using GRUB to boot Windows 7

How do I boot Windows 7 from a grub> prompt?

A little background:
I was playing with some partitions in WINDOWS 7 and I deleted a partition that (unbeknownst to me) was important because now I can't get back into Windows 7 after a restart. Instead, I am at a "grub>" prompt at bootup. I'm running GNU GRUB version 0.97.

I tried "root(hd0,<tab out>" gave me:

Possible partitions are:
Partition num:0, FIlesystem type unknown, partition type 0x7
Partition num:2, FIlesystem type unknown, partition type 0x7
Partition num:3, FIlesystem type unknown, partition type 0x7

So I tried typing all three possible partitions. No luck. Help?
Old 12-17-2011, 03:18 PM   #2
LQ Newbie
Registered: Dec 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled

If you want to boot an unsupported operating system (e.g. Windows 95), chain-load a boot loader for the operating system. Normally, the boot loader is embedded in the boot sector of the partition on which the operating system is installed.

Set GRUB's root device to the partition by the command rootnoverify (see rootnoverify):
grub> rootnoverify (hd0,0)

Set the active flag in the partition using the command makeactive1 (see makeactive):
grub> makeactive

Load the boot loader with the command chainloader (see chainloader):
grub> chainloader +1

`+1' indicates that GRUB should read one sector from the start of the partition. The complete description about this syntax can be found in Block list syntax.

Run the command boot (see boot).
However, DOS and Windows have some deficiencies, so you might have to use more complicated instructions. See DOS/Windows, for more information.
Old 12-17-2011, 05:22 PM   #3
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Rep: Reputation: 29
Do you also have a version of linux installed? what is the need for grub in this situation? did you try to install it so you could boot into windows?

if you're just trying to "fix" booting into windows (with no consideration of any other OS's) then you can load your windows media and run the repair wizard which should fix the mbr


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Grub : Lost my windows partition, can't find menu.lst in /boot/grub.Someone can help? lucid_dino Ubuntu 9 11-01-2010 02:51 PM
GRUB won't boot into windows 7, and windows 7 recovery erases ubuntu... amiejay Linux - Newbie 2 01-03-2010 02:07 AM
Putting 3 windows OS into Grub Menu without going thru windows boot loader c_mack93 Ubuntu 8 11-13-2009 10:23 PM
dual boot - Grub won't boot Windows on /windows/D partition biosol SUSE / openSUSE 9 04-09-2006 09:14 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 06:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration