Tech Journal Back to Tech Journal

How can I create a new initrd for a kernel?

After compiling a new kernel, you have to make a new image for it's RAM disk, which should contain all the drivers required to bootstrap the system to be able to start doing init.

An easy way to create that initrd, is to use Redhat's "new-kernel-pkg" script:

new-kernel-pkg -v --mkinitrd --depmod --install 2.4.21-20

Where 2.4.21-20 is the name/version of your kernel. This name is drawn from the kernel-source directory in /usr/src. (This command will also create a new entry in the boot loader. But only in lilo.conf.)

Last updated on 2006-08-02 14:00:00 -0700, by Shalom Craimer

Back to Tech Journal