LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel Headers 2.4.22 with new Kernel 2.6.3 Install (https://www.linuxquestions.org/questions/slackware-14/kernel-headers-2-4-22-with-new-kernel-2-6-3-install-153749/)

2TonCartoon 03-05-2004 05:01 AM

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.

Thanks.

gnashley 03-05-2004 06:07 AM

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.

2TonCartoon 03-05-2004 07:16 AM

Thanks for the reply :)

hussar 03-05-2004 03:10 PM

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.

2TonCartoon 03-06-2004 04:52 AM

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.


All times are GMT -5. The time now is 04:07 AM.