[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: upgrading kernel 2.2.20-idepci



Incoming from S.D.A.:
> On Sun, May 23, 2004 at 01:36:26PM -0600 or thereabouts, s. keeling wrote:
> > Incoming from S.D.A.:
> > > 
> > > I originally installed woody, then upgraded to testing. Consequently I never
> > > upgraded my original woody kernel.
> > > 
> > > I would like to upgrade my kernel to 'kernel-image-2.4.25-1-386'. Is it a simple
> > > manner of just 'aptitude install 'kernel-image-2.4.25-1-386' or are there
> > 
> > You'll need to move kernel modules out of the way if the new kernel's
> > /lib/modules/`uname -r` exists already; apt-get will warn about this if
> 
> I'm not sure I understand this. Could you explain a little more in detail?

If you've previously installed a 2.4.25-1-386 kernel, along with it
came /lib/modules/2.4.25-1-386/*, and apt-get/aptitude will refuse to
clobber it (feature!) when installing a newer one.  If you haven't
tried this before, that directory won't exist, and this warning is
irrelevant.

If that dir does exist:

    mv /lib/modules/2.4.25-1-386 /lib/modules/2.4.25-1-386_old

will solve the problem.

> > If this kernel uses initrd (likely), you'll need to add an
> > initrd=... line to your grub/lilo config, and re-run lilo if using
> > lilo.
> 
> I've seen that warning before, and perhaps I'm slow, but what goes there
> exactly, and where in my liloconf do I put it? initrid=(name of my kernel image?)

This is my grub kernel stanza:

  -------------------------------------
title       Debian GNU/Linux, kernel 2.4.18-1-686
root        (hd0,1)
kernel      /vmlinuz-2.4.18-1-686 root=/dev/hda9 ro hdc=scsi vga=1 acpi=off
initrd      /initrd.img-2.4.18-1-686
savedefault
  -------------------------------------

My /boot is a separate partition, which is why it appears everything's
in / (root).  You'll want lilo to know where your kernel is (Debian
usually makes a link /vmlinuz -> /path/to/your/kernel/vmlinuz-2.4.25-1-386) 
and say initrd=/boot/initrd.img-2.4.25-1-386.

You could read up on man mkinitrd for some background.  You shouldn't
need it if you're just installing a kernel image package though.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)               http://www.spots.ab.ca/~keeling 
- -



Reply to: