Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.


Search this Thread
Old 11-20-2005, 08:19 PM   #1
LQ Newbie
Registered: Nov 2005
Posts: 3

Rep: Reputation: 0
Question Adding Fedora Core 4 to my Grub Menu


I have a pc with a Pentium III with one IDE 40 GB hard disk and one SCSI 9 GB drive.

I've installed Suse, Mandriva, Ubuntu 5.10 & Fedora Core 4, in that order on the pc. Suse Mandriva & Ubuntu are on the IDE hard disk with separate partitions. They all work fine. (Actually after I installed Suse & Mandriva, Mandriva messed up the boot loader, but then Ubuntu's install fixed it.)

When I installed Fedora Core, I chose not to install GRUB as it was already installed in the boot partition of the IDE drive. Fedora installed fine on the SCSI drive but GRUB doesn't have any information for it to boot to Fedora

I can get to the GRUB configuration file from within UBUNTU but I don't know what syntax to use to add Fedora Core 4 to the menu. First of all, I don't know how to find out what the Kernal # is for fedora core??? Secondly I'm not sure how to specify the SCSI drive, partition, etc.

Thanks for any help you can give me on this.

Below is part of my menu.lst file which shows excerpts for booting Ubuntu, Mandriva & Suse:

title Ubuntu, kernel 2.6.12-9-386
root (hd0,3)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda4 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386

title Mandriva linux (on /dev/hda5)timeout X_seconds
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5 ro acpi=ht resume=/dev/hda6
initrd /boot/initrd.img

title SUSE LINUX 10.0 (on /dev/hda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 vga=0x31a selinux=0
resume=/dev/hda1 splash=silent showopts
initrd /boot/initrd

Last edited by rickbman; 11-20-2005 at 08:28 PM.
Old 11-21-2005, 04:14 AM   #2
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
I'm not 100 percent but I'll give it a shot. Always make backups of your config files before making changes.

To find out what kernel is loaded, at a console type, uname -a to view info about kernel along with other info.

I believe scsi should be listed as sda, so if Fedora is on the first partition of the scsi drive it should be sda1. In grub I assume it would be:

title Fedora
root (sd0,0)
kernel=/boot/vmlinuz root=/dev/sda1

Something along these lines should work. I don't have scsi so I can't say for a 100 percent if its right but someone will come along and offer better advice.

If you can get into Fedora, look at / and /boot to see if the vmlinuz file is there and the initrd file. Set those up like the others in Ubuntu's grub list.

Hope this helps.
Old 11-21-2005, 06:21 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,499

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
The best solution for you would probably be to fire up the FC CD, and get into recovery mode. I'm guessing it would be "chroot /mnt/sysimage", then do a reinstall of grub into your root partition.
Quick search here on LQ will find threads with the needed commands.

This will create all the entries you will need without trashing your current grub environment - just cut and paste into your "real" menu.lst.
Repeat for any later installs - KISS works best.
Old 11-21-2005, 08:34 PM   #4
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Steps for a user who want to use Grub to boot 40 instead of 4 Linux

let say hda3 is an installed Linux but not yet bootable

Boot up the Linux that has its Grub in MBR. The file to be edited is always /boot/grub/menu.lst. Edit it with the following 3 lines addition at the rear of the file.

title My Linux in hda3 - Grub counts from 0 so hda3= (hd0,2)
root (hd0,2)
chainloader +1

save the file. Make a temp. directory, mount device hda3 on it, change root to it, install its boot loader in root partition, exit and reboot

mkdir /mnt/hda3
mount /dev/hda3 /mnt/hda3
chroot /mnt/hda3 <----------------you are now inside hda3
grub-install /dev/hda3 <--------- if the Linux has Grub or
lilo -b /dev/hda3 <-----------if the Linux uses Lilo
exit <------------------- Now you are back to the original bootable Linux

Just keep repeat the above 39 times and change only the reference hda3 and (hd0,2) for each partition holding a Linux.

A cleaver bugger would amend, change root to, install boot loader in root partition and exit back for all 40 Linux in one go before doing the reboot.

Would the person who suggests the above do such thing himself?

No never!

I would partition my hard disk into 40 partitions first, then edit my Grub's /boot/grub/menu.lst with lines

title empty partition in hda1
root (hd0,0)
chainloader +1

title empty partition in hda2
root (hd0,1)
chainloader +1

title empty partition in hda3
root (hd0,2)
chainloader +1

title empty partition in hda4
root (hd0,3)
chainloader +1

and so on until I hit partition hda40. (actually I would generate the /boot/grub/menu.lst entirely by a Visula Basic program as it isa loop of repeating something 40 times, to save typing)

Whenever I install a Linux I just tell it to install its boot loader in its root partition. So every one of the 40 Linux will be bootable immediately after the installation.

If I am in a good mood the I edit the /boot/grub/menu.lst to change the title line to reflect the name of the Linux.

People should not touch a computer if they are not interested in a lazier way to do things.

Last edited by saikee; 11-21-2005 at 08:46 PM.
Old 05-12-2006, 07:25 PM   #5
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Rep: Reputation: 15
Originally Posted by saikee
grub-install /dev/hda3 <--------- if the Linux has Grub or
root@portable:/boot/grub# fdisk -l
cannot open /proc/partitions
root@portable:/boot/grub# grub-install /dev/hda6
/dev/hda6: Not found or not a block device.

hmm, interesting linux distros don't like other distros, just like windows not liking linux...

What do I do know?

The system is:
Windows (hda1) (have installation cd)
Ubuntu (hda6) (have livecd only) -lost after fedora wrote to mbr-
Fedora (hda9) (have installation cd)
Old 05-14-2006, 05:30 AM   #6
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112

hmm, interesting linux distros don't like other distros, just like windows not liking linux...
To me it is the opposite. You will see in the second last link in my signature that my Linux like each other and happily living together with all types of Dos and Windows.

You must be able to get "fdisk -l" working. It seems to me you may not have the root privilege. So try to "su" at the terminal supply the root password to become the superuser or preceed the commands with "sudo".

You should be able to log in as root with Fedora but Ubuntu, being a true Debian, disallows a root login to the Desktop resulting some system-related commands switched off to the ordinarary user logins.


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
Trouble multi booting with GRUB Ramlamb Linux - Software 4 08-25-2005 02:38 AM
How do I know which partition my distros are on? (Multi distros) glenn69 Linux - Newbie 3 06-18-2005 03:43 AM
Grub and dual-booting two Linux distros RonRussell Linux - General 2 04-15-2005 09:04 PM
LILO: Two Distros, Separate Drives General_Tso Linux - General 22 08-08-2003 01:04 PM
GRUB, Multi Linux/Multi Disk Boot gtnorton Linux - Software 1 03-16-2003 04:48 AM

All times are GMT -5. The time now is 01:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration