[리눅스]Kernel Panic : No Init Found
linux 2007. 8. 1. 03:44 |- 출처: http://blog.naver.com/baboya100/20021098373
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 컴ㅍ일시 이루어지는 오류 정정문이 아니다
물론 내용은 겹치는 부분이지만, 단순히 부팅시 일어나는 오류에 관한 내용들이다.