LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-12-2003, 09:27 PM   #1
spencerfenton
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 7

Rep: Reputation: 0
Unhappy XP and Redhat dual boot problems


Hi All I have a question I have a dual Boot on my puter ,XP is on the first hard drive and linux redhat is on the 2nd hard drive. I installed redhat after XP and when I have the option at boot up to run both I get a message System32\ntoskrnl cant be found or is corrupted How can I fix this and boot into either Os's without reinstalling xp


Thanks
 
Old 07-12-2003, 09:34 PM   #2
King of Japan
Member
 
Registered: Jul 2003
Location: Lincoln Nebraska
Distribution: Redhat 9
Posts: 61

Rep: Reputation: 15
I just figured this out the other day. I had XP and Redhat 9 on two different drives. My XP drive was vfat and not ntfs.

adding this to grub.conf worked for me:
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
root (hd1,0)
makeactive
chainloader +1

This was taken from this site:
http://www.icculus.org/~lucasw/Linux...otloading.html

Cheers.
 
Old 07-12-2003, 10:22 PM   #3
spencerfenton
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
I forgot to mention My first drive is xp and is 80 gigs this is partitioned and 19 gigs of it are running xp long horn then the second drive is redat hat which is around 6 gigs
 
Old 07-12-2003, 10:42 PM   #4
King of Japan
Member
 
Registered: Jul 2003
Location: Lincoln Nebraska
Distribution: Redhat 9
Posts: 61

Rep: Reputation: 15
The only thing with what I posted is that the Redhat Drive should be the Primary Master and The XP should be the Secondary Master.

It worked fine for me.
 
Old 07-13-2003, 12:34 AM   #5
spencerfenton
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks Im not sure how to add your line to grub do I just delete everything in there and add what you wrote thanks
 
Old 07-13-2003, 12:47 AM   #6
King of Japan
Member
 
Registered: Jul 2003
Location: Lincoln Nebraska
Distribution: Redhat 9
Posts: 61

Rep: Reputation: 15
Nope.
Just open up you grub.conf (if it's GRub you're using grub as your bootloader. Redhat 9 uses Grub by default) It's located in /boot

Just add:
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
root (hd1,0)
makeactive
chainloader +1

under the section that offers the linux Title. Once again look at this site and it explains everything.

http://www.icculus.org/~lucasw/Linux...otloading.html

all I can say is that it worked just fine for me
 
Old 07-13-2003, 10:34 AM   #7
spencerfenton
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks again Illl try it
 
Old 07-13-2003, 11:03 AM   #8
spencerfenton
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
this is my current config:

# 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 (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdd2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd1,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8.img
title longhorn
rootnoverify (hd0,1)
chainloader +1
title xp
rootnoverify (hd0,0)
chainloader +1
Should I erase all of this??
 
Old 07-13-2003, 11:13 AM   #9
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
NO,

Replace the lines starting at title xp with the code that King of Japan gave you.
Code:
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
root (hd1,0)
makeactive
chainloader +1
Note: Make a backup of the grub.conf file before making any modifications just in case.
 
Old 07-13-2003, 11:51 AM   #10
spencerfenton
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
Nope it still wont boot into XP???
 
Old 07-13-2003, 11:53 AM   #11
spencerfenton
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
Also these are two real different drives not one that has been partitioned
 
  


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
dual boot grub problems with redhat sfzombie13 Linux - General 5 07-17-2005 10:55 PM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 09:14 PM
RedHat 9/WinXP dual boot problems Jowy_Atredies Linux - Newbie 5 11-17-2003 09:56 AM
XP Pro SP1+ Redhat 8.0 dual boot problems kaos Linux - Software 8 05-22-2003 03:45 PM
Redhat, SuSe dual boot: DHCP problems concoran Linux - General 10 11-12-2001 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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