LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2005, 06:43 AM   #1
wilu
LQ Newbie
 
Registered: Jan 2005
Location: Nowa Huta (Poland)
Distribution: Gentoo
Posts: 23

Rep: Reputation: 15
Question Grub, initrd and new kernel (2.6.10)


Hi!

I'd like to add new kernel to grub... but the problem is that i don't have the file which should be in initrd section...
So, at present my grub looks like that:
Quote:
default=1
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.667)
root (hd0,5)
kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-1.667.img
title Windows
rootnoverify (hd0,0)
chainloader +1
Now, I want to add new kernel (properly configured, i used in on Mandrake and it worked nice) to grub...
In lilo procedure is simple...
Quote:
image=/boot/bzImage-2.6.10
label=linux-2.6.10
read-only
root=/dev/hdX
What's about grub? As far as I know .img file is not needed to boot a system...
How to add new kernel to grub?
I'd be grateful for answers

Regards...
wilu

EDIT

Is there any program to copy grub and keep it for example on CD... and if something went wrong i could simply copy it to MBR?

Last edited by wilu; 02-07-2005 at 06:47 AM.
 
Old 02-07-2005, 07:10 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
If you didn't create an initrd.img then just leave it out, thats what I do. Here is a copy of my /boot/menu.lst.

timeout 10
color white/blue black/light-gray
#color black/cyan yellow/cyan
lba32
default 0
title Slackware
root (hd0,0)
kernel (hd0,0)/boot/vmlinuz root=/dev/hda1 vga=788
title FedoraCore
root (hd1,0)
kernel (hd1,0)/boot/vmlinuz root=/dev/hdb1 rhgb vga=788
initrd (hd1,0)/boot/initrd.img
title Ubuntu
root (hd1,4)
kernel (hd1,4)/boot/vmlinuz root=/dev/hdb5 vga=788
initrd (hd1,4)/boot/initrd.img
title Mandrake
root (hd1,5)
kernel (hd1,5)/boot/vmlinuz root=/dev/hdb6 vga=788
initrd (hd1,5)/boot/initrd.img
title FreeBSD
root (hd1,3,a)
kernel /boot/loader
 
Old 02-07-2005, 10:37 AM   #3
carlwilson
LQ Newbie
 
Registered: Jan 2004
Posts: 9

Rep: Reputation: Disabled
mkinitrd /boot/initrd-2.6.10 2.6.10

If it already exists, use '-f'

See man mkinitrd
 
Old 02-25-2005, 07:28 AM   #4
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
here is my tutorial on both the syntax and menu and how to burn grub to cdr
http://www.linuxquestions.org/questi...hreadid=237511

btw altho I don;t use fc I think you need a initrd image unless you compiled your own kernel and added inbuilt support for your file system and other stuff.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.6: I don't want/need initrd ... sundialsvcs Linux - Software 1 08-20-2005 10:25 AM
manual grub: kernel ok, initrd fails with Error 16 alar Fedora 3 08-15-2005 01:03 AM
GRUB - initrd !?? gr33ndata Linux - Newbie 6 03-09-2004 04:57 PM
Grub and initrd.img homestead1000 Linux - Software 2 07-25-2003 03:39 PM
initrd..img - grub.conf liguorir Linux - Software 2 06-29-2003 03:05 PM


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