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 12-19-2002, 09:48 PM   #1
log
Member
 
Registered: Dec 2002
Location: South Australia
Distribution: Gentoo
Posts: 113

Rep: Reputation: 15
Delete kernel


I have redhat 8.0 and i have upgraded my kernel. Its all running fine but i donw want to waste my HDD space with the old kernel.

How do I get rid of the old kernel in the bootloader AND is it safe to delete the old kernel? and where is the kernel stored anyway?

yes, i know, i suck, but im slowly getting there
 
Old 12-19-2002, 11:33 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
run this

Code:
   rpm -qa kernel
kernel-2.4.???
kernel-2.4.???
run this using the kernel you do not want to keep

Code:
rpm -e kernel-2.4.???
edit the file /etc/lilo.conf

remove the image section for the old kernel from the file


run lilo

Code:
lilo
boot = /dev/hda, map = /boot/map.0301
Added linux *
 
Old 12-20-2002, 02:46 AM   #3
log
Member
 
Registered: Dec 2002
Location: South Australia
Distribution: Gentoo
Posts: 113

Original Poster
Rep: Reputation: 15
thanks for your help, that was easy
 
Old 12-20-2002, 04:04 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58


so it worked, whew! never tried it before..



just kidding!


you will want to make a new boot floppy now, the kernel modules for the original boot floppy are no longer on your system.



Code:
mkbootdisk `uname -r`

Last edited by DavidPhillips; 12-20-2002 at 04:06 AM.
 
  


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 I fully delete every trace of kernel modules ??? Tsuroerusu Linux - Software 1 02-13-2005 01:26 PM
Delete old kernel yotamk Linux - Newbie 2 12-28-2004 11:39 AM
How to delete kernel?? harlemno1 Linux - Software 6 11-23-2004 08:38 AM
Redhat 9 RHN Kernel Update - Delete Old One junpit Red Hat 6 08-29-2003 05:04 PM
How to delete old kernel ByNature Linux - Newbie 17 08-07-2003 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration