LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-02-2003, 01:14 PM   #1
collimate
LQ Newbie
 
Registered: Nov 2003
Posts: 8

Rep: Reputation: 0
remove kernel


i made a new kernel, i installed , i've configured Grub, and everything is ok.
now i have 2 working kernel,
ho can i remove one of them safely?





------------------------
http://www.vrbe.org

Last edited by collimate; 06-19-2004 at 05:01 AM.
 
Old 12-02-2003, 01:23 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
In your grub configuration file, remove the entry for the kernel you want to remove, save the changes and reboot. Be very sure that your new kernel works (I usually give about a months practice before removing a working kernel from my machine). Then in /boot remove the kernel that you removed the entry for, and if you really want to get sick with it remove the entry for that kernel's modules in /lib/modules/kernel-version where kernel-version is the kernel that you removed. You can also safely remove the old kernel's sources if you had/have them in /usr/src/kernel-version and be sure that you have properly setup the new symlink to the new kernel sources:
ln -sf /usr/src/kernel-version /usr/src/linux (rememer this is the NEW kernel)

To make sure everything checks out before actually "deleting" or rm'ing everything, I usually make a directory in /tmp called kernel:
mkdir /tmp/kernel
And move everything there. Then, if upon reboot everything is working, I'll go ahead and delete the directory (hopefully you don't have /tmp autocleaned upon reboot, if you do, use another directory for the temp backup ).

Cool
 
Old 12-02-2003, 01:27 PM   #3
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
Don't be too hasty in removing the old kernel. Some problems you wont notice for a while. Unless you are really hurting for space, it's a good idea to keep the old one around for a while.

Wow MasterC is fast....
 
Old 12-02-2003, 01:42 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
even on dial up

Cool
 
Old 12-03-2003, 02:37 AM   #5
collimate
LQ Newbie
 
Registered: Nov 2003
Posts: 8

Original Poster
Rep: Reputation: 0
i didn't mean that i would like to remove the old one , maybe i just want to remove the new one!
:-)
 
  


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 : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 11:35 AM
remove old kernel laurentwahl Linux - General 5 05-14-2005 01:55 PM
how to remove a kernel lucs Slackware 5 05-03-2005 12:42 AM
how do I remove new kernel? jmral23 Linux - Newbie 1 02-09-2005 05:48 PM
remove kernel praveen_2003 Linux - Software 5 07-20-2003 12:53 AM

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

All times are GMT -5. The time now is 01:30 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