Centos7 UEFI安装后只能进入救援模式解决方法

前一段时间因为需要在家做部分Linux上的系统实验,就准备把家里一台台式机做成纯Linux系统。但碰到一个匪夷所思的问题,纯新的系统内核引导没任何问题,但就是不能进入系统,上来就是救援模式。

cat /var/log/boot.log

[ TIME ] Timed out waiting for device dev-disk-by\x2duuid-5f874d06\x2db1ca\x2d412f\x2d80c4\x2dd4fdbd13da14.device.
[DEPEND] Dependency failed for /boot.
[DEPEND] Dependency failed for Local File Systems.
[DEPEND] Dependency failed for Mark the need to relabel after reboot.
[DEPEND] Dependency failed for Relabel all filesystems, if necessary.
[DEPEND] Dependency failed for Migrate local SELinux policy changes from the old store structure to the new structure.
[DEPEND] Dependency failed for /boot/efi.
[ TIME ] Timed out waiting for device dev-disk-by\x2duuid-8CBA\x2d730B.device.



天真的我一开始以为是在BIOS中设置问题,开启了EFI以及Legacy并存的模式,然而并没有什么卵用,该报错还是报错。
在救援模式下使用mount -a命令也没有出错,那就断定不是/etc/fstab文件的错误。

在仔细研究报错之后,发现另一个关键字SELinux,猜测是不是因为SELinux限制了部分efi的启动。果断关闭重启。
解决问题!

-------------------------------华丽的分割线---------------------------------------------
以上操作成功之后,安装的系统启动还是会有各种报错,最后判断是磁盘坏道过多,换了一块磁盘就好了。
 

发布了36 篇原创文章 · 获赞 21 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_39833509/article/details/103665150