KC1: I made a mistake compiling my kernel and now my computer won't boot. What can I do now?
First of all, this isn't too big of a problem, so stay calm about this. You shouldn't have to reinstall Gentool from scratch, and repairing your system usually isn't much of a problem.
The first possible solution to this problem is to simply boot your system with your Gentoo installation boot cd, and then chroot into your existing system so that you can recompile your kernel again. To do this, start by booting your system with your Gentoo boot cdrom. Remember, you may have to change boot device order for your system in your bios. Once the CD has finished booting you will want to bring up the Gentoo install guide by entering the command
Code: Select all
#less /install.txtThe next possible solution to this problem is only possible if you'd previously had a working kernel that you had backed up as "bzImage.old" before installing your new "bzImage" into your /boot directory and if you are using the GRUB bootloader. It is possible to still boot your system with this old kernel by editing the GRUB configuration at boot time to boot your old kernel. As far as I know, Lilo does not support editing its configuration on the fly at boottime.
To do this, start by turning on your system as normal, but when GRUB brings up your boot menu, highlight the Gentoo entry and press the "e" key. Now, using the up and down arrow keys, highlight the line that looks like this:
Code: Select all
kernel /boot/bzImage root=/dev/hda3 Now, once you have completed either method, and your system is up and running in your Gentoo install, you can go ahead and rebuild your kernel again.

