Re: newly compiled kernel no .img file

Brian Gerst (bgerst@didntduck.org)
Wed, 05 Dec 2001 11:40:58 -0500


rohit prasad wrote:
>
> Hi,
>
> I have recompiled the linux 2.4.7-10 kernel to get ntfs readonly support.
>
> this is what I entered in the lilo.conf in the fllowing order,
>
> NEWLY COMPILED KERNEL IMAGE
> OLD KERNEL IMAGE
> WINDOWS
>
>
> image=/boot/wmlinux-2.4.7-10
> label=xunil
> read-only
> root=/dev/hda2
> image=/boot/vmlinuz-2.4.7-10old
> label=linux
> initrd=/boot/initrd-2.4.7-10.img
> read-only
> root=/dev/hda2
> other=/dev/hda1
> optional
> label=windows
>
> If you notice the first declaration of image the
> "initrd=/boot/initrd-2.4.7-10.img" is not present . Of course I removed it so that there would be no kernel panic and I am able to boot into the new kernel (xunil).
> What I want to know is what is this .img file why is it required in the original kernel compilation and not in the newer .

Your distribution put that there so that it can use modules for drivers
that are required to mount the root filesystem (ie. SCSI, fs driver,
etc.). If you build your own kernel, those drivers should be built
non-modular, therefore you won't need an initrd.

--

Brian Gerst - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/