Click to See Complete Forum and Search --> : adding new kernel to grub


korn4266
07-22-2004, 01:24 AM
I just compiled a kernel and now the only thing left is getting it added to grub so i can boot to it. How do I do this? Where is the image file for the new kernel stored? I have already check the kernel readme and it only has directions for lilo. I want to keep grub.

je_fro
07-22-2004, 01:31 AM
If you compiled it from source the regular way,
cp arch/i386/boot/bzImage /boot/bzImage-2.6.7 (replace 2.6.7 with the actual version #)

edit grub.conf to include a new paragraph, just like your original one, only changing the location of the kernel to reflect the new one.
Here's one of mine...

default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title=linux-2.4.20-gaming-r2.new
root (hd0,1)
kernel (hd0,1)/boot/bzImage-gaming.new root=/dev/hda3 video=vesa:ywrap,mtrr vga=0x31A hdd=ide-scsi
initrd=/boot/initrd-1280x1024

title=linux-2.4.20-gaming-r2
root (hd0,1)
kernel (hd0,1)/boot/bzImage-gaming root=/dev/hda3 video=vesa:ywrap,mtrr vga=0x31A hdd=ide-scsi
initrd=/boot/initrd-1280x1024

title=RedHat
root (hd0,1)
kernel (hd0,1)/boot/vmlinuz-2.4.18-27.8.0 ro root=/dev/hdb2 hdd=ide-scsi
initrd=/boot/initrd-2.4.18-27.8.0.img

#title=gentoo-2.4.20
#root (hd0,1)
#kernel (hd0,1)/boot/bzImage root=/dev/hda3

title=win2k
root (hd0,0)
chainloader +1

korn4266
07-22-2004, 02:16 AM
What about all the .nptl file shouldn't their be some for the new kernel? I can't find any for it.

Raoul_Duke
07-29-2004, 05:55 AM
You should be fine with je_fro's examples.....the options he has are all you need to boot different kernels. :)