LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 01-08-2005, 02:53 PM   #1
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21
Thanked: 0
Booting Windows from the Grub Prompt


[Log in to get rid of this advertisement]
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.
Kurzweil is offline     Reply With Quote
Old 01-08-2005, 03:07 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,058
Thanked: 1
Boot up from a Windows boot floppy and type: fdisk /mbr
homey is offline     Reply With Quote
Old 01-08-2005, 04:16 PM   #3
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21
Thanked: 0

Original Poster
I don't have a working floppy drive anymore. There isn't a command to boot windows from grub?
Kurzweil is offline     Reply With Quote
Old 01-08-2005, 04:34 PM   #4
syg00
Guru
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 6,913
Thanked: 166
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.
syg00 is offline     Reply With Quote
Old 01-08-2005, 04:43 PM   #5
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21
Thanked: 0

Original Poster
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?
Kurzweil is offline     Reply With Quote
Old 01-08-2005, 04:52 PM   #6
syg00
Guru
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 6,913
Thanked: 166
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.
syg00 is offline     Reply With Quote
Old 01-08-2005, 04:56 PM   #7
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21
Thanked: 0

Original Poster
The CD is first. Looks like I came up with a dooozy..
Kurzweil is offline     Reply With Quote
Old 01-08-2005, 05:09 PM   #8
syg00
Guru
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 6,913
Thanked: 166
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
syg00 is offline     Reply With Quote
Old 01-08-2005, 05:39 PM   #9
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21
Thanked: 0

Original Poster
Thank you much. that is the answer I was looking for!

Last edited by Kurzweil; 01-08-2005 at 05:40 PM..
Kurzweil is offline     Reply With Quote
Old 03-12-2006, 11:30 AM   #10
kmarcos
LQ Newbie
 
Registered: Mar 2006
Posts: 1
Thanked: 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.
kmarcos is offline     Reply With Quote
Old 10-10-2007, 04:18 AM   #11
fergusmacdonald
LQ Newbie
 
Registered: Oct 2007
Posts: 1
Thanked: 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.
fergusmacdonald is offline  
Tag This Post , , , ,
Reply With Quote
Old 10-10-2007, 11:49 AM   #12
fifteen10e56
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian Unstable
Posts: 23
Thanked: 0
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.
fifteen10e56 is offline     Reply With Quote
Old 09-14-2008, 07:23 AM   #13
mousator
LQ Newbie
 
Registered: Sep 2008
Posts: 1
Thanked: 0
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
mousator is offline     Reply With Quote
Old 09-04-2009, 10:37 AM   #14
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,028
Thanked: 4
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.
windows_xp_2003 frenchn00b is offline     Reply With Quote
Old 11-11-2009, 08:48 AM   #15
cerati88
LQ Newbie
 
Registered: Nov 2009
Posts: 1
Thanked: 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
windows_xp_2003 cerati88 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 09:51 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration