Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel does not accept Initrd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Hawkee
n00b
n00b


Joined: 20 Jun 2004
Posts: 50

PostPosted: Sun Jan 29, 2006 10:13 am    Post subject: kernel does not accept Initrd Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum