I just tried to install the new kernel, and when I boot it has a kernel panic..This is the same thing for my old kernel also. I think it has something to do with the modules, but this is the error I get when I boot:

UDF-fs: No partition found (1)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,5)

fdisk -l shows..:

/dev/hda1 1 93 48 75087778+ 7 hpfs/ntfs
/dev/hda2 9349 18709 75192232+ 5 Extended
/dev/hda3 * 18710 18748 313267+ 83 Linux
/dev/hda5 9349 18466 73240303+ 83 Linux
/dev/hda6 18467 18709 1951866 82 Linux swap

generate-modprobe.conf /etc/modprobe.conf
Says: modprobe: Invalid line 963 (all lines) in /etc/modules.conf

It says that 963 times down the screen.


# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section

# New kernel begins

image = /boot/vmlinuz
root = /dev/hda5
label = Linux-New
read-only
# New kernel ends

# Old kernel begins
image = /boot/vmlinuz-old
root = /dev/hda5
label = Linux-Old
read-only
# Old kernel ends



Tutorial I used...


~# cd /usr/src
/usr/src# su
/usr/src# mv /home/user/linux-2.6.X.X.tar.bz2 (or .tar.gz) /usr/src
/usr/src# tar (-jxvf or -zxvf) linux-2.6.12.tar.bz2 (or .tar.gz)
/usr/src# rm linux
/usr/src# ln -s linux-2.6.X.X linux
/usr/src# cd linux
/usr/src/linux# make mrproper (If this is your first kernel upgrade, ignore this line.)
/usr/src/linux# make menuconfig (configure your kernel with your selected hardware.)
/usr/src/linux# make
/usr/src/linux# make modules_install
/usr/src/linux# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.X.X
/usr/src/linux# cp System.map /boot/System.map-2.6.X.X
/usr/src/linux# cp .config /boot/config-2.6.X.X
/usr/src/linux# cd /boot
/boot# mv /boot/vmlinuz /boot/vmlinuz-old
/boot# mv System.map System.map-old
/boot# mv config config-old
/boot# ln -s vmlinuz-2.6.X.X vmlinuz
/boot# ln -s System.map-2.6.X.X System.map
/boot# ln -s config-2.6.X.X config
/usr/src/linux# pico /etc/lilo.conf

----------------Lilo----------------
# New kernel begins
image = /boot/vmlinuz
root = /dev/sda1
label = Linux-2.6.12
read-only
# New kernel ends
# Old kernel begins
image = /boot/vmlinuz-old
root = /dev/sda1
label = Linux-2.4.29
read-only
# Old kernel ends
----------------Lilo----------------

/boot# pico /etc/modprobe.conf (If the file contains data and this is your first time reboot now, otherwise rm /etc/modprobe.conf to erase previous modules.)
/boot# generate-modprobe.conf /etc/modprobe.conf
/boot# lilo
/boot# cd /sys (If /sys exists then reboot, otherwise # mkdir /sys to create the folder.)

*** That's all you're done, reboot now. (If for some reason you compiled your kernel wrong, boot the old kernel and configure it again then repeat the rest of the process.)