13

CentOS7 无法启动 Starting Dracut Emergency Shell...

 2 years ago
source link: https://www.v2ex.com/t/849433
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Linux

CentOS7 无法启动 Starting Dracut Emergency Shell...

  monzuguan · 48 分钟前 via iPhone · 38 次点击
Centos7
x86_64
grub2 failed to booting
错误信息
dracut-initqueue timeout
Cloud not boot.
Starting Dracut Emergency Shell...
Warning: /dev/mapper/centos-root does not exist
我尝试做了什么?
boot from systemrescue iso.
lvs command to check lvm disk
vg cenots
lv root
lv swap
重建 initramfs
mount /dev/mapper/centos-root /mnt
mount /dev/sda1 /mnt/boot
for i in /sys /run /proc /dev /dev/pts; do mount -B /mnt$i; done
chroot /mnt
cd /boot
ls initramfs*.img
dracut -f initramfs.xxxxxx.img xxxxxx
重装引导 grub2
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
问题依旧。
本故障是第二次遇到。第一次因停电意外关机,使用启动盘进入救援模式重建引导后恢复正常。
这次又是意外停电,按照第一次(上述)的处理方法无法修复。
又进入救援模式挂载好原系统的挂载点,chroot 后使用 yum update 更新系统,包括内核,更新完检查 /boot 的 gurb 引导文件和配置都有最新内核相关的内容,日志也无异常。重启问题依旧。
正在救援模式将整个系统备份,等备份完数据仍无方法修复就重装系统了。
谢谢各位能提供宝贵的修复思路。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK