update kerneland boot!

Hello,
I update kernel of linux when i reboot is default stand for old kernel to boot how can i set as linux default after startup high light the new kernel and allways boot onnew one
LVL 1
Aida2Asked:
Who is Participating?
 
paullamhkgCommented:
if you using lilo as your boot loader modify the /etc/lilo.conf, eg.

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
linear
default=linux

image=/boot/vmlinuz-old version
        label=linux-oldversion
        read-only
        root=/dev/hda1

image=/boot/vmlinuz-newversion
        label=linux
        read-only
        root=/dev/hda1

if grub, modify the /boot/grub/grub.conf eg

default=1
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
password --md5 $1$O7qJzCct$350zL7QJWbbXcmlscs8nZ0
title Linux oldverison
        root (hd0,2)
        kernel /vmlinuz-2.6.xxx ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.xxx.img
title Linux newversion
        root (hd0,2)
        kernel /vmlinuz-2.6.newxxx ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.newxxx.img

hope this is what you looking for ;)
0
 
pjedmondCommented:
Not sure I quite understand the question, but this link is one of the best relating to rebuilding kernels!:

http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html

0
 
paullamhkgCommented:
forgot to remind you back up the lilo.conf or the grub.conf before modify
0
 
evangineerXCommented:
I did the same thing today on a Debian box.  I rebooted with the new kernel and then used the package manager (aptitude in this case) to remove the old kernel.  Grub was automatically updated.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.