LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 10-24-2004, 02:18 AM   #1
Nightfox
Member
 
Registered: Jun 2004
Location: Aloha, Oregon, USA
Distribution: Ubuntu
Posts: 40

Rep: Reputation: 15
Unable to boot Windows XP with Grub


I have Windows XP and Gentoo Linux installed on my PC, and I am experiencing a problem booting into XP. I have both Windows XP and Gentoo set up in my grub.conf, and I can boot into Linux, but whenever I select Windows XP from the Grub menu, I just get returned back to the Grub menu, and it doesn't load Windows. I'm fairly sure I have everything set up correctly with Grub.. My partition table is as follows:

Device Boot Start End Blocks Id System
/dev/hda1 * 1 6922 55600933+ 7 HPFS/NTFS
/dev/hda2 6923 7053 1052257+ 82 Linux swap
/dev/hda3 7054 11606 36571972+ 83 Linux
/dev/hda4 11607 19929 66854497+ f W95 Ext'd (LBA)
/dev/hda5 11607 19929 66854466 b W95 FAT32

My grub.conf:
----------------
default 0
timeout 5
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title=Windows XP
rootnoverify (hd0,0)
chainloader +1

title=Gentoo Linux 2.6.9-r1
root (hd0,2)
kernel /boot/kernel-2.6.9-gentoo-r1 root=/dev/hda3 vga=792

I set up Grub in the MBR of my hard drive. I don't see where the problem lies in my configuration..??

Eric
 
Old 10-24-2004, 05:22 AM   #2
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Rep: Reputation: 15
Re: Unable to boot Windows XP with Grub

Quote:
Originally posted by Nightfox
title=Windows XP
rootnoverify (hd0,0)
chainloader +1
First of all, title is not followed by a '='(whats it called in english anyway?). So it sould be 'title Windows XP'. And now let me quote from `info grub`:
# For booting Windows NT or Windows95
title Windows NT / Windows 95 boot menu
root (hd0,0)
makeactive
chainloader +1

cccc828
 
Old 10-24-2004, 02:16 PM   #3
Nightfox
Member
 
Registered: Jun 2004
Location: Aloha, Oregon, USA
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
First of all, title is not followed by a '='(whats it called in english anyway?).
Apparantly the '=' ("equals sign" in English) doesn't matter. Grub doesn't complain if it's there, and it works either with or without the '='.

Quote:
# For booting Windows NT or Windows95
title Windows NT / Windows 95 boot menu
root (hd0,0)
makeactive
chainloader +1
I tried it this way for my Windows partition, but still with no luck. It just keeps bringing me back to the Grub menu without booting Windows.

Eric
 
Old 10-25-2004, 04:16 AM   #4
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Rep: Reputation: 15
mmmh and no error message? I cannot tell where the problem lies, I would first of all try to install GRUB on a floppy, if this does not help try to reinstall GRUB then try if it works using lilo and if everything fails try to reinstall first only Windows and then Windows and Linux
The Grub Multiboot Howto helped me when I had the problem of adding Windows XP to GRUB maybe it helps you too.

cccc828
 
Old 10-25-2004, 11:28 AM   #5
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
Nightfox

While at the menu timer countdown, read the prompts it says press C for commands lets do so as you can do no harm

1) commands are the same as posted but you have yet to do all at same time?
rootnoverify (hd0,0) # press enter
makeactive # press enter
chainloader +1 # press enter
boot # press enter AND with luck xp boots.

there is a space between y and ( for top line and NO other spaces
there is a space between r and +
there is no need for the boot command in your grub file if it works

your fdisk output has an asterix in hda1 so it is already bootable but lets leave the makeactive command in and between all 3 of us we have yet to try above. If it works amend your grub file and your done.

2) cccc828 suggestion for a floppy is always good

3) create a normal boot disk as well, not a grub one and test them.

4) IF it failed to boot can you post what other linux systems you tried and the sequence as FC and Suse both had issues with their partitiion tool that ruined the XP stuff.
 
  


Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
grub question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 12:53 PM
GRUB + inserting extra HDD = unable to boot bbking Linux - General 4 11-23-2004 07:09 PM
Unable to load Windows XP using GRUB TheDevo Fedora - Installation 11 11-04-2004 10:16 PM
Unable to boot and getting the GRUB on the screen klsateesh Linux - Newbie 6 02-04-2003 05:31 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM


All times are GMT -5. The time now is 01:54 AM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration