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

Re: problem installing a new kernel



Hello

Scott Mohnkern (<mohnkern@millkern.com>) wrote:

> Okay, I'm in the process of installing a new kernel (from 2.20 to
> 2.4.18) and I modified /etc/lilo.conf to have the initrd.img file,
> however, I can't find anywhere on the drive a copy of the initrd.img
> file for the 2.20 kernel.

It doesn't have one. Well, at least the Debian 2.2.20 installation
kernels from Woody didn't have initrds, because the necessary drivers
for installing were compiled into the kernel.

> If I try to use the 2.4.18 kernel, with the image file, It's a
> complete mess, with dozens of errors. Plus the ethernet card stops 
> working.  

The 2.4.18 kernel package should include a matching initrd image that is
called /boot/initrd-2.4-18-something.img, at least if you don't use the
2.4.18 installation kernel (2.4.18-bf2.4). That one doesn't use an
initrd image.

The package manegement should also automatically create a symlink

/initrd.img => /boot/initrd-2.4.18-something.img

so all you need to do is to add a line

initrd=/initrd.img

to the 2.4.18 section of your lilo.conf and rerun lilo. Obviously that
worked so far, because you can't boot without the initrd image - the
kernel doesn't have the drivers to access your hard disk.

If you get device errors, this is probably because when you booted using
your old kernel, the drivers (e.g. for your network card) were compiled
into it, but are now compiled as modules. Adding the module name
to /etc/modules should help. If you need more help, tell us what error
messages exactly you get.

best regards
        Andreas Janssen

-- 
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html



Reply to: