Kernel Panic -- not syncing: attempted to kill init

在虛擬機中安裝好red hat enterprise linux6.4和VMware tools之後關機增加了一塊50G的虛擬硬盤,再次啓動系統的時候出現“Kernel Panic -- not syncing: attempted to kill init”。

經過檢查發現我的系統是由於LINUX的selinux的config文件設置錯誤造成的。

    1  # This file controls the state of SELinux on the system.
   2  # SELINUX= can take one of these three values:
   3  #       enforcing - SELinux security policy is enforced.
   4  #       permissive - SELinux prints warnings instead of
   enforcing.
   5  #       disabled - SELinux is fully disabled.
   6  SELINUX=enforcing
   7  # SELINUXTYPE= type of policy in use. Possible values are:
   8  #        targeted - Only targeted network daemons are
   protected.
   9  #        strict - Full SELinux protection.
   10 SELINUXTYPE=strict

我的解決方法是(網上併成功的方法):
系統啓動的時候,按下‘e’鍵進入grub編輯界面,編輯grub菜單,選擇“kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet” 一欄,按‘e’鍵進入編輯,在末尾增加enforcing=0,即:
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet enforcing=0
按‘b’鍵繼續引導,OK順利前進。

進入系統之後修改selinux下的config文件,重啓之後問題解決。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章