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 08-18-2002, 04:58 PM   #1
pasta4u2
LQ Newbie
 
Registered: Aug 2002
Posts: 9

Rep: Reputation: 0
Question Problems booting with GRUB on RH 7.3/ Win XP Dual Boot


Hi,
I'm completely new to Linux and am trying to set up a dual boot system with Windows XP and Red Hat 7.3 . I have a Dell Dimension 8200 with a 80 gig primary HD set to master with Windows XP installed on it and a 40 gig second HD set to slave. I installed Red Hat Linux 7.3 on the second (slave) drive. I used GRUB and installed it into the MBR. I created a boot disk during setup and Linux boots and runs perfect when booting from the floppy. The problem is when I simply turn on the computer and try to boot regularly. It says GRUB in the top left hand corner of the screen and there is a blinking cursor next to it. I've heard of people being unable to boot into either windows or linux, but never something like this where GRUB doesn't show up. Any help would be appreciated.

-= Dan =-

The following is the contents of /etc/grub.conf which I've tried editing:

# 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/hdb2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-3)
root (hd1,0)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hdb2 hdd=ide-scsi
initrd /initrd-2.4.18-3.img
title Windows XP Professional
root (hd0,0)
makeactive
chainloader +1
 
Old 08-19-2002, 01:11 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Sorry buddy, if this were lilo, I could help. But I found a how-to for you over at the LDP.
 
Old 08-19-2002, 01:28 AM   #3
IceNineJon
Member
 
Registered: Jun 2002
Location: Los Angeles, Ca, USA
Distribution: Mandrake 9.1
Posts: 82

Rep: Reputation: 15
nevermind

Last edited by IceNineJon; 08-19-2002 at 01:29 AM.
 
Old 08-19-2002, 10:58 PM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Boot into linux using your boot disk, then as root run
grub-install --root-directory=/boot /dev/hda.
I think this will work. Yours is a little more complicated because you have a separate /boot partition. So, the ' --root-directory=/boot ' is supposed to take care of that. I hope.

Last edited by linuxcool; 08-19-2002 at 11:00 PM.
 
Old 08-20-2002, 12:11 AM   #5
pasta4u2
LQ Newbie
 
Registered: Aug 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the info.

I gave up and was about ready to try reinstalling with another method. I ran a fixmbr to get into Windows so now the system simply boots to windows but i can still boot linux with the floppy. The line that you gave me will still work since i'm just reinstalling GRUB, right?
 
Old 08-20-2002, 09:56 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Yes, it just reinstalls grub. I hope it works. I've never had to deal with a separate /boot partition before.
 
Old 08-23-2002, 12:24 AM   #7
pasta4u2
LQ Newbie
 
Registered: Aug 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Well I gave it a try and it didn't work. I got an error 21 so I did a fixmbr. I'm currently booting Linux with a floppy and I'm about to give up. Is it possible for me to install and configure GRUB on a floppy and make sure it works before i throw it into the MBR? Thanks for the help.
 
Old 08-23-2002, 05:08 AM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Quote:
Originally posted by pasta4u2
Well I gave it a try and it didn't work. I got an error 21 so I did a fixmbr. I'm currently booting Linux with a floppy and I'm about to give up. Is it possible for me to install and configure GRUB on a floppy and make sure it works before i throw it into the MBR? Thanks for the help.
Run grub-install '(fd0)' to make a grub boot floppy. If that doesn't work, try grub-install /dev/fd0.

The error 21 is from the stage2 loader and it means:

Quote:
21 : Selected disk does not exist
This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.

Last edited by linuxcool; 08-23-2002 at 06:01 AM.
 
Old 10-07-2002, 10:22 PM   #9
Hatfield777
LQ Newbie
 
Registered: Oct 2002
Posts: 1

Rep: Reputation: 0
Talking

I had the exact same problem and just figured it out.

Win XP on hard drive 1, just installed Red Hat 8.0 on drive 2 and chose to install grub. At first, same issue...just the word "grub" in the top left, nothing would respond, but could load Red Hat great with boot disk. I did the command-line reinstall of grub and would then get Error 21 every time, same as you.

The problem was in the BIOS. The way my BIOS setup works, "Primary Drive 0" was set up as my hard drive 1 (was always this way). "Primary Drive 1" was set up as "OFF". All I had to do was change this to "AUTO", reboot, and I was taken right to the graphical OS loader screen and it's loading both OS's without a hitch. Error 21 refers to grub not knowing the second hard drive exists by working through the BIOS...just give BIOS a chance to find that second drive and grub will be happy.

There are many different BIOS setups and the syntax is different with all of them. Some don't even give the option of designating a second (or third) hard drive. Hopefully your system realtively new and has these options. If not, you could try to update the sofware from your PC manufacturer to see if that helps (assuming you have a brand name machine).

Hope this helps.
 
  


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 Problem: FC4 and Win XP; GRUB not appearing ZeroIdea Fedora - Installation 7 11-18-2005 10:50 PM
Trying to Dual boot Win XP & FC4. Grub doesnt come up at all. Gordon99 Fedora - Installation 3 10-05-2005 09:09 AM
Dual booting with Grub - installing Win 2000 from CD-Rom with an existing SuSe 9.1 Steve2001 Linux - Newbie 3 01-19-2005 10:15 AM
GRUB unfound on dual boot RH9 & Win XP TCDnewbie Linux - Laptop and Netbook 1 02-13-2004 06:52 AM
RH 9 and Win XP dual boot, no GRUB upon boot? VKellyV Linux - Newbie 17 08-13-2003 02:02 AM

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

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