PDA

View Full Version : update kernel 2.6.8


jafni
7th September 2004, 03:17 AM
Currently my kernel is 2.6.6-1.427 and i've download kernel is 2.6.8 and install by launch up2date, but after reboot my linux box my kernel is stiil 2.6.6-1.427 although l selected kernel 2.6.8.1-427 at grub while rebooting.
So, what should i do???

imdeemvp
7th September 2004, 03:19 AM
open terminal and type: uname -r and see which kernel you are actually using

jafni
7th September 2004, 03:30 AM

i've typer uname -r ...the kernel still 2.6.6-1.427

SuperNu
7th September 2004, 04:01 AM
There are two things I would do. First, from the command line, type rpm -qa | grep kernel and see what kernel versions you have installed on your system. Make sure you see kernel-2.6.8-1.521 (the latest released version). Next from the command line, less /boot/grub/grub.conf as root and make sure that the entry is correct. If your copy of grub.conf is messed up, be sure to make a backup and edit the original and see if you can fix the problems. If you have questions, be sure to post them here, along with the output form rpm -qa | grep kernel and your copy of /boot/grub/grub.conf. Here is my entry for kernel-2.6.8-1.521...
title Fedora Core (2.6.8-1.521)
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-1.521 ro root=LABEL=/ vga=791
initrd /boot/initrd-2.6.8-1.521.img
--SN

jafni
7th September 2004, 04:36 AM
here my grub.conf


grub.conf

# 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=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.8-1.521)
root (hd0,0)
kernel /vmlinuz-2.6.8-1.521 ro root=LABEL=/ rhgb
initrd /initrd-2.6.8-1.521.img
title Fedora Core (2.6.6-1.427)
root (hd0,0)
kernel /vmlinuz-2.6.6-1.427 ro root=LABEL=/ rhgb
initrd /initrd-2.6.6-1.427.img



where should i edit....????

ghaefb
7th September 2004, 06:18 AM
Change the line 'default=1' to 'default=0'
And grub should boot in to your new 2.6.8 kernel.

superbnerd
7th September 2004, 08:08 AM
there is also a gui called system-config-boot that allows you to select the default kernel. its under system settings -> bootloader. you may not have it installed though. to install it yum install system-config-boot or look for it using the add/remove application under system settings

jafni
7th September 2004, 08:22 AM
thanx ghaefb.....it's work....but what about my old kernel, should i remove it.

imdeemvp
7th September 2004, 08:26 AM
thanx ghaefb.....it's work....but what about my old kernel, should i remove it.

its always a good thing to have 2 kernel just in case you run into problems with the latest one.

superbnerd
7th September 2004, 08:26 AM
no. do not remove the old kernel until you have thoroughly tested the new one and have found it to work without bugs, etc. you may remove old ones like 2.6.5 and 2.6.6, but it is advisable to keep atleast one older one, in your case 2.6.7.

jafni
7th September 2004, 11:45 AM
thanx imdeemvp & superbnerd, i will keep my kernel 2.6.7....but how if i want to remove old kernel like 2.6.5 or 2.6.6, any method that i have to follow??

ghaefb
7th September 2004, 11:51 AM
Run this: 'rpm -qa | grep kernel'
You will see which kernels you have installed.
Remove old kernel like this: 'rpm -e kernel-version'
(write full version number)

jafni
8th September 2004, 12:04 PM
thanx.._ghaefb & othes