LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-30-2004, 09:25 AM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
adding a new entry to grub?


i installed fedora core 3 on a second harddrive in my box but when asked to install grub i chose not to cuz i already have grub on my computer from installing fc2. I want to know how i can edit grub to include the new installed distro and if there could be any complications cuz it is loading a OS on a different harddrive. Is there a way i can boot it up without grub until i add an entry? thanks.

Last edited by dr_zayus69; 12-30-2004 at 10:04 AM.
 
Old 12-30-2004, 10:51 AM   #2
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
i did some searching and found out that i need to edit the /boot/grub/menu.lst file to add fedora 3 to the list. The problem is i need to access fc3 cuz i don't know what info to put for the kernal and initrd lines of the menu.lst file. The only idea i have is mounting the install disc and looking around there to get the kernal versions and whatnot. If anyone has any info that could help me access it i'd really appreciate it.

Last edited by dr_zayus69; 12-30-2004 at 11:31 AM.
 
Old 12-30-2004, 12:41 PM   #3
cain_eve
Member
 
Registered: Nov 2004
Posts: 93

Rep: Reputation: 15
I think what you have done is right, just mount the disk and see the version. I haven't use FC3 before so I don't know the version of the kernel.
 
Old 12-30-2004, 01:01 PM   #4
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
well i can boot into commandline using the install disc by going into rescue mode to look around but im stilling having trouble finding it. It should be in /boot/ right? I can't seem to find the boot dir. I only specificed the root / partition at installation so it should have installed it in there cuz i didn't make a seperate partition for it. and what exactly do i need for the grub config file?

ttitle: Name of menu item to be displayed in grub - i understand that.
kernal: where the kernal is so i can boot - i understand that
initrid line - don't understand that line.

Last edited by dr_zayus69; 12-30-2004 at 01:04 PM.
 
Old 12-30-2004, 01:11 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
initrd-initial ram disk
this file is also there in /boot

here is from my grub.conf

title Fedora Core (2.6.10gm91)
root (hd0,2)
kernel /boot/vmlinuz-2.6.10gm91 ro root=/dev/hda3 rhgb quiet
initrd /boot/initrd-2.6.10gm91.img



regards
 
Old 12-30-2004, 01:52 PM   #6
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
ok now i can get a little further. I get passed the grub screen but then i get an error that says"

error 19: Linux Kernal must be loaded before initrd.

here is my /boot/grub/menu.lst:

# 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,2)
# kernel /boot/vmlinuz-version ro root=/dev/hda3
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=3
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Fedora Core (2.6.9-1.6_FC2)
root (hd0,2)
kernel /boot/vmlinuz-2.6.9-1.6_FC2 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-1.6_FC2.img
title Fedora Core (2.6.8-1.521)
root (hd0,2)
kernel /boot/vmlinuz-2.6.8-1.521 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.8-1.521.img
title Fedora Core (2.6.6-1.435)
root (hd0,2)
kernel /boot/vmlinuz-2.6.6-1.435 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.6-1.435.img
title Fedora Core (2.6.5-1.358)
root (hd0,2)
kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.5-1.358.img
title Windows
rootnoverify (hd0,0)
chainloader +1
title Fedora Core 3
root (hd1,0)
kernal /boot/vmlinuz-2.6.9-1.667 ro root=/dev/hdb1 rhgb quiet
initrd /boot/initrd-2.6.9-1.667.img
 
Old 12-30-2004, 02:05 PM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
check the spelling of kernel here

kernal /boot/vmlinuz-2.6.9-1.667 ro root=/dev/hdb1 rhgb quiet

regards
 
Old 12-30-2004, 02:30 PM   #8
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
thanks i got it to work now. Getting used to it cuz i didn't install a desktop just using a windows manager
 
Old 12-30-2004, 02:51 PM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
good!!

u will learn more as u try out these things more frequently
 
  


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
Help me: slowly booting when adding an entry in /etc/hosts jindo Linux - Networking 6 09-29-2005 10:45 AM
Adding a Boot.ini entry Tinochelli General 2 01-30-2005 02:20 AM
adding menu entry in gnome brainlesspinkey Linux - Software 2 11-20-2004 08:38 PM
adding entry to grub questionasker Linux - General 4 03-18-2004 09:21 AM
Adding an entry to the PATH Pimple Solaris / OpenSolaris 6 09-25-2003 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:13 PM.

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