LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2005, 01:53 PM   #1
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Rep: Reputation: 15
Booting Windows from the Grub Prompt


I had Windows XP and RH2 installed onto different partitions on one hard drive and I had a grub menu at startup to choose my OS. I had to delete my Linux partition to free up space. When I did that, the computer starts up in a GRUB prompt now and I don't know how to get into windows. What should I type from there to load windows. Its on my first and only HD on the first partition. Thanks.
 
Old 01-08-2005, 02:07 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Boot up from a Windows boot floppy and type: fdisk /mbr
 
Old 01-08-2005, 03:16 PM   #3
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Original Poster
Rep: Reputation: 15
I don't have a working floppy drive anymore. There isn't a command to boot windows from grub?
 
Old 01-08-2005, 03:34 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally posted by Kurzweil
I don't have a working floppy drive anymore. There isn't a command to boot windows from grub?
There is, but you tossed your grub menu away. ;-)
Too much trouble every boot.
Stick the XP CD in and boot it. There's a "Recovery Centre" (I think that's what it's called) where you can recover (as in rewrite so Windoze will fire up) the MBR.
Simple as that.
 
Old 01-08-2005, 03:43 PM   #5
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Original Poster
Rep: Reputation: 15
Yeah, I could fix it after getting windows to start but before booting to the cd, it starts grub so even with my xp cd in the drive I can't get anything different than grub. If there is a way, could you enlighten me?
 
Old 01-08-2005, 03:52 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally posted by Kurzweil
Yeah, I could fix it after getting windows to start but before booting to the cd, it starts grub so even with my xp cd in the drive I can't get anything different than grub. If there is a way, could you enlighten me?
This is a BIOS issue - get into the BIOS on restart (usually the DEL key while the message/logo is up.
Make the CD first in the list, hit F10, save it, and away you go.
 
Old 01-08-2005, 03:56 PM   #7
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Original Poster
Rep: Reputation: 15
The CD is first. Looks like I came up with a dooozy..
 
Old 01-08-2005, 04:09 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
From the grub prompt you can enter the commands from your grub.conf. Amend as appropriate, and hit enter after each line. Don't know that you can run fixmbr from Windows, but this should get you there.

root(hd0,0)
makeactive
chainloader + 1
boot
 
1 members found this post helpful.
Old 01-08-2005, 04:39 PM   #9
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Original Poster
Rep: Reputation: 15
Thank you much. that is the answer I was looking for!

Last edited by Kurzweil; 01-08-2005 at 04:40 PM.
 
Old 03-12-2006, 10:30 AM   #10
kmarcos
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
The above commands at the Grub prompt did not work exactly as documented. I had the same scenario with Grub boot loader. Here is the syntax that worked for me:

root (hd0,0)
makeactive
chainloader --force +1
boot

I was running Fedora Core 4.
 
Old 10-10-2007, 03:18 AM   #11
fergusmacdonald
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Command.com problem

I had XP and FC5 installed in two different partitions, and just deleted the FC5 partition from within Windows using Partition Magic. To complete the process, Partition Magic had to restart the computer, and when it boots it loads GRUB.

I was able to enter:

root (hd0,0)
makeactive
chainloader --force +1
boot

and windows started to boot, however shortly after it comes up with the following message:

The following file is missing or corrupt: COMMAND.COM
Type the name of the Command Interpreter. (eg. C:\WINDOWS\COMMAND.COM).

Any help would be much appreciated.
 
Old 10-10-2007, 10:49 AM   #12
fifteen10e56
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian Unstable
Posts: 23

Rep: Reputation: 15
That would probably mean windows is screwed up. What you can do is boot to the windows CD, when it says "press enter to install windows or r to enter recovery console" hit enter and go on with the installing windows thing, then it'll pop up with a menu asking if you want to repair the current install of windows that it has detected on yoru system. Hit r (or whatever the key is) to do this and it'll basically rewrite all the actual windows files without erasing yoru files. There's a chance it might not catch that you have windows, in which case it'll dump you at a screen to partition your HD. If you get there, stuff's really screwed up and you'll probably have to completely reinstall windows.
 
Old 09-14-2008, 06:23 AM   #13
mousator
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by fergusmacdonald View Post
I had XP and FC5 installed in two different partitions, and just deleted the FC5 partition from within Windows using Partition Magic. To complete the process, Partition Magic had to restart the computer, and when it boots it loads GRUB.

I was able to enter:

root (hd0,0)
makeactive
chainloader --force +1
boot

and windows started to boot, however shortly after it comes up with the following message:

The following file is missing or corrupt: COMMAND.COM
Type the name of the Command Interpreter. (eg. C:\WINDOWS\COMMAND.COM).

Any help would be much appreciated.
yes, that happen the same to me. Probably my reply doesn't help you now, but maybe it helps to somebody else. There's my solution:

rootnoverify (hd0,6)
chainloader (hd0,1)+1
boot
 
Old 09-04-2009, 09:37 AM   #14
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
Quote:
Originally Posted by fergusmacdonald View Post
I had XP and FC5 installed in two different partitions, and just deleted the FC5 partition from within Windows using Partition Magic. To complete the process, Partition Magic had to restart the computer, and when it boots it loads GRUB.

I was able to enter:

root (hd0,0)
makeactive
chainloader --force +1
boot

and windows started to boot, however shortly after it comes up with the following message:

The following file is missing or corrupt: COMMAND.COM
Type the name of the Command Interpreter. (eg. C:\WINDOWS\COMMAND.COM).

Any help would be much appreciated.
I tried grub command, I reassure you. I have the same error message.
 
Old 11-11-2009, 07:48 AM   #15
cerati88
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
How can I make an entry for Windows Server in Grub, I have both XP and Server on the same hard drive but I'd like to know if there's a way of having the option to directly boot Server.



My XP entry is

root (hd1,0)
save default
make active
map (hd0)(hd1)
map (hd1)(hd0)
chainloader +1
 
  


Reply

Tags
boot, command, fc5, grub, xp



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
How to boot Windows from the grub> prompt? uman Linux - Software 1 01-09-2005 04:18 PM
GRUB booting into it's command prompt .. after choosing Windows on last install~ Mustard010 Linux - General 7 12-01-2004 08:28 PM
Problems booting Windows XP with Grub Amuro-Ray2020 Linux - Newbie 9 09-10-2004 10:49 AM
GRUB windows xp not booting mirage Linux - Newbie 2 05-14-2003 02:10 PM
booting windows xp with grub! help!! fisch79 Linux - Software 1 02-20-2003 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 AM.

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