1、系统环境:

CentOS Linux release 7.6.1810 (Core) 


2、故障现象:

启动系统报错:

Waring: /dev/centos/swap does not exist


3、原因:

删除默认SWAP分区


4、临时解决方法:

1、reboot 重启 进入引导界面,按“e”进行编辑

Waring: /dev/centos/swap does not exist


Waring: /dev/centos/swap does not exist


Waring: /dev/centos/swap does not exist

找到“rd.lvm.lv=centos/swap”,并将其删除,完成后按“Ctrl + x”重启操作系统。

Waring: /dev/centos/swap does not exist


此时可以正常启动进入系统,下次重启依然会如此。


5、永久解决方法:

#查看当前swap路径

Waring: /dev/centos/swap does not exist

进入操作系统编辑 vi  /boot/grub2/grub.cfg

Waring: /dev/centos/swap does not exist

将rd.lvm.lv=centos/swap 

修改为正常的swap分区

如rd.lvm.lv=oracle/lvg_swap

这个修改应该会有两处,两处都要修改并保存。

Waring: /dev/centos/swap does not exist

6、重启操作系统验证

shutdown -r now

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30327022/viewspace-2641409/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/30327022/viewspace-2641409/

相关文章:

  • 2021-07-05
  • 2021-05-20
  • 2021-08-31
  • 2021-12-29
  • 2021-05-05
  • 2022-12-23
  • 2021-12-28
  • 2022-03-09
猜你喜欢
  • 2022-02-27
  • 2021-08-18
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-10-05
相关资源
相似解决方案