Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GRUB: adding a new kernel boot entry

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hello.

I'm trying to compile a new kernel on my RedHat 7.2. I've got GRUB and it works fine with only one kernel (2.4.7-10).

But I compiled 2.4.18 kernel, and created '/boot/bzImage'. I know that with LILO I must modify 'lilo.conf':

image=/boot/bzImage
label=My_new_kernel
root=/dev/hda3
read-only

But browsing 'grub.conf', I can see this:

title Red Hat Linux (2.4.7-10)
root (hd0,1)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda3 hdb=ide-scsi
initrd /initrd-2.4.7-10.img

I've been reading 'man grub' and 'grub-howto', but I do not understand the sense of:
vmlinuz-2.4.7-10
initrd-2.4.7-10.img

Where must I copy my 'bzImage'? Wich is the meaning of vmlinuz?

Thank you very much.
 
bzImage = vmlinuz

Just copy bzImage to /boot
(and name it e.g. vmlinuz-mykernel)
and make a new entry in /etc/grub.conf

title MyKernel
root (hd0,1)
kernel /vmlinuz-mykernel ro root=/dev/hda3 hdb=ide-scsi
initrd /initrd-2.4.7-10.img

(altough I think you don't really need to use the initrd entry...)

good luck



--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
If this post was helpfull, please click below to let me know !
 
Assuming you have a symlink to your linux-XXX-XXX directory call "linux", the first thing to do is to create a copy of the old image once you finished recompiling.

mv /boot/bzImage /boot/bzImage.old

And then copy the bzImage to /boot:

cp /usr/src/linux/arch/i386/boot/bzImage /boot J.R. Juiliano
Information Systems Specialist
Tri-City Emergency Medical Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top