Please ignore "Invalid Magic number" in the thread title.
I've compiled and added a kernel in Gentoo before. It doesn't seem to go quite as smoothly in Kubuntu 9.10
These are the steps I followed: I unpacked the kernel in /usr/src and ran make && make modules_install succesfully. Then I copied the kernel in arch/x86/boot/bzImage to /boot/bzImage-2.6.32
This entry is the one given by Kubuntu:
Code:
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set 216c6301-61dd-4bd9-8f26-625935bccd23
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=216c6301-61dd-4bd9-8f26-625935bccd23 ro quiet splash
sudo update-grub won't find my kernel.
I just read the script that update grub uses. Changed the name of the kernel from xyz to vmlinuz-2.6.32-generic and it worked.