LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-14-2005, 11:43 PM   #1
dinow
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 0
dual boot:cannot boot redhat linux 9 with win xp


Hello,

Iim a newbie to linux

problem: cant see boot menu where i can choose between rh9 and winxp. it goes to winxp by default.

I have been able to acces redhat 9 using boot diskette


I had winxp installed first and then i installed rh 9.
I used grub

I did not use MBR, installed it on /boot

and the options i had got were: DOS, or redhat
I chose DOS to be the default

Any help as to how I can get a menu to select btw linux and winxp

Thank s in advance
How can
 
Old 07-15-2005, 12:07 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
I've got a rather strong feeling that Windows' bootloader is installed in the MBR, and therefore the system is seeing that and never even getting a chance to check your /boot config.
Reinstall grub to the MBR instead of /boot (it sounds like your config file will be accurate the way it is), and that should fix things:
/sbin/grub-install /dev/hda (where /dev/hda is your master hard drive, presumably where both OS's are residing)
 
Old 07-15-2005, 11:26 AM   #3
dinow
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
re: dual boot loader

Hi,

I did not mention this before.

I have one 40 GB hard drive

partition 1 - 19GB ---> where windows is installed
partition 2- NTFS 7GB
partition 3-NTFS 7GB

I have an extended partition

then 3 more partitions for redhat linux which is total of about 4.5 GB
/ root 3.9GB
/boot 118MB
swap 360 MB

So I have windows and redhat 9 installed on two different partitions

and /boot partition is well beyond the 8GB.
So I wonder if it is the issue of 1024 cylinder problem

How do I install grub again please.?

Thanks
 
Old 07-15-2005, 11:53 AM   #4
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
First, take a look in your /etc/grub.conf file to ensure that there are indeed sections for booting both Windows & Linux. From what you said earlier, I fully expect this to be fine.
Then, as root, issue the command:

/sbin/grub-install /dev/hda

And you should be good :-)
 
Old 07-15-2005, 08:01 PM   #5
dinow
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
re

hi

i issued the command
/sbin/grub-install /dev/hda

I got a PROBLEM.

When i rebooted, i saw the grub menu BUT i could not log into DOS(windows)
but could log into redhat

the options were

redhat
DOS

when I clicked on DOS, it just came back to the grub menu again and again


I can no longer log into windows anymore


Please note that I have one hard drive and I have partitioned it to run both winxp and redhat 9

please help

thanks
 
Old 07-15-2005, 11:28 PM   #6
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Looks like the RH9 setup didn't get it quite right. Could you post your grub.conf file?
 
Old 07-16-2005, 12:30 AM   #7
dinow
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Hi, here's the grub.conf file from /boot/grub/grub.conf

I am typing this as I cant get my internet to work from linux rh9

#boot =/dev/hda7
default=1
timeout=10
splashimage=(hd0,6) /grub/splash pm.gz
title Red Hat Linux (2.4.20-8)
root(hd0,6)
kernel /vmlinuz-2.4.20-8 root=LABEL=/hdc=ide-scsi
initrd /initrd-2.4.20-8.img

title DOS
rootnoverify(hd0,0)
chainloader +1


I used windows cd to boot to recovery mode and typed fixboot
Now the grub menu is gone and it automatically logs into windows

thanks for your help in advance

help please
 
Old 07-16-2005, 12:16 PM   #8
dinow
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
can someone help me out here

thank you
 
Old 07-16-2005, 09:31 PM   #9
mohit_garg
Member
 
Registered: Jul 2005
Location: india
Distribution: redhat, bsd
Posts: 34

Rep: Reputation: 15
hi dinow
got ur question, firstly u didn't need to install grub at MBR. The boot sequence of a i386 arch makes bios to search for the active partition of the disk. If the active one is found its boot sector/record is loaded and run. so instead u would have made partition with /boot active and ur problem will be solved.
in present case, u go to the linux rescue mode and again install grub. prefer at MBR, may be rewriting ur mbr will fix ur prob this time.
hoping fr the best
 
Old 07-17-2005, 05:27 PM   #10
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Try adding the line 'makeactive' to your grub.conf file, under the DOS section.
So now it will look like this:

#boot =/dev/hda7
default=1
timeout=10
splashimage=(hd0,6) /grub/splash pm.gz

title Red Hat Linux (2.4.20-8)
root(hd0,6)
kernel /vmlinuz-2.4.20-8 root=LABEL=/hdc=ide-scsi
initrd /initrd-2.4.20-8.img

title DOS
rootnoverify(hd0,0)
makeactive
chainloader +1
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dual boot: win XP and Linux can't boot on another pc mrpc_cambodia Red Hat 3 10-05-2004 12:52 PM
Dual boot Win 2k / Redhat 9 n e r d Linux - Newbie 9 05-15-2004 12:54 PM
Dual boot Win/Linux boot error L? jondy Linux - Newbie 2 04-16-2004 11:49 AM
win xp/redhat 7.3 dual boot milesstandish Linux - Software 4 02-11-2003 05:37 PM
win 2000 and linux redhat 7.2 dual boot nandster Linux - Software 3 01-23-2003 12:00 PM

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

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