LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-22-2003, 07:01 PM   #1
KptnKrill
Member
 
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Rep: Reputation: 30
Exclamation The Linux Kernel


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.

-------------------------
KK
 
Old 05-22-2003, 07:26 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: The Linux Kernel

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


Cheers,
Tink
 
Old 05-22-2003, 08:43 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 05-22-2003, 11:39 PM   #4
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
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.
 
  


Reply



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
smp kernel: uncompressing Linux ..ok booting the kernel krissb Linux - General 1 11-16-2005 06:31 PM
Debian patched kernel vs official Linux Kernel gerald45 Debian 7 10-12-2005 04:45 AM
Linux kernel debugging and Linux kernel module programming Igor007 Programming 2 08-13-2005 05:12 AM
Linux kernel debugging and Linux kernel module programming Igor007 Linux - Enterprise 3 08-12-2005 02:47 PM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM

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

All times are GMT -5. The time now is 06:56 AM.

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
Open Source Consulting | Domain Registration