-   Debian (
-   -   How to install a kernel-image package (

Gilion 09-24-2003 08:54 AM

How to install a kernel-image package
For networking purposes I like to upgrade my debian potato system to a debian woody releas with 2.4.x kernel. So I used the apt-get dist-upgrade method. Now my system is called version 3.0, but the kernel is still version 2.2.19:

uname -r

So I dug further in the debian documentations like the Reference, the FAQ and the user's guide. I found out about the kernel-image packages. If I correct, these contain a precompiled standard kernel with standard modules, which is perfect since my current kernel isn't anything special at all. I tried to install package of the 2.4.18 kernel on 386.

Like every newbie I get really nervous at this point, anxious to damage my system.

Apt-get always installs most recent stable versions of packages, does it also automatically select the kernel for my architecture (486) ?

Unsure about this I installed all supporting packages using apt-get, after-which I downloaded the exact kernel-image package and tried installing it using dpkg. It prompts to change /etc/lilo.conf. I only need to add one line:


Don't I need to remove other lines in the configuration of the linux loader, e.g. links to the old kernel? If I am correct, this line tells the kernel were to find the initrd filesystem. This file-system is empty. Doesn't that harm the system? Finally, I am wondering if I will be able to remove the old kernel image, since dpkg -s kernel-image does not find any installed kernel?

Any tips are welcome,


Gilion 09-24-2003 12:21 PM

I found out a couple of things:

Initrd contains important drivers which need to be loaded in order to load the kernel, thus whenever the initrd line is incorrect the booting system will fail. Now how can I configure the initrd filesystem, incl. the addition in lilo.conf, before the kernel to be loaded is installed?? Or is this a wrong conclusion?

Also, I like to know how I need to use mkinitrd in order to get this working. Do you have suggestions for extended reading?



damien 09-24-2003 05:21 PM

I posted this a couple of days ago when I was trying to get my SCSI card to wake up at the right time. It covers initrd pretty well

The link to the complete book is here:

Hope this helps.

damien 09-24-2003 05:23 PM

For some reason the url got clipped just then. Here:

Gilion 09-25-2003 02:36 AM

Thanks, that's usefull, I got it working.


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