Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KC4: Installing new kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Frequently Asked Questions
View previous topic :: View next topic  
Author Message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Fri Nov 22, 2002 8:24 am    Post subject: KC4: Installing new kernel Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Frequently Asked Questions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum