LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-02-2008, 07:35 PM   #1
warpman
Member
 
Registered: Apr 2005
Posts: 76

Rep: Reputation: 17
Various kernels question


I'm running slackware-12. I've notice that my computer shows that I have kernel-generic-2.6.21.5-i486-2, kernel-generic-smp-2.6.21.5_smp, kernel-headers-2.6.21.5_smp, kernel-huge-2.6.21.5, kernel-huge-smp-2.6.21.5_smp, kernel-modules-2.6.21.5, kernel-modules-smp-2.6.21.5_smp, kernel-source-2.6.21.5_smp-noarch. My question is, do I need all these kernels? Can I remove the ones not been use? How do I determine which one is been use? Any help would be appreciated.
 
Old 03-02-2008, 07:53 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by warpman View Post

I'm running slackware-12. I've notice that my computer shows that I have kernel-generic-2.6.21.5-i486-2, kernel-generic-smp-2.6.21.5_smp, kernel-headers-2.6.21.5_smp, kernel-huge-2.6.21.5, kernel-huge-smp-2.6.21.5_smp, kernel-modules-2.6.21.5, kernel-modules-smp-2.6.21.5_smp, kernel-source-2.6.21.5_smp-noarch. My question is, do I need all these kernels?
No. You need two packages, your binary kernel and the corresponding source package.

Quote:
Originally Posted by warpman View Post

How do I determine which one is been use?
Use this command:

uname -a


---------------------
Steve Stites
 
Old 03-03-2008, 04:30 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
also 'uname -r' which is easier to read.
 
Old 03-03-2008, 09:55 AM   #4
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 37
I'd also keep the corresponding modules package
 
Old 03-03-2008, 10:23 AM   #5
STARHARVEST
Member
 
Registered: Nov 2005
Location: Russia, republic of Bashkiria
Distribution: Slackware 12.1
Posts: 294

Rep: Reputation: 31
If you want to compile things better leave it as is.
 
Old 03-03-2008, 10:26 AM   #6
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by General Failure View Post
I'd also keep the corresponding modules package
Not to mention the "kernel-headers" package the OP also mentions in his post - even if the kernel is updated to a later version. For example, I run 2.6.24.2 but still keep the 2.6.21.5 header package installed. Do a search on "kernel headers" in this forum for some discussion of why this is a good idea.
 
Old 03-03-2008, 12:29 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
So, again, keep the:

kernel, if you want to run Linux
headers, or you'll be in trouble when you want to compile
modules, if want most things to work properly
source, if you want to compile more modules

So, everything here is mandatory, except for kernel source, which I would argue is also important, so you should keep all of these packages for a given kernel version and architecture.
 
Old 03-10-2008, 10:26 PM   #8
warpman
Member
 
Registered: Apr 2005
Posts: 76

Original Poster
Rep: Reputation: 17
Thanks for all the info guys. But I guess I didn't explain my self correctly. I was trying to figure out how to identify which kernel out of all of them I was running. Eventually I did find out by going into /boot I check the @config and it was pointing to config-huge-2.6.21.5. I'm going to try to make the generic-smp-2.6.21.5-smp kernel I would be removing the other ones. I would keep the headers and modules and I might keep source also. Thanks again for all the info. I might be asking you guys later as to how do I go about modifying the kernel. Thanks again.
 
Old 03-10-2008, 10:37 PM   #9
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
The easiest way to check that in my opinion (and to be 100% sure) is to look at lilo.conf and see what kernel you are booting into. If it simply says '/boot/vmlinuz', and /boot/vmlinuz is a symlink, `ls -l /boot/vmlinuz` would tell you what kernel you are running. The easy way without any possible errors. The /boot/config symlink is not 100% accurate (I think you have to manually set that yourself or something -- not quite sure what it does, but it still links to 'config-huge-smp-2.6.21.5-smp' for me and I'm running a custom compiled 2.6.24.2, and originally ran 'vmlinuz-generic-smp-2.6.21.5-smp' and NOT the huge-smp kernel -- so I don't think that reflects the current kernel in use).
 
Old 03-11-2008, 12:15 PM   #10
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Well you've only actually got four kernels from the stock install - two generic and two huge. These only occupy about 12MB so why not just leave them be ?

If you plan to use the generic kernel (which is recommended) always leave a huge version installed in case something goes wrong. For example the generic kernels require making an initial ram disk image - if this goes wrong and the only kernel you have is the generic you cannot boot from the hard disk ( well not to that installation anyway ).

In any case it's good to have a failsafe.
 
Old 03-11-2008, 05:21 PM   #11
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
bgeddy makes a good point -- I have an extra LILO entry to boot using the huge-smp kernel in case anything happens (and it has saved me a few times). Much easier than having to boot up using the CD followed by a whole bunch of chroot jazz when (if?) you screw up your kernel somehow.
 
  


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
Multiple kernels! Module question! Shioni Linux - General 1 08-19-2006 11:26 AM
A question on removing spare kernels satimis Fedora 2 01-09-2005 09:39 PM
Multiple kernels question oneandoneis2 Slackware 5 06-25-2004 07:55 PM
Just a quick question about kernels Draco04 Linux - Newbie 3 06-23-2004 01:25 AM
question about new kernels sbcdivision63 Linux - General 1 02-23-2004 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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