Hawkee n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1253613682433bacd2e68b8.png)
Joined: 20 Jun 2004 Posts: 50
|
Posted: Sun Jan 29, 2006 10:13 am Post subject: kernel does not accept Initrd |
|
|
hi
I want to create a Initrd to do some things before booting, but the actual setup does not work. This is what I did:
configure kernel with Initrd support
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=10000 (that should be sufficient)
CONFIG_BLK_DEV_INITRD=y
create initrd with ext2 (2MB for example)
dd if=/dev/zero of=initrd.ext2 bs=1M count=2
mkfs.ext2 -F -m0 /dev/loop0
(put some stuff in initrd.ext2)
Boot kernel with "root=/dev/ram0 rw init=/linuxrc" and tell bootloader to use "initrd.ext2". This the way i found in many tutorials including some docs included in the linux-sources.
When I boot this setup, I always get
Code: |
RAMDISK: Couldn't find valid RAM disk image starting at 0.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
|
I tried booting from grub (with initrd option), but got tired rebooting the PC all the time. So I continiued using QEMU:
Code: |
qemu -kernel vmlinuz -initrd initrd.ext2 -append "root=/dev/ram0 rw init=/linuxrc" -hda someFS.img
|
Its like the kernel does not recognize the filesystem... but its ext2 (ext2 support compiled in).
Where is the problem? |
|