Making an initrd Image

An initrd image is needed to load a SCSI module at boot time or if the kernel was compiled with ext3 support as a module. To verify that a new initrd file was created, view the contents of the /boot directory and look for initrd-2.4.20-2.47.1custom.img, where 2.4.20-2.47.1custom is the name of the kernel just built.

If it does not exist, use the /sbin/mkinitrd shell script to create it:

/sbin/mkinitrd /boot/initrd-2.4.20-2.47.1custom.img 2.4.20-2.47.1custom

In the above example, /boot/initrd-2.4.20-2.47.1custom.img is the file name of the new initrd image. 2.4.20-2.47.1custom is the kernel whose modules (from /lib/modules) should be used in the initrd image. This is not necessarily the same as the version number of the currently running kernel.