• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

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
0
Aida2
Asked:
Aida2
  • 2
1 Solution
 
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:
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
 
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now