LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-24-2004, 03:33 PM   #1
jeeva
LQ Newbie
 
Registered: Jan 2004
Posts: 22

Rep: Reputation: 15
How do I removed the compiled kernel?


Hi,

A Newbie Question:

I was trying to compile my kernel to install a network card driver, and that did not work..After trying for several weeks, I gave up on that.

Now start from scratch, I reinstalled Radhat 9.0 kernel 2.4.20-8.

Now when I reboot, I see two entries in the list of OS Kernal to choose..

kernel 2.4.20-8Customized
kernel 2.4.20-8


How do i get rid of 2.4.20-8Customized?

That should be easy, isnt it?

Thanks,
Jeeva
 
Old 01-24-2004, 03:35 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
edit your grub.conf or lilo.conf file depending on your bootloader, and just look for the entry you wish to remove and, well simply remove it
 
Old 01-24-2004, 03:45 PM   #3
jeeva
LQ Newbie
 
Registered: Jan 2004
Posts: 22

Original Poster
Rep: Reputation: 15
Hmm,
Is that all? removing the entry from grub?

Are the Kernel versions NOT kept separately? Is it my any chance occuping space?

Thanks.
 
Old 01-24-2004, 04:14 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
oh well if you want to not only remove the entry but remove the kernel itself, then you'll have to navigate to your /boot folder and remove it from there ...
 
Old 01-24-2004, 04:32 PM   #5
jeeva
LQ Newbie
 
Registered: Jan 2004
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks Guru.

One more clarification:
just removing the folders would be eough right?
 
Old 01-24-2004, 04:56 PM   #6
jeeva
LQ Newbie
 
Registered: Jan 2004
Posts: 22

Original Poster
Rep: Reputation: 15
my /boot filesystem looks like this:

I am not sure which ones can be removed - I want to removed Customized kernel...

Could you suggest,
thanks,
Jeeva


t@localhost etc]# cd /boot
[root@localhost boot]# ls -al
total 6872
drwxr-xr-x 4 root root 4096 Jan 19 12:08 .
drwxr-xr-x 19 root root 4096 Jan 24 17:49 ..
-rw-r--r-- 1 root root 5824 Jan 25 2003 boot.b
-rw-r--r-- 1 root root 612 Jan 25 2003 chain.b
-rw-r--r-- 1 root root 44309 Mar 13 2003 config-2.4.20-8
drwxr-xr-x 2 root root 4096 Jan 24 17:06 grub
-rw-r--r-- 1 root root 85581 Jan 19 11:37
initrd-2.4.20-8custom.im
g
-rw-r--r-- 1 root root 149505 Jan 19 10:19 initrd-2.4.20-8.img
-rw-r--r-- 1 root root 473 Jan 19 10:19 kernel.h
drwx------ 2 root root 16384 Jan 19 05:13 lost+found
-rw-r--r-- 1 root root 23108 Feb 24 2003 message
-rw-r--r-- 1 root root 21282 Feb 24 2003 message.ja
lrwxrwxrwx 1 root root 20 Jan 19 10:19 module-info ->
module-in
fo-2.4.20-8
-rw-r--r-- 1 root root 15436 Mar 13 2003 module-info-2.4.20-8
-rw-r--r-- 1 root root 640 Jan 25 2003 os2_d.b
lrwxrwxrwx 1 root root 19 Jan 19 12:08 System.map ->
System.map
-2.4.20-8
-rw-r--r-- 1 root root 520129 Mar 13 2003 System.map-2.4.20-8
-rw-r--r-- 1 root root 579305 Jan 19 11:37
System.map-2.4.20-8custo
m
-rw-r--r-- 1 root root 3193503 Mar 13 2003 vmlinux-2.4.20-8
lrwxrwxrwx 1 root root 22 Jan 19 11:37 vmlinuz ->
vmlinuz-2.4.2
0-8custom
-rw-r--r-- 1 root root 1122186 Mar 13 2003 vmlinuz-2.4.20-8
-rw-r--r-- 1 root root 1187865 Jan 19 11:37 vmlinuz-2.4.20-8custom
 
Old 01-24-2004, 08:40 PM   #7
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
i don't know what you mean by removing folders, cause there is no folders there besides lost+found and the grub folder which have nothing to do with the topic at hand .. but anyways the ones that have "custom" in their filename would be the ones to remove, if it is the custom kernel you say you wanna remove ...
so vmlinuz-2.4.20-8custom
and
System.map-2.4.20-8custom
as you can see anyways, both of them files combined are only like 2 megs in size so just to note, i hope your not expecting a big space increase after removing them

Last edited by DrOzz; 01-24-2004 at 08:41 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
devfs removed from kernel JimBass Linux - Newbie 7 09-28-2005 09:38 AM
Can Kernel be removed? dolphans1 Mandriva 9 08-21-2004 12:48 AM
Kernel files removed Zi5 Red Hat 44 05-06-2004 09:56 PM
kernel files removed cbarbot Linux - Newbie 1 04-14-2004 01:05 PM
Kernel Modules Removed...New ones created GAVollink Slackware 9 12-13-2003 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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