LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-02-2005, 12:19 AM   #1
Daniel49
Member
 
Registered: Jul 2005
Location: Washington
Distribution: fedora core3 soon ubuntu
Posts: 50

Rep: Reputation: 15
cleaning up old kernel files on fedora 3


Hi, new to Linux (couple months and new to this forum)

already In grub after a couple of months I have 3 versions of fedora 3.
due to kernel updates through Yum.
What steps do I need to take to clean up the older versions of the kernel as far as routine maintenance of my system.
I assume I can edit the reference to older ones out of grub.conf, but also what old kernel files can I/Do I need to clean up and get rid of?
thx , dan
 
Old 07-02-2005, 01:10 AM   #2
husnos
Member
 
Registered: Jun 2005
Distribution: debian sarge
Posts: 49

Rep: Reputation: 15
experimenting with the kernel is a serious issue..........i usually have bad luck when it comes to compiling a new kernel

i don't really know how you can clean the older version............i know that each kernel version has its own two or three folders named after the version...........i guess all you do is just delete the folders........not sure though
--------------------------------------

the safest way to get around kernel problems is to make an image of your root partition, before compiling a new kernel...............you can use norton ghost for instance..............place that image in a safe partition.........then you can restore your old system withing 5 min or less, in case you damage your system

i do this for windows with ntfs partition............i don't know if norton ghost can recognize ext2/3 partitions
 
Old 07-03-2005, 09:08 AM   #3
Daniel49
Member
 
Registered: Jul 2005
Location: Washington
Distribution: fedora core3 soon ubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
no, I am not compiling it myself. I am just allowing yum to do the update.
I suspect there is also probably commands to make Yum clean up the older kernel just don't know what it is.
 
Old 07-03-2005, 11:53 AM   #4
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
husnos, that is such overkill to be "safe". All you need to do is save your old vmlinuz image as a seperate file before copying over the freshly compiled one. Then edit your boot manager (such as lilo) to point to each image, that way if your new one doesn't work you can fall back to the old one. Saves having to do all that extra (unnecessary) work.

Daniel49, if you look in /usr/src/ you can see each linux-x.x.x folder, as well as a linux folder symlinked to one of the versioned ones. I've safely removed an older version folder here completely and had no problems. Just make sure your new kernel is working 100% as you expect (try plugging in USB devices, test sound and graphics drivers, etc.)

Hope that helps.
 
Old 07-03-2005, 02:03 PM   #5
Daniel49
Member
 
Registered: Jul 2005
Location: Washington
Distribution: fedora core3 soon ubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
ok, heres what I see :

inside /boot I have config-original ver
initrd-original ver
systemmap-original ver
vmlinuz-original ver (4 files)


all of the above first kernel update (4 files)
and finally all of the above 2nd kernel update. (4 files)

inside of /usr/src there are no files.

so if I delete the reference in grub to original and delete the config-orig,initrd-orig,system map-orig, and vmlinuz-orig.
that would that be safe and all the cleanup that is necessary?
last 2 updates seem stable by the way.
 
Old 08-18-2005, 09:17 PM   #6
husnos
Member
 
Registered: Jun 2005
Distribution: debian sarge
Posts: 49

Rep: Reputation: 15
Quote:
Originally posted by Vgui
husnos, that is such overkill to be "safe". All you need to do is save your old vmlinuz image as a seperate file before copying over the freshly compiled one. Then edit your boot manager (such as lilo) to point to each image, that way if your new one doesn't work you can fall back to the old one. Saves having to do all that extra (unnecessary) work.

Hope that helps.
the thing is restoring an image located on hardrive takes less than 5 minutes.............
 
Old 08-19-2005, 05:08 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
All you need to do is uninstall the old kernels. When you uninstall them, their grub entries are automatically removed. Do
Code:
$rpm -qa | grep -i kernel
A list of installed kernels will be listed, uninstall the ones you don't need by doing
Code:
#rpm -e kernel-version
 
  


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
Cleaning up files on my Slackware box? JockVSJock Slackware 3 06-29-2005 08:29 AM
kernel build cleaning linuxhippy Slackware 9 03-14-2005 05:07 AM
Cleaning up menus in gnome/fedora jdier Fedora 2 06-04-2004 05:47 AM
Cleaning Mozilla files noxious Linux - Software 1 05-15-2004 03:56 PM
Cleaning Home hidden files melinda_sayang Linux - General 4 02-23-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration