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.
 
I have recently updated my kernel to 2.4.18 using grub.
I added this line to the grub.conf


title My Kernel(2.4.18)
root (hd0,1)
kernel /bzImage ro root=/dev/hda3 hdb=ide-scsi

The bzImage means its compressed and vmlinuz is just what they call the kernel. I renamed the bzImage to vmlinuz just to see what would happen and it works fine. Just make sure you add that entry instead of replacing that entry; that way if something goes wrong you can just select your old kernel from the grub menu.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top