centos6禁用swap启动异常解决

问题描述

1、禁用swap重启后导致系统进不去
2、重启后终端提示:
Kernel panic - not syncing: Attempted to kill init

env

  • centos6.9
  • swap/root lvm

问题解决

启动异常
image

启动进到引导项,修改kernel行,删除swap的加载

centos6
image

centos7
image

posted @ 2023-06-20 14:03  mvpbang  阅读(70)  评论(0编辑  收藏  举报