LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-17-2005, 08:18 AM   #1
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
kernel compilation : to remove a kernel which files should be deleted


hello all,
i'm in the learning stage of compiling kernel.
Just trying hand on Redhat 9 ( 2.4.20-8)

Did compilation for 4-5 times ( and didn't overwrite the old files ), hence now have that much kernels.
Now i would like to remove few of them.

Could any one please tell me which files should i remove ???

1> entries from grub.conf.
2> the separate directory containing "vmlinuz", "system.map", "initrd" etc.

any thing else???

what about the ".config" file..........as far as i know it will work as the starting point while compiling the kernel further...am i right??

regards
 
Old 08-17-2005, 09:21 AM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
I am not 100% sure, but I believe you could just remove vmlinuz.old....System.map.old.......any entries from grub or lilo.....and all should be fine. Just make sure grub or lilo entries still point to valid files: the one image or images you wanna keep.
 
Old 08-17-2005, 11:35 AM   #3
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
You can delete:
-entries in grub.conf
-/boot/vmlinuz-X.Y.Z
-/boot/System.map-X.Y.Z
-/boot/initrd.img-X.Y.Z
-/lib/modules/X.Y.Z
Quote:
what about the ".config" file..........as far as i know it will work as the starting point while compiling the kernel further...am i right??
Yes, that's right, just note that you can't use a 2.4 config file for a 2.6 kernel.
Also, each time I compile a new version of the kernel and I consider it succesful, I copy the .config file to a separate folder, which I call kernel_configs, naming them .config-X.Y.Z, so I can use them in the future if needed.
Also, after compiling and installing a kernel, while you are in the directory where you unpacked it, you may run 'make mrproper' to revert the source to the original state. Note that it will erase the .config too. Afterwards, you can repeat the compiling if you wish.
 
  


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
kernel compilation-From where it should be started for already compiled kernel b0nd Linux - Newbie 11 08-17-2005 01:08 PM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
does kernel-source installs with the compilation cum installtion of a new kernel? luqman Linux - General 18 03-04-2005 07:33 AM
Kernel Compilation - Big Kernel Jamstah Slackware 2 11-13-2003 08:56 AM
remove old kernel files Pieter Linux - Software 1 01-30-2003 04:00 AM


All times are GMT -5. The time now is 12:11 PM.

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