Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Installation > Grub and two installed distros (Fedora 4 and Mandriva LE2005)

Forgot Password?
 Installation   Need help or have questions about installing Linux, including dual booting with other distros or Windows? put them here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-15-2005   #1 (permalink)
Linux Newbie
 
jpalfree's Avatar
 
Join Date: Jul 2005
Location: Montreal, CA
Posts: 198
Grub and two installed distros (Fedora 4 and Mandriva LE2005)

Hi,
Grub already can boot fedora core 4 but i'd like to configure grub to boot mandriva aswell. I installed the lilo booter to a floppy and can start mandriva like that but i'd like grub to handle it. I"m sure there's an easy way to do it... probably edit /boot/grub.conf... but i don't know how. Can someone explain?
jpalfree is offline  


Reply With Quote
Old 08-15-2005   #2 (permalink)
Linux Guru
 
dylunio's Avatar
 
Join Date: Aug 2004
Location: Cymru
Posts: 4,157
Ok, it's quite easy to do this.

For my examples Mandriva will be hda3 and Fedora will be hda2 - change them to whatever the drives are.

Firstly mount the mandriva partition with
Code:
su
[rootpass]
mkdir /mnt/mandriva
mount /dev/hda3 /mnt/mandriva
ls /mnt/mandriva/boot
this will give an output like
Quote:
README.initrd System.map-ide-2.4.26 config-ide-2.4.26 vmlinuz
System.map config diag1.img vmlinuz-ide-2.4.26
System.map-2.6.11 config-2.6.11
I've hightlighted the inportant filename, this is the file you point grub at to boot.

Now let's edit the /boot/grub/grub.conf file. You should add a stanza like this:
Quote:
title Mandriva
kernel (hd0,2)/boot/vmlinuz root=/dev/hda3
Notice the (hd0,2) which is how grub names partitions and drives, this table should help you decice the right name for your mandriva partition and drive.
Quote:
/dev/hda1 (hd0,0) First hard disk on first IDE cable, first partition
/dev/hda2 (hd0,1) First hard disk on first IDE cable, second partition
/dev/hda3 (hd0,2) First hard disk on first IDE cable, third partition
/dev/hdb1 (hd1,0) Second hard disk on first IDE cable, first partition
/dev/hdb2 (hd1,1) Second hard disk on first IDE cable, second partition
/dev/hdb3 (hd1,2) Second hard disk on first IDE cable, third partition
/dev/hdc1 (hd2,0) First hard disk on second IDE cable, first partition
/dev/hdc2 (hd2,1) First hard disk on second IDE cable, second partition
/dev/hdc3 (hd2,2) First hard disk on second IDE cable, third partition
/dev/hdd1 (hd3,0) Second hard disk on second IDE cable, first partition
/dev/hdd2 (hd3,1) Second hard disk on second IDE cable, second partition
/dev/hdd3 (hd3,2) Second hard disk on second IDE cable, third partition
dylunio
__________________
Registered Linux User #371543!
Get force-get May The Source Be With You
/dev/null
/dev/null2
dylunio is offline   Reply With Quote
Old 08-15-2005   #3 (permalink)
Linux Newbie
 
jpalfree's Avatar
 
Join Date: Jul 2005
Location: Montreal, CA
Posts: 198
Success! Thanks very much!

i did things a bit differently though.

what i added to grub.conf is this:
Code:
title mandriva
root (hda0, 4)
kernel /boot/vmlinuz ro root=/dev/sda5 (because it's sata hard drive?)
initrd /boot/initrd.img
and it works... now it's on to another battle... not hearing anything from a detected motherboard soundcard... :S
jpalfree is offline   Reply With Quote
Old 08-16-2005   #4 (permalink)
Linux Guru
 
dylunio's Avatar
 
Join Date: Aug 2004
Location: Cymru
Posts: 4,157
I'm glad that I was able to help you setup grub
__________________
Registered Linux User #371543!
Get force-get May The Source Be With You
/dev/null
/dev/null2
dylunio is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:50 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2