LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-04-2003, 05:10 PM   #1
stunhcterts
LQ Newbie
 
Registered: Feb 2003
Distribution: Redhat 8.0
Posts: 22

Rep: Reputation: 15
Question Booting Redhat 8.0 and winxp pro


About a month ago, i installed redhat 8.0 on my first drive, this cause the mbr to boot windows to be overwritten.I have winxp installed on my second drive. I have been booting into winxp from a bootdisk(takes some time compared to when it was in the mbr). I am using grub to boot into linux, i added winxp into the boot menu, for the second drive and the right parition, but this doesnt work. Can some one help boot into winxp from the grub menu, or if there is an easier way to do it please tell me. Thanks to who ever can help me.
 
Old 03-04-2003, 05:14 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What does your grub.conf look like. Grub passes off the loading process to XP by using a chainloader. This is what my grub.conf looks like:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
#default=3
timeout=15
splashimage=(hd0,1)/grub/splash.xpm.gz

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

title Red Hat Linux (2.4.18-24.8.0)
root (hd0,1)
kernel /vmlinuz-2.4.18-24.8.0 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-24.8.0.img

I also have a dual boot WinXP and RedHat. Hope this helps.
 
Old 03-04-2003, 05:31 PM   #3
stunhcterts
LQ Newbie
 
Registered: Feb 2003
Distribution: Redhat 8.0
Posts: 22

Original Poster
Rep: Reputation: 15
well if i was to use the chainloader to boot into winxp wouldnt the mbr be overwritten so it would boot anyway. or does the chainloader link to winxp. im going into rehdat now to see what grub.conf looks like. ill be brb
 
Old 03-04-2003, 05:40 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
chainloader +1 passes control of booting over to Windows boot loader.
 
Old 03-04-2003, 05:56 PM   #5
stunhcterts
LQ Newbie
 
Registered: Feb 2003
Distribution: Redhat 8.0
Posts: 22

Original Poster
Rep: Reputation: 15
here is the test from grub.conf
if there is something i need to change please tell me for example +1 chainloader if it lets the loader go over windows boot loader, how does it kno where to look for it, was it overwritten when i installed grub.

# Grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-24.8.0)
root (hd0,0)
kernel /boot/vmlinuz-2.4.18-24.8.0 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.18-24.8.0.img
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.18-14.img
title DOS
rootnoverify (hd0,4)
chainloader +1
title Windows XP
rootnoverify (hd1,0)
chainloader +1
 
Old 03-06-2003, 07:57 PM   #6
stunhcterts
LQ Newbie
 
Registered: Feb 2003
Distribution: Redhat 8.0
Posts: 22

Original Poster
Rep: Reputation: 15
This is why at i get mad at this forum, no one will reply after a couple post. i have no idea where to go and i dotn like makign another useless post.
 
Old 03-06-2003, 08:32 PM   #7
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
calm down dude. try this in /boot/grub/grub.conf:

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

Save the file and reboot. NOTE: /etc/grub is a link to /boot/grub/grub.conf.

Last edited by born4linux; 03-06-2003 at 08:34 PM.
 
Old 03-07-2003, 02:29 PM   #8
stunhcterts
LQ Newbie
 
Registered: Feb 2003
Distribution: Redhat 8.0
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for help born4linux, i changed the grub.conf and it worked most of the way, it said it was missing the ntldr, which i know to be the file taht tells the computer where to look to boot for winxp. i have a copy of ntldr in my bootdisk where do i put ntldr so that i can boot into xp.
 
  


Reply



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
GRUB Bootloader not booting WinXP Pro SP1 FeralTitan Linux - Newbie 12 08-16-2004 12:09 PM
Dual booting Linux and WinXP Pro? OriginalReaper Linux - Newbie 2 01-19-2004 04:22 AM
Installing Redhat 9 with WinXP Pro shwabob Linux - General 8 06-09-2003 02:11 PM
How do I network Redhat 8 and WinXP Pro ? jefx Linux - Networking 3 04-26-2003 04:02 PM
HELP: Booting WinXp and Redhat 7.2 tanydegher Linux - Software 1 02-02-2002 10:39 AM

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

All times are GMT -5. The time now is 06:58 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