Kernel panic - not syncing: No init found. Try passing init= option to kerne
内核启动参数为:
noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200
内核启动显示:
Warning: unable to open an initial console.
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
解决:
创建rootfs过程中,在/dev目录下手动创建如下节点:
mknod -m 660 console c 5 1
grub文件注释
default=0
timeout=5
hiddenmenu
title CentOS (2.6.18-194.el5)
root (hd0,0) ------hd0第一块硬盘,0代表第一分区
kernel /bzImage ro root=/dev/sda2 acpi=off -----------/dev/sda2:代表/根目录所在分区
~