LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub and two kernel choices (https://www.linuxquestions.org/questions/linux-newbie-8/grub-and-two-kernel-choices-53394/)

aetengoku 04-04-2003 10:04 AM

grub and two kernel choices
 
i am running redhat 7.3. when grub comes up it gives me two choices for kernels. it happened after i used redhat up2date.
the two kernels are 2.4.18-27.7.x and 2.4.18-27.3
is this normal and how do i get rid of the older kernel

thanks for your help

ranger_nemo 04-04-2003 10:36 AM

Yes, it's normal... When you up2date a system, and they give you a new kernel, it keeps the old one(s) for safety reasons. If the new kernel doesn't work, then you can always fallback to the old one.

I wouldn't remove it. It's only taking up a couple megabytes of disc space. It might come in handy some day. If it was a different kernel version, such as 2.4.18 to 2.4.19 or .20, then you would also have a directory in your /lib/modules that would be for your old kernel. Since they're both 2.4.18, then all you should have there is /lib/modules/2.4.18 . My stock 2.4.20-8 for RH9 uses 29MB in it's modules directory, because the stock kernel has nearly all the options set as modules, so it can be used with a ton of hardware.

If you do want remove it, you can, as long as the new kernel runs properly. Open your lilo.conf or grub.conf, depending on which you use, and look at the files the entry for the old kernel uses in /boot . Most likely...

initrd-2.4.18-27.3.img
System.map-2.4.18-27.3
vmlinuz-2.4.18-27.3

Make sure they are different than the ones used by the new kernel. You can then delete the entry for the old kernel out of the lilo or grub .conf, and then the corresponding files in /boot .

aetengoku 04-04-2003 10:40 AM

thanks for the info


All times are GMT -5. The time now is 05:02 PM.