게시물 261건
   
[redhat6.7] 커널 패닉시 initramfs 생성 - dracut kernel
글쓴이 : theko 날짜 : 2016-08-23 (화) 21:27 조회 : 7130
1. 문제점

# dracut initramfs-2.6.32-220.4.1.el6.x86_64.img 2.6.32-220.4.1.el6.x86_64 
이렇게 작업을 해야 하는데 실수로

# dracut initramfs-2.6.32-220.4.1.el6.x86_64.img  해버림.

-----------------------------------------------------------------------------------------------------------------------
===> 부팅화면
Kernel panic - not syncing: Attempted to kill init!
Call trace:
[<ffffffff814ec2ba>] ? panic+0x78/0x143
[<ffffffff8106ed72>] ? do_exit+0x852/0x860
[<ffffffff81177e65>] ? fput_0x25/0x30
[<ffffffff8106edd8>] ? do_group_exit+0x58/0xd0
[<ffffffff8106ee67>] ? sys_exit_group+0x17/0x20
[<ffffffff8100b0f2>] ? system_call_fastpath_0x16/0x1b
-----------------------------------------------------------------------------------------------------------------------


2. 해결방안
 - rescue 모드로 들어가서  initram 를 다시 생성해주면 된다.

# mkinitrd -f -v /boot/initrd-$(uname -r).img $(uname -r)

ex) mkinitrd -f -v /boot/initrd-2.6.18-164.el5.img 2.6.18-164.el5


How to rebuild initrd or initramfs in Redhat Linux
[이 게시물은 theko님에 의해 2016-08-23 21:27:30 RHCS & GFS에서 이동 됨]

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com