LinuxQuestions.org
Help answer threads with 0 replies.
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 09-09-2002, 03:11 AM   #1
awdoyle
Member
 
Registered: Aug 2002
Location: Portland, OR
Distribution: Xubuntu
Posts: 135

Rep: Reputation: 15
XP/RH7.3 dual boot to grub>


I know there's a ton of info here on dual boots, grub, and lilo, but I've been sifting through it and I'm stumped. I even tried reading the info page on GRUB.
I installed XP (fat32/30gb) first, then RH 7.3 (ext2/30gb), putting GRUB on the first sector of the boot partition. The XP manager took over, not offering a dual boot option. The only way into RH was via boot floppy. I tried copying the bootsect.lin file with command:
# dd if=/dev/hda3 bs=512 count=1 of=/mnt/bootsect.lin
Placing the command in C:\ with the appropriate line in my boot.ini file gave me the option to boot to RH, but choosing the option gave me a blinking cursor. I logged in as root and ran:
# grub-install --root-directory=/boot /dev/hda
This caused the box to boot to a grub> prompt. When running command:
# find /boot/grub/stage1 (or stage2)
both are found on hd0,1. Running
# setup (hd0)
completes successfully, but I still boot to a grub> prompt. At this point I'm considering wiping the drive and starting from scratch. Problem is I've done that a couple times without being any more successful :-/ On my last drive it worked, which is wierd. I've included a bit of information below, just in case it's helpful. Is there anything I can do to enable the grub menu, or any boot-manager menu?
Many thanks for any suggestions you can offer!

Andrew
P.S. Please let me know if I can give other information.

Partition table:
hda1=xp hda2=/boot hda3=/root hda4=extended hda5=swap

Hardware:
WD 80gb IDE, ASUS A7M266 mobo, 256mb ram, geforce2 gtx 32mb, tdk cd-rw, Intel dsl/pro ethernet, Sylvania f92 19" monitor

file:/boot/grub/device.map:
(fd0) /dev/fd0
(hd0) /dev/hda

file:/boot/grub/grub.conf:
# 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/hda2
default=1
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-3)
root (hd0,1)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hda3 hdc=ide-scsi
initrd /initrd-2.4.18-3.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
 
Old 09-10-2002, 03:44 AM   #2
awdoyle
Member
 
Registered: Aug 2002
Location: Portland, OR
Distribution: Xubuntu
Posts: 135

Original Poster
Rep: Reputation: 15
I did some more RTFMing and I have an update! On RedHat's GRUB page there is further explanation of the way GRUB functions. Now when booting to the grub> prompt, if I enter:
chainloader (hd0,0)+1
boot
I'm able to boot to XP. However, I still don't know how to enable the GRUB menu, so I can just boot to it. It mentions:
Quote:
If the configuration file cannot be found, or if the configuration file is unreadable, GRUB will load the command line interface to allow users to manually type the commands necessary to boot an operating system.
If the config file is unreadable or damaged, it'll give an error, and it doesn't with me. I'm not sure if it's unfindable.
Does anyone know how to enable that menu?

Thanks!
Andrew
 
Old 09-10-2002, 11:27 AM   #3
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
Lightbulb

I had this exact issue at one point with 7.2.

The problem was with the --root-directory=/boot part - grub was failing to find the config file. I think that simply leaving out the root-directory part (or perhaps it was setting it to /) solved the problem.
 
Old 09-10-2002, 02:06 PM   #4
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
Quote:
putting GRUB on the first sector of the boot partition. The XP manager took over, not offering a dual boot option.
And therein lies the rub. Had you put Grub on the MBR instead of your Linux boot sector, all would have worked. Now you need to make a decision: use ntldr as your boot manager for both, or re-install and reconfigure Grub.

Go here for ntldr info:

http://www.linuxdoc.org/HOWTO/mini/Linux+NT-Loader.html

or go here for Grub info:

http://www.gnu.org/manual/grub-0.92/html_mono/grub.html
 
Old 09-10-2002, 03:46 PM   #5
Amerist
Member
 
Registered: Apr 2002
Location: Germany
Distribution: RedHat & SuSE
Posts: 106

Rep: Reputation: 15
I dual boot Red Hat and XP. I Already had XP installed on a 15GB drive and I installed Red Hat on a seperate 10GB drive. This should not make any difference from a logical standpoint, but I included this information for information's sake.

When Installing RH 7.3 from a CD I was given the options of which bootloader I would like to use and on which portion of the disk it should be written. I chose GRUB as my boot loader, chose to have GRUB installed on the MBR, and At this point I had to click on the Windows partition (which in my system is /hda) and I gave it a label of "Windows XP Professional" then I chose to set this drive as the primary booting partition (since I want GRUB to automatically boot me into Windows if I don't choose anything from the menu) and everything from there on continued as usual.

When my system boots, I am greeted with the GRUB menu and Windows XP is selected, but there is an option to boot into Red Hat Linux. Everything works fine. Email me if you have questions.
 
Old 09-10-2002, 04:04 PM   #6
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
It is an incredibly easy process, if you take your time to look at what you are doing -- and then just do it!!
 
Old 09-10-2002, 04:45 PM   #7
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
jglen490 is correct, but you do not need to do anything so drastic as using the xp boot manager. I think perhaps jglen missed the part that the box is now booting to a grub> prompt. I believe that awdoyle is almost there, it's just that grub's failing to find the config file to display the menu. I'm convinced that losing the --root-directory argument will make grub play nice. But hey, just because it rolled over and worked for me when I did that doesn't mean that it will for you :-)

Last edited by Faecal; 09-10-2002 at 04:47 PM.
 
Old 09-10-2002, 11:43 PM   #8
awdoyle
Member
 
Registered: Aug 2002
Location: Portland, OR
Distribution: Xubuntu
Posts: 135

Original Poster
Rep: Reputation: 15
Faecal - thank you! I had a feeling I was close. By logging in as root and entering:
# grub-install /dev/hda
# shutdown -r now
in a shell session, I correctly rebooted to a grub menu. I guess it shows why I'm not a programmer, to not have figured out the --root-directory argument.
Thank you again Faecal, and to all who offered help as well! If I can help to answer your questions, let me know ;-)
Andrew
 
Old 09-11-2002, 05:04 AM   #9
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
When I went through exactly the same process, I told myself after figuring it out that it had been good for me - I'd had to learn how to use the grub prompt rather than just the user friendly menu. Seems that it wasn't just me that failed to understand the manpage - maybe it could use a little rewording.
 
  


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
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Dual Boot RH7.3/WinXP jwarner Linux - Software 3 10-17-2004 09:32 AM
xp pro and rh7.3 dual boot (grub and partition magic) George_Hong Linux - Software 2 12-09-2002 06:34 PM
Dual Boot Win Me and RH7.2 tonylowry Linux - Software 1 02-15-2002 02:07 PM
Win2K/RH7.1 Dual, RH won't boot from boot disk after install marktaff Linux - Software 4 08-24-2001 05:29 PM

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

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