PDA

View Full Version : Kernel Rebuild problem


gral
10th January 2008, 03:03
Hello!.

I rebuilded my centos 3 with 2.4.x kernel to install a 2.6.x on there.

I did it saving the .config file (config-2.4.21-27.0.2.EL) and then i have loaded it in the menuconfig of the 2.6.23. Afther that i rebuilded the kernel doing:

make all
make modules_install
make install

When they finish, the grub.conf looks ok (with the correct kernel)


default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title CentOS (2.6.23)
root (hd0,0)
kernel /vmlinuz-2.6.23 ro root=LABEL=/
initrd /initrd-2.6.23.img
........
........


At the end, i reboot the machine but the kernel 2.4.x stills there.

What im doing wrong ??

Thanks in advance!

falko
11th January 2008, 12:48
Can you post your full grub.conf?

gral
11th January 2008, 13:57
Thanks a lot for you help like always!!

here it is:


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=4
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title CentOS (2.4.21-53.ELhugemem)
root (hd0,0)
kernel /vmlinuz-2.4.21-53.ELhugemem ro root=LABEL=/
initrd /initrd-2.4.21-53.ELhugemem.img
title CentOS (2.4.21-53.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-53.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-53.ELsmp.img
title CentOS (2.4.21-53.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-53.EL ro root=LABEL=/
initrd /initrd-2.4.21-53.EL.img
title CentOS (2.4.21-53.ELBOOT)
root (hd0,0)
kernel /vmlinuz-2.4.21-53.ELBOOT ro root=LABEL=/
initrd /initrd-2.4.21-53.ELBOOT.img
title CentOS (2.6.23)
root (hd0,0)
kernel /vmlinuz-2.6.23 ro root=LABEL=/
initrd /initrd-2.6.23.img
title CentOS (2.6.23.default)
root (hd0,0)
kernel /vmlinuz-2.6.23.default ro root=LABEL=/
initrd /initrd-2.6.23.default.img
title CentOS (2.4.21-40.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-40.EL ro root=LABEL=/
initrd /initrd-2.4.21-40.EL.img
title CentOS (2.4.21-27.0.2.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-27.0.2.EL ro root=LABEL=/
initrd /initrd-2.4.21-27.0.2.EL.img
title CentOS release 3.3 (2.4.21-20.EL.c0)
root (hd0,0)
kernel /vmlinuz-2.4.21-20.EL.c0 ro root=LABEL=/
initrd /initrd-2.4.21-20.EL.c0.img



Any tip will be very helpfully!

falko
12th January 2008, 17:08
Change default=4 to default=5 (counting starts with 0) and try again.