LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-26-2004, 07:08 PM   #1
eraaen
LQ Newbie
 
Registered: Feb 2004
Distribution: redhat
Posts: 3

Rep: Reputation: 0
grub setup to dual boot XP and RH9


I am trying to setup grub to dual boot XP or RH9 in a new Dell GX270 with an 80 and 120 GB disks (master and slave IDE). I read the grub multi boot HOWTO and like the idea of getting it to work on a floppy first (I'm tired of doing the fdisk /MBR thing).

I created a boot floppy: grub-install '(fd0)'
When I boot from it I get:
GRUB Read Error

Question: Am I am reading the doc right? Should root(hdN,P) refer to the /boot partition?

My grub.conf looks like:
timeout 60
default 0
fallback 1

title RedHat 9
root (hd1,5)
kernel /vmlinuz-2.4.20-8 ro root=/dev/hdb6

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

It resides in /boot, and I copied it to the floppy just in case.
Question: Where does the grub.conf belong when booting from fd0 or hd0,0?

linux fdisk says I have:
Device Boot Id System
/dev/hda1 * 1 FAT12
/dev/hda2 f Win95 Ext'd (LBA)
/dev/hda5 7 HPFS/NTFS

/dev/hdb1 5 Extended
/dev/hdb5 83 Linux
/dev/hdb6 * 83 Linux
/dev/hdb7 83 Linux
/dev/hdb8 83 Linux
/dev/hdb9 83 Linux
/dev/hdb10 b Win95 FAT32
/dev/hdb11 82 Linux swap

XP says the first drive has

Primary 8MB FAT, C:
Extended Partition entirely occupied with 75 GB logical D:

My linux mounts are:

/dev/hdb5 /
/dev/hdb6 /boot
/dev/hdb7 /usr
/dev/hdb8 /var
/dev/hdb9 /home
/dev/hdb10 will be a FAT used on both OSes when I get things working.

What am I doing wrong?
Thanks
 
Old 02-26-2004, 08:06 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Which OS does not boot correctly when GRUB is installed in the MBR ?
Also, you can always use a Linux boot disk for the moment until GRUB is fixed.

Your WindowsXP install seems a little strange. What is on the FAT12 partition ?
Your GRUB entry for Windows XP should look like this:
Code:
title Windows XP
rootnoverify (hd0,4)
chainloader +1
Also, for the RedHat 9 entry, usually there is a line for initrd
Code:
title RedHat 9
root (hd1,5)
kernel /vmlinuz-2.4.20-8 ro root=/dev/hdb6
initrd (hd1,5)/initrd-2.4.20-8
But once again, which OS does not boot correctly when GRUB is installed in the MBR ?
 
Old 02-27-2004, 02:34 PM   #3
eraaen
LQ Newbie
 
Registered: Feb 2004
Distribution: redhat
Posts: 3

Original Poster
Rep: Reputation: 0
I thought I would stick a small FAT at the beginning of my 1st drive in case I had to go to System Commander, etc. I couldn't get windows to install, so I let it re-partition the drive. It seems a little weird to me also.

I haven't tried (lately) installing grub on the MBR of the 1st drive yet because the HOWTO suggests getting it working from floppy first. Neither OS boots, I don't even think I am getting into grub successfully. All I get is:

GRUB Read error

When I boot from the floppy created via grub-install '(fd0)'
Again:
Am I am reading the doc right? Should root(hdN,P) refer to the /boot partition?
Where does the grub.conf belong when booting from fd0 or hd0,0?
 
Old 02-27-2004, 06:02 PM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
First of all, System Commander is garbage.
I had so many problems with it (System Commander 2000)...
Although I never tried the more recent versions, but I am sure that there are still crap.

Now, I strongly suggest installing GRUB into the MBR.
You can always use the windowsXP CD to re-install the NTLDR (windows boot loader).

Since no boot loader is currently working, you can use the RedHat CD in order to boot into Rescue Mode.
http://www.redhat.com/docs/manuals/l...mode-boot.html

Once booted, you can do the modification stated in my previous post.

The grub.conf (and all other GRUB configuration file and binaries) are located on (hd1,5)
 
  


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
frozen grub on xp/rh9 dual boot dave37 Red Hat 3 08-19-2005 05:56 AM
Setup Dual boot with no grub but.... Hunter69 Fedora - Installation 1 03-03-2005 12:58 AM
Using GRUB for a dual-boot XP/RH9 TheDewAddict Linux - Newbie 16 09-11-2003 09:03 AM
I need help with grub and trying to dual boot rh9 and winxp pro slicker Red Hat 2 08-30-2003 10:44 AM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 03:38 PM


All times are GMT -5. The time now is 10:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration