Page 1 of 1

unable to load initrd ram disk

Posted: Sun Nov 09, 2008 3:51 pm
by redDot
the kernel is running fine with Bochs. I am using the grub bootloader in the floppy boot image which has the menu.lst as follows,

Code: Select all

title my kernel
root (fd0)
kernel /kernel.bin
initrd /initrd.img
I have fedora9, and i thought of trying to run my laptop with the newly developed kernel. I suitably changed the configuration and added the files (kernel.bin and initrd.img) to /boot . The grub.conf is

Code: Select all

title Fedora (2.6.25-14.fc9.i686)
	root (hd0,4)
	kernel /boot/vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=bcfca564-6f8b-4ea1-a17f-9e277cbeeed1 rhgb quiet
	initrd /boot/initrd-2.6.25-14.fc9.i686.img

title my Kernel
	root(hd0,4)
	kernel /boot/kernel.bin ro root=/dev/sda5
	initrd /boot/initrd.img
I am getting the error as
"Error 19: Linux kernel must be loaded before initrd"

please help me out..

Re: unable to load initrd ram disk

Posted: Sun Nov 09, 2008 5:30 pm
by Combuster
Initial ramdisk is a thing specific to linux kernels. Since your kernel is most likely multiboot (i.e. not linux), there is no way GRUB can pass on that info because that info doesn't exist.

Instead you'd have to pass the ramdisk as a "module"

Re: unable to load initrd ram disk

Posted: Mon Nov 10, 2008 12:25 am
by redDot
but with the floppy image, that i have created, and using GRUB as a bootloader, it runs fine.. shouldnt it do the same in case of writing the configurations as specified in my above post.
how do i pass the initrd as module. can u please suggest the appropriate menu.lst entry.

Re: unable to load initrd ram disk

Posted: Mon Nov 10, 2008 12:52 am
by redDot
hey, thanks ...
its working now..
i had replaced the "module" with "initrd" in the booting option. I checked the configuration file, and corrected it. Its running fine now.
Thanks for your help.