unable to load initrd ram disk

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
redDot
Member
Member
Posts: 29
Joined: Sat Jan 26, 2008 2:48 am

unable to load initrd ram disk

Post 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..
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: unable to load initrd ram disk

Post 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"
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
redDot
Member
Member
Posts: 29
Joined: Sat Jan 26, 2008 2:48 am

Re: unable to load initrd ram disk

Post 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.
redDot
Member
Member
Posts: 29
Joined: Sat Jan 26, 2008 2:48 am

Re: unable to load initrd ram disk

Post 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.
Post Reply