LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-19-2009, 03:05 AM   #1
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Rep: Reputation: 16
How can i restore my old kernel ?


I got many problems after kernel and system update.

How can I restore the old kernel ?
 
Old 02-19-2009, 03:31 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
If you updated via the package manager (or yum) the old kernel should still be installed (unless you changed the default options). When you boot you should see a splash saying booting to kernlXXXX, hit the space bar. You should then be able to select the kernel you wish to boot to.

You may wish to delete the nonfunctioning kernel. If I remember correctly the default is to keep three kernels. Not removing the non functioning kernel could put you in a situation where the functional kernel eventually becomes the 4th kernel and is automatically removed.

Last edited by lazlow; 02-19-2009 at 03:34 AM.
 
Old 02-19-2009, 03:41 AM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by alMubarmij View Post
I got many problems after kernel and system update.

How can I restore the old kernel ?
How old fedora keeps the last 3 kernels .
If you like to use one of these when fedora comes with the message Fedora is booting in ... seconds press a key and you can choice a other kernel
If you wish you can even keeps more kernels see /etc/yum.conf install_only =3
You can change that 3 in 5 or so
 
Old 02-19-2009, 04:18 AM   #4
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
You can change the number of kernels kept by modifing installonly_limit in /etc/yum.conf, btw.
 
Old 02-19-2009, 05:10 AM   #5
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Thank you All.
But how I can make the old kernel to be default, and remove others ?
 
Old 02-19-2009, 05:31 AM   #6
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by alMubarmij View Post
Thank you All.
But how I can make the old kernel to be default, and remove others ?
Try system boot loader and select with kernel should be the default
 
Old 02-19-2009, 10:36 AM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
yum remove full/name/of/kernel

Will get the job done.
 
Old 02-19-2009, 02:57 PM   #8
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Thanks, but is there is a manual way without yum ?
 
Old 02-19-2009, 03:17 PM   #9
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
You can run as root;
Code:
gedit /boot/grub/grub.conf
and then change the lines that look like this;
Quote:
title Red Hat Linux (2.4.18-0.12)
root (hd0,0)
kernel /vmlinuz-2.4.18-0.12 ro root=/dev/hda3
initrd /initrd-2.4.18-0.12.img
to look like this
Quote:
#title Red Hat Linux (2.4.18-0.12)
#root (hd0,0)
#kernel /vmlinuz-2.4.18-0.12 ro root=/dev/hda3
#initrd /initrd-2.4.18-0.12.img
and just do like that for every kernel that you don't want to use.
To make some kernel the default, either place its section first or change the default entry number to the appropriate number (remember that it starts counting with 0) in the default=0.
You can remove kernels that you don't want to use with the command already suggested by lazlow but not before you boot your system with the kernel that you've choosed to use.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to restore my old kernel ? mocqueanh Slackware 23 01-29-2008 02:54 PM
How to restore out-of-box kernel settings if my kernel compile fails? brgr88 Slackware 8 04-18-2006 06:51 AM
Restore previous kernel muldereric Linux - Newbie 4 07-30-2005 05:22 PM
Restore a kernel... darkarcon2015 Slackware 2 01-21-2005 11:30 PM
Kernel - need to restore files from CD syx Linux - Newbie 2 11-20-2003 10:41 PM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration