질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

커널컴파일 후 kernel panic 상태

작성자 정보

  • 이선종 작성
  • 작성일

컨텐츠 정보

본문

커널 컴파일 후에 책에 나온대로 했는데

 

Trying to resume from LABEL=SWAP-hda5
No suspend signature on swap, not resuming.
Creating root device
Mounting root filesystem
mount : error mounting /dev/root on /sysroot as ext3: No such device
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kell init!

이와같은 에러가 나오네요 자세히 몰라 이렇게 질문 올립니다

관련자료

댓글 1

난다황님의 댓글

  • 난다황
  • 작성일
mount : error mounting /dev/root on /sysroot as ext3: No such device
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
기본적으로 마운트해야할 디렉토리들이 마운트가 안되어있습니다.
이것이 안될경우 문제가 발생하며  root / 또한 마운트가 안되 부팅이 안됩니다.

디스크 인식이 안되는경우, grub 또는 lilo설정이 잘못되어있는경우 가 될수도 있습니다.
싱글로 부팅하셔서 하시기 바랍니다.
다른 커널이 없다면 cd로 부팅을 하셔서 다시 컴파일 하셔야 하고
다른 커널이 있는데 지정이 안되어있다면
grub 화면에서 c를치시고
root(0,0) 첫번째 하드의 경우 ..
kernel=/boot/  여기서 tab를치시면 화일이 몇개 나옵니다.
kernel=/boot/vmlinuz-2.6.2 root=/dev/sda1 부팅 디스크
initrd=/boot/initrd-2.6.2.img 이런식으로 하시면 됩니다.
그리고 boot 하시면 됩니다.
 

공지사항


뉴스광장


  • 현재 회원수 :  60,128 명
  • 현재 강좌수 :  36,153 개
  • 현재 접속자 :  337 명