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

커널 컴파일후 kernel panic 문제

작성자 정보

  • 이선종 작성
  • 작성일

컨텐츠 정보

본문

어떻게 설치했고 어떠한 문제가 생겼는지 써보면 이렇습니다.

일단 Fedora5 버전을 설치 하였습니다.

많은 분들이 development 인가를 설치하라해서 설치시 모든 패키지 선택하여 모두 체크해 주고 깔았습니다 그리고 xwindow는 깔지 않았습니다

그런후 파티션은

1. / 루트는 2048MB

2. /usr 4096MB

3. /var 2048MB

4. swap 1024MB

위와 같은 순서대로 파티션을 만들어 준후 관리자 암호 준후 위와 같은 내용으로 설치를 하였습니다.

그런후 부팅후에 커널버전을보니 vmlinuz-2.6.15-1.2054_FC5smp 더군요

그런후 저는 modutils 패키지와 modutils-devel 그리고 ncurses-devel 패키지를 설치하였습니다

그런후 kernel.org ftp 홈페이지에서 linux-2.6.16.tar.gz 라는 압축파일을 받았고

tar xfvz linux-2.6.16.tar.gz

로 압축을 풀었습니다

그리고 ln -s linux-2.6.16 linux로 링크를 걸어주었고요

cd linux 로 링크 폴더에 들어가서 다음과 같은 순서대로 커널컴파일을 하였습니다

1.make mrproper

2.make menuconfig <<여기부분에선 잘 몰라 책에서 나온대로 대충 따라하였습니다 책은 서자룡씨 그대로따라하기 fedora책을 보고 따라했습니다

3.make bzImage

4.make modules

5.make modules_install

6.make install
이런 컴파일 과정을 거치고

reboot을 통하여 재부팅을 한후

linux-2.6.16 커널로 부팅하였습니다

그런데 부팅과정중에 밑에와 같은 에러가 나와 이렇게 질문을 올립니다

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!

뭔가 부트로더에 문제가 있지는 않나해서 부트로더 내용을 봤더니 이렇더군요


#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.16)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.16 ro root=LABEL=/dev/hda <<<<제가 고쳤습니다
         initrd /boot/initrd-2.6.16.img                            그전과 변화는 없었습니다
                                                                                그전에는 =/1 이었습니다
title Fedora Core (2.6.15-1.2054_FCsmp)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.15-1.2054_FC5smp ro root=LABEL=/1
        initrd /boot/initrd-2.6.15-1.2054_FC5smp.img

문제점이 무엇인지 몰라 말이 길어졌네요 좋은 답변 부탁드립니다 ㅠ

관련자료

댓글 1

난다황님의 댓글

  • 난다황
  • 작성일
root=LABEL=/1

root=/dev/hda1 혹은 설치 파티션을 지정하셔야 합니다.


공지사항


뉴스광장


  • 현재 회원수 :  60,037 명
  • 현재 강좌수 :  35,810 개
  • 현재 접속자 :  97 명