TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Fri Nov 22, 2002 8:24 am Post subject: KC4: Installing new kernel |
|
|
Navigation: [prev KC3: Networking] [next KC5: Unresolved symbols] [Kernel Compilation] [Table of Contents]
KC4: I compiled a new kernel, but my changes aren't taking effect. How do I install my new kernel?
You need to copy your kernel bzImage file from the kernel source tree to your /boot partition (which nearly everyone has). Make sure you are in /usr/src/linux and type this:
Code: | mount /boot
mv /boot/bzImage /boot/bzImage.old
cp arch/i386/boot/bzImage /boot |
now you need to set up grub for the backup kernel. In your /boot/grub/menu.lst put this:
Code: | title=Gentoo Linux
root (hd0,5) (or whatever your /boot partition is)
kernel /boot/bzImage root=/dev/hda8 <kernel command line options>
title=Windoze 98 (for a dual boot)
root (hd0,0)
chainloader +1
title=Old Kernel (to load your old kernel in case something goes wrong)
root (hd0,5)
kernel /boot/bzImage.old root=/dev/hda8 |
then unmount /boot (umount /boot), add any relevant modules to /etc/modules.autoload and reboot, seletcting 'Gentoo Linux' to load your new kernel _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock
Last edited by TheCoop on Fri Nov 22, 2002 7:53 pm; edited 2 times in total |
|