LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-10-2004, 11:59 AM   #1
machiner
Member
 
Registered: Jun 2004
Location: New England
Distribution: Debian, straight. No chaser.
Posts: 112

Rep: Reputation: 15
appending grub - add other linux distro


SO I read a couple strings already and I'll tell you what my goal is...

I want to have my current grub config be aware of the new distro I installed on another hdd. I installed Ubundu and when prompted to install GRUB - I tried to put grub for this distro on a floppy (/dev/fd0) but it failed, so I didn't allow it to install grub. I didn't want to mess up my current setup - with grub on hda for my fc2 system. I thought I could reboot into fc2 add some lines to grub, reboot, et voila - ability to choose Ubuntu -- no such luck.

I formatted a 10gb partition on my ide slave hdd. It's my current backup and old windows file holder drive. THen I installed ubundu on that partition (hdb3), oh, there was room - I made a swap drive for it, too.

I added the info to my fedora core (2) 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/hda
default 0
timeout 10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358)
root (hd0,1)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img



title ubundu (4.10)
root (hd1,3)
kernel /vmlinuz-2.6.8.1-2-386 root=/dev/hdb3
initrd /initrd.img-2.6.8.1-2-386
#################################

THe 3rd partition on that hdd is "activated" .
THe error msg that I get upon boot is:
can't recognize file system - can't mount the partition.

SO -- what do I do to add the distro to my grub and be able to boot to it?

Should I have allowed the ubundu distro to install grub - to hda - it would've overwritten my current grub, would it have kept the fedora option?

THanks.

machiner

Last edited by machiner; 10-10-2004 at 12:06 PM.
 
Old 10-10-2004, 01:21 PM   #2
lord_shadow
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian Wheezy
Posts: 27

Rep: Reputation: 1
I can try to give you an answer. I think the error is in the string "root (hd1,3)". Grub starts with number 0 for the first partition. So if your distro is on hdb3, then it will probably be "root (hd1,2)"
 
Old 10-10-2004, 02:38 PM   #3
machiner
Member
 
Registered: Jun 2004
Location: New England
Distribution: Debian, straight. No chaser.
Posts: 112

Original Poster
Rep: Reputation: 15
Of course - I changed it to (hd1,2) - you are right.

Then I got a "cannot find file error", so I added /boot to the vmlinuz location.
example:

title ubundu (4.10)
root (hd1,2)
kernel /boot/vmlinuz-2.6.8.1-2-386 root=/dev/hdb3
initrd /boot/initrd.img-2.6.8.1-2-386

I booted right in -- no worries.
Thanks for your response
-----
machiner
 
  


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
GRUB or LILO won't boot linux!!! for ANY distro stelmate Linux - Hardware 12 05-27-2005 06:42 PM
How to add an existing linux on a newly added disk to grub ? glenn69 Linux - Newbie 1 10-07-2004 09:16 PM
apart from grub fedora 2 is the best linux distro unixmad Fedora 1 08-29-2004 05:04 AM
Add mc to a cd distro mad_ady Linux - General 0 04-24-2004 11:03 AM
How do I add a new installation of linux to GRUB? KuRe Linux - Software 2 03-25-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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