LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remove kernel (https://www.linuxquestions.org/questions/linux-newbie-8/remove-kernel-122003/)

collimate 12-02-2003 01:14 PM

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

MasterC 12-02-2003 01:23 PM

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 :D ).

Cool

Pcghost 12-02-2003 01:27 PM

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.... :D

MasterC 12-02-2003 01:42 PM

:D even on dial up ;)

Cool

collimate 12-03-2003 02:37 AM

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


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