Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-05-2004, 06:01 AM   #1
LQ Newbie
Registered: Nov 2003
Location: UK
Distribution: Slack
Posts: 9

Rep: Reputation: 0
Kernel Headers 2.4.22 with new Kernel 2.6.3 Install

Done loads of kernel/application compiles, so decided to have a go at a upgrading to the
new kernel. The guide here all seems straight forward enough, but I have one question.

The kernel headers 2.4.22 package, should this be removed first (or can it be removed)?
does the 2.6.3 kernel replace it with a new version ?

Same question for kernel modules 2.4.22 package, does the new 2.6.3 create its own,or does it need the stuff in this package to boot?

Low on disk space (380Mb free) hence the questions.


Last edited by 2TonCartoon; 03-05-2004 at 06:04 AM.
Old 03-05-2004, 07:07 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,881

Rep: Reputation: 564Reputation: 564Reputation: 564Reputation: 564Reputation: 564Reputation: 564
The kernel source code contains its' own headers and the compilation will produce a new set of kernel modules. You should be able to remove the previous kernel modules without any trouble. However, the kernel headers package should be left in place. These are the headers used to compile other programs.
Old 03-05-2004, 08:16 AM   #3
LQ Newbie
Registered: Nov 2003
Location: UK
Distribution: Slack
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the reply
Old 03-05-2004, 04:10 PM   #4
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
If it is not too late, I would like to offer some alternate advice.

If you remove the 2.4.22 modules, and then have to reboot back into 2.4.22 because you had problems with the 2.6.x install, you will have problems installing modules that have been deleted.

It would be better to remove the 2.4.22 kernel source in /usr/src/linux-2.4.22 than to remove the modules in /lib/modules/2.4.22.

You need the 2.4.22 modules if you want to boot back into 2.4.22, but you only need the 2.4.22 kernel headers if you have to compile something against the 2.4.22 kernel. That second scenario is unlikely if, as we all hope, your conversion to 2.6.3 is successful.
Old 03-06-2004, 05:52 AM   #5
LQ Newbie
Registered: Nov 2003
Location: UK
Distribution: Slack
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the reply, and nope not too late

I was thinking about the kernel modules and what would happen if I needed to reboot
the 2.4.22 kernel. I use loadlin & my kernel in a dos dir as an emergency boot disk,
did look to see if there was a loadlin option to specify other directories (dos dir to
store kernel modules in) to mount when booting, but there doesn't seem to be. If I have
to delete the 2.4.22 kernel modules to gain space, and I have to reboot the old kernel
I can uncompress zipslack, boot it, copy 2.4.22 modules back to the linux partition and
reboot the old kernel.

Have already deleted the 2.4.22 kernel source. I wasn't sure about the 2.4.22 headers
since they are from a different package, so wasn't 100% sure if compiling the new 2.6.3
kernel would produce its own headers in order to compile programs in the future.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 10:17 AM
install script can not find kernel-headers abtimoteo Linux - Laptop and Netbook 1 05-01-2005 04:29 AM
nVidia Driver won't install because Kernel Headers are missing...Whats that me then? Stevetgn Linux - Newbie 3 08-24-2003 09:27 PM
How to install kernel headers for redhat 9.0? Tommi Linux - General 5 07-02-2003 08:15 AM
How do I install kernel headers jsurgeson Linux - Newbie 4 03-27-2002 06:01 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration