Click to See Complete Forum and Search --> : Kernel Upgrade need initrd-"kernel ver.".img


woodyak
10-12-2001, 02:44 PM
I'm trying to upgrade the kernel on my server that has a hardware RAID controller. Everything is good until I have to deal with LILO. In the lilo.conf file there is reference to a initrd=. I've never seen this before and don't know how to configure my lilo.conf to work. I've tried using the old initrd-"x.x.-x".img but when it boots it gets a kernel panic trying to mount a fs on root.

Any ideas? I'm running RH 6.2 trying to upgrade the kernel to 2.2.19 from 2.2.14.

bdg1983
10-12-2001, 05:04 PM
I also use a initrd with my distro though mine is named initrd-x.x.x.gz as it's a gzipped filesystem.

Whenever I compile a new kernel, I copy the old initrd to the version that matches my kernel (i.e. cp initrd-2.4.10.gz initrd-2.4.12.gz) and then gunzip, mount the filesystem and modify, delete or add files where necessary. I then unmount, gzip and copy the modified initrd back to the boot directory to be used with the new kernel.

Now I believe that Redhat should have a script that can be used to create a new initrd whenever you are changing the kernel version.

Something like mkinitrd and may be in /sbin. If you can find it, see if there is a man page for the command or maybe see if Redhat has documentation on the subject.