Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a few questions reguarding the kernel. I've heard that linux is only a kernel. Is there any truth to this? Howcome after I upgraded my linux kernel (I have Redhat 8.0) it shows up as 2 linux boot options in Grub? And lastly, how do I remove the older kernel boot option from Grub? Thanks in advance.
Originally posted by KptnKrill
I have a few questions reguarding the kernel. I've heard that linux is only a kernel. Is there any truth to this?
This is a highly philosophical question ...
Check out this link :)
I'd recommend following the site up a few levels,
too, because it contains quite essential information
like this, too...
I think you have two boot options because you have two kernel versions and I'd recommend keeping the other until you really need the space or are really sure your new kernel works under every condition with every process. I don't use grub, but I guess there's a grub.conf or something to edit if you do want to remove it.
I'd agree with the last paragraph of that link, btw - two of my computers run Linux kernels with a bunch of great GNU utilities but if you ask me what my OS is, it's definitely Linux.
I mean, I've replaced half the utilities in my DOS directories but that doesn't mean I'm running a GNU/Hacker X/Hacker Y/DOS system (because I have several GNU ports on it along with a lot of free- and Free-ware) - I'm still running DOS, due to the io.sys and msdos.sys.
Linus & friends "only" wrote the kernel, granted, but without that I'd be running a bunch of GNU ports "only" on a DOS box because there was no kernel. And I can 'less' with the best of 'em on DOS but it's clear to me which system I'm running, to say the least.
It's kind of like the old Reese's peanut-butter cups commercials... "Hey, you got you chocolate in my peanut-butter!" "Well, you got you peanut-butter on my chocolate!" "Mmmm... Tastes great!"
The people at GNU were working on a home-made, free and open Unix work-alike. They wrote all their own code for all the commands and programs that you need to do anything useful with a computer. They figured they would get around to making their own kernel.
In the mean-time, Linus began work on a kernel. The kernel is the lowest level of software. It sits between the user-interface and the hardware. Eventually, somebody started running GNU on a Linux kernel, and our favorite OS was born. This took a bit of pressure off GNU to produce a kernel, but they eventually did in 1999. You can run GNU on a HURD kernel, if you want. I guess it's based on a MACH kernel, from BSDs if I remember correctly. That would make HURD and OS-X cousins.
To remove a kernel, you need to edit your /boot/grub/grub.conf, as digiot wrote, and delete the section pointing to your old kernel. Then, you can delete the kernel and supporting files from /boot/ ... vmlinuz-2.4.18-something, initrd-2.4.18-something.img, and System.map-2.4.18-something. Be sure you are deleting the right ones, otherwise you won't be able to reboot. You can also look in /lib/modules/ for a 2.4.18-something directory. If there are two, matching your old and new kernel versions, then you can delete the whole directory for the old kernel. If there is only one, then it was for both kernels and needs to stay.
You don't NEED to delete your old kernel. It's actually a good thing to have a couple, in case one gets hosed somehow, you should still be able to boot the other. I have at least four on my RH9 laptop... Two stock and a stable custom and an experimental custom. If both kernels use the same /lib/modules/version directory, then it's only costing you a couple megabytes in /boot/ to keep the old kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.