- kernel panic : no init found ...
.
.
VFS: Insert root floppy disk to be loaded into RAM disk and press ENTER
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 172k freed
Kernel panic : No init found. Try passing init= option to kernel.
- fsck filesystem check.
Subject ::
1) Kernel Panic : No Init Found
Error Messages ::
VFS: Mount root (ext2 filesystem)
Red Hat nash version 3.4.42 starting
Mounting /proc filesystem
Creating bloack devices
failed to read /proc/partitions: 0
Creating root device
mkrootdev: label /not found
Mounting root filesystem
Mount: error 2 Mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 132k freed
kernel panic : No init found. Try passing init= option to kernel.
Symptoms ::
1) ý
2) linux single Ұ
Problem Cause ::
root ϴ initrd 丮
(init μ ʰų ߸ )
Kernel ջ 쵵 Եȴ.
Solution ::
, Single ϴٸ
ex) fsck.ext3 -y /dev/hda1 ext3 üũָ ذ ϴ.
, Single尡 Ұϴٸ
1) Linux ġ CD ְ
2) linux rescue Ѵ
3) # Ŀ ߸ chroot /mnt/sysimage ؼ root
4) root mkdir /initrd ش.
5) init 6 Ǵ reboot ɾ ָ Ϸ.
Postscript ::
1) initrd 丮 RAM mount , pivot_root system call
ϴ 丮 Ŀ ȿ
ʴ´ٰ Ұ.
2) ذ Kernel Ͻ ̷ ƴϴ
ġ κ, ܼ ý Ͼ ̴.
2. suckit Ͽ .
1) Linux ġ CD ְ
2) linux rescue Ѵ
3) # Ŀ ߸ chroot /mnt/sysimage ؼ root
4) cd /sbin ̵Ͽ init Ȯ.
suckit /sbin/init Ѵٰ Ͽµ, ̻ /sbin/init
ǹ鵵 ϵ ϰ ȴ. , ̻縦 sk12 Ͽ
/sbin/initsk12 ϰ Ǵ ̴. ( suckit 鵵
ְ, init ִ.)
5) ls -la init
Ȯ init ũⰡ 0 ΰ Ȯ Ҽ ִ. init ٸ ̸
initsk12 init Ѵ.
6) cp initsk12 init
7) ý .