Howto upgrade kernel(2.6.22-9-generic) in Feisty Fawn

Status
Not open for further replies.

infra_red_dude

Wire muncher!
Howto upgrade kernel(2.6.22-9-generic) in Feisty Fawn

Currently Feisty Fawn users (7.04) using the generic kernel (which is 2.6.20-16-generic). This tutorial will explain howto upgrade you to kernel version 2.6.22-9-generic(as of 07AUG07).

Before attempting this backup your grub menu list:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak

First you need to add the Gutsy repository (this is only temporary to pull the new kernel)

echo ‘deb *archive.ubuntu.com/ubuntu/ gutsy main restricted’ | sudo tee -a /etc/apt/sources.list

Update the source list using the following command

sudo apt-get update

you need to install the new kernel using the following command

sudo apt-get install linux-backports-modules-2.6.22-9-generic linux-headers-2.6.22-9 linux-headers-2.6.22-9-generic linux-image-2.6.22-9-generic linux-restricted-modules-2.6.22-9-generic linux-ubuntu-modules-2.6.22-9-generic

Now you should remove the Gutsy repository from your sources.list

sudo vi gedit /etc/apt/sources.list

Now you can remove the line or simply comment it out

#deb *archive.ubuntu.com/ubuntu/ gutsy main restricted

Now save the file and exit.

Update the source list using the following command

sudo apt-get update

If you’ve done all of the above without errors, you’ve successfully installed 2.6.22-9-generic. Now you need to reboot into the new kernel

sudo reboot

Troubleshooting

After rebooting if you have any problem you need to follow this procedure to revert back your changes.

Reboot your computer and at Grub press esc to boot into your last kernel. (probably 2.6.20-16-*)

Remove the installed kernel packages

sudo apt-get remove linux-backports-modules-2.6.22-9-generic linux-headers-2.6.22-9 linux-headers-2.6.22-9-generic linux-image-2.6.22-9-generic linux-restricted-modules-2.6.22-9-generic linux-ubuntu-modules-2.6.22-9-generic

Removing the packages will remove the kernel from your Grub menu. But for some reason it doesn’t follow these steps to remove it

sudo vi gedit /boot/grub/menu.lst

Now remove the following and save the file

#Add Windows entries (if any) after this line and then the Ubuntu kernel line

title Ubuntu, kernel 2.6.22-9-generic
root (hd0,0) #or whatever was the previous value
kernel /boot/vmlinuz-2.6.22-9-generic root=<whatever value was there previously> ro quiet splash
initrd /boot/initrd.img-2.6.22-9-generic
quiet
savedefault

title Ubuntu, kernel 2.6.22-9-generic (recovery mode)
root (hd0,0) #or whatever was the previous value
kernel /boot/vmlinuz-2.6.22-9-generic root=root=<whatever value was there previously> ro single
initrd /boot/initrd.img-2.6.22-9-generic

Those previous values can be obtained from /boot/grub/menu.lst.bak which was backup up earlier.
Now reboot your system.

source: ubuntu geek
 
Last edited:

praka123

left this forum longback
newer kernels are better(inside).as with utnubu they may had fixed some bugs with libata old pata driver problem(s).
newer kernel includes many features(not necessarily enabled) do see:
*kernelnewbies.org
 
OP
infra_red_dude

infra_red_dude

Wire muncher!
changes: *kernelnewbies.org/Linux_2_6_22
(this is the first release, more changes in 2.6.22-9 i guess)

lotsa changes there. people wid intel gma 3x00 will surely be happy and so will the ati xpress 200m owners :)
 

Rahim

Married!
Just one warning while updating to Gutsy kernel DO NOT UPDATE any appz, just upgrade the kernel and then remove the gutsy repo from the source.list and then do the appz updating.
 

Nav11aug

In the zone
vish786 said:
i prefer to keep the old kernels & use them, if theirs some prob with new one.

ya ...itz better to keep the old one... the new 2.6.22 has a problem wid NTFS drives if u r bootin into linux after a restart from Windows... I am having to boot into an older kernel and then reboot to the new one.
 
Status
Not open for further replies.
Top Bottom