I face this message:
Failed to execute /initKernel panic - not syncing: no init found.
Try passing init=option to kernel.
I am using this command line:
qemu-system-x86_64 -hda disk.img -kernel /home/marssonubuntu/linux_qemu/linux-3.3.3/arch/x86/boot/bzImage -initrd my-initramfs.cpio -append "root=/dev/sda rdinit=/sbin/init"
on qemu, the full message is:
Failed to execute /sbin/init Kernel panic - not syncing: No init found.
Try passing init= option to kernel. see Linux Documentation/init.txt for guidance.
Pid: 1, comm: swapper Not tainted 3.3.3 #1
Call Trace:
[<ffffffff811d78b4>] ? panic+0xa9/0x197
[<ffffffff811d6927>] ? init_post+0xb2/0xb2
[<ffffffff812aad96>] ? kernel_init+0xff/0xff
[<ffffffff811dcd44>] ? kernel_thread_helper+0x4/0x10
[<ffffffff812aac97>] ? do_one_initcall+0x121/0x121
[<ffffffff811dcd40>] ? gs_change+0xb/0xb
I used this command: ["/linux_qemu$ qemu-system-x86_64 -hda disk.img -kernel bzImage -initrd my-initramfs.cpio"]
Please help. Thanks
– Ash Feb 26 '14 at 13:09