LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-09-2002, 08:40 PM   #1
sammyballz
Member
 
Registered: Oct 2002
Distribution: mandrake 9
Posts: 34

Rep: Reputation: 15
GRUB, and dual booting


i have sucessfully dual booted xp and redhat 7.3 before using grub, it identified windows xp and my redhat, and i could simply arrow down and choose my OS. but, i formatted my harddrive, reinstalled windows xp, then created a partition for redhat, and installed. Now when i boot, all grub reads is Red Hat Linux, and not my windows xp.

how can i point out XP to grub so i can boot to it from the menu?

thanks, -sammy
 
Old 10-09-2002, 10:12 PM   #2
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Rep: Reputation: 30
Do you see no option for XP or option exists but you can't boot
from there?

Now, that you have posted a your question, let me post mine too.
I am trying to get my Grup up and working too.

Here's what my /boot/grub/grub.conf looks like
__________
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,6)
# kernel /boot/vmlinuz-version ro root=/dev/hda7
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz


title Windows
rootnoverify (hd0,2)
chainloader +1

title Red Hat Linux (2.4.18-14)
root (hd0,6)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/1 hdc=ide-scsi
initrd /boot/initrd-2.4.18-14.img

title Red Hat Linux (2.4.7-10)
root (hd1,7)
kernel /boot/vmlinuz-2.4.7-10 ro root=/dev/hdb7 hdc=ide-scsi
initrd /boot/initrd-2.4.18-14.img

title FreeBSD 4.5
root(hd0,1)
kernel /boot/loader

title QNX
rootnoverify (hd0,0)
makeactive
chainloader + 1
boot
_____________________
it was not a default grub.conf, but the one I have tried to
extend default.

Here is some info:
/dev/hda1 - QNX
/dev/hda2 - BSD
/dev/hda7 - RH80 (1st)
/dev/hda6 - RH72 Server
/dev/hdb8 - RH72 Workstation


Prior to installing RH80, I used RH72's LILO. Now, thought of
using GRUB.

The above grub can boot only W98 and RH80. It won't boot
into any other OSes.

Any help in replacing LILO with GRUB would be appriciated
TIA,
Ravi

Last edited by concoran; 10-10-2002 at 08:43 PM.
 
Old 10-10-2002, 08:17 AM   #3
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
Post your /boot/grub/menu.lst file here. It should be just a matter of adding another stanza to the file for your missing OS or correcting some incorrect entry.
 
Old 10-10-2002, 11:58 PM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
concoran, try the changes in bold print below.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,6)
# kernel /boot/vmlinuz-version ro root=/dev/hda7
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz


title Windows
rootnoverify (hd0,2)
chainloader +1

title Red Hat Linux (2.4.18-14)
root (hd0,6)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/1 hdc=ide-scsi
initrd /boot/initrd-2.4.18-14.img

title Red Hat Linux (2.4.7-10)
root (hd1,7)
kernel /boot/vmlinuz-2.4.7-10 ro root=/dev/hdb8 hdc=ide-scsi
initrd /boot/initrd-2.4.18-14.img

title FreeBSD 4.5
root (hd0,1)
kernel /boot/loader

title QNX
rootnoverify (hd0,0)
makeactive
chainloader +1
boot

I put a space between the root and (hd0,1) for FreeBSD and removed the space between the + and 1 in the line with chainloader in it for QNX. I changed the 7 to an 8 in root=/dev/hdb7. I hope this helps.
 
Old 10-11-2002, 12:04 AM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
sammyballz, as jglen490 said, you'll need to probably add a stanza to the grub config file. Something like this:

title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
 
Old 10-11-2002, 02:11 PM   #6
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Rep: Reputation: 30
Thanks Linuxcool. WIll try it today.
However, I also have wiped out the MBR. How to reinstall grub
into the mbr?

Will this work?
grep -v ^# /etc/grub.conf | grub --batch

Last edited by concoran; 10-11-2002 at 02:14 PM.
 
Old 10-11-2002, 08:35 PM   #7
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Rep: Reputation: 30
Angry It won't work stil

I installed grub back into mbr using grub-install, and
used the grub.conf that you have posted here. However,
grub wont boot into the redhat 7.2. (third in the menu)
The error message I get is
Error No. 15 File Not Found.

I am not sure what's wrong. The only hint I can give is
Redhat 7.2 is using ext2 partition. DOes that make a lot
of difference? Is there a way for me to specify the
file system in grub shell?
Thanks,
 
Old 10-12-2002, 02:37 AM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
concoran, the error message could mean that grub can't find its files in the /boot/grub directory.

The root (hd1,7) line in the rh7.2 section is telling grub to look on the hdb8 partition for its files. Since you are using rh8.0's grub loader, the files are on the hda7 partition.

Try changing the root (hd1,7) to root (hd0,6). And change the other two lines in the rh7.2 section to this:

kernel (hd1,7)/boot/vmlinuz-2.4.7-10 ro root=/dev/hdb8 hdc=ide-scsi
initrd (hd1,7)/boot/initrd-2.4.18-14.img

I hope this works.

Can you boot the other os's?

Last edited by linuxcool; 10-12-2002 at 02:42 AM.
 
Old 10-14-2002, 02:50 AM   #9
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Rep: Reputation: 30
Thanks LInuxcool.
I tried it again today, but didn't work
 
Old 10-14-2002, 11:26 PM   #10
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
When you got the error message Error No. 15 File Not Found., did it tell you what file it couldn't find?

I noticed that the initrd ( initrd-2.4.18-14.img ) that rh7.2 is using doesn't have the same number as the rh7.2 kernel ( vmlinuz-2.4.7-10 ). Is that the way it's supposed to be?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual-booting using grub damasta55r Linux - Newbie 13 11-20-2005 08:02 AM
Help dual booting XP and SUSE 9.2 w/ GRUB laubster SUSE / openSUSE 6 01-10-2005 02:58 PM
Grub dual booting assatron Linux - Software 9 11-09-2004 10:11 AM
NTFS and Grub (Dual Booting) bkeating Linux - Newbie 5 10-15-2003 05:47 PM
Dual booting and GRUB jfrye Linux - Newbie 1 10-09-2003 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration