CentOS7开机报错

197 阅读1分钟

CentOS7开机报错:you might must to save “/run/initramfs/rdsosreport.txt“ to a USB stick or /boot

我遇到的场景是的虚拟机被强制下电,开机后报错 具体报错如下 image.png

you might want to save “/run/initramfs/rdsosreport.txtto a USB stick or /boot
after mounting them and attach it to a bug report

报错的大致意思是系统文件出现错误

解决方法: 2.使用xfs_repair命令进行修复

查看LVM分区 ls -l /dev/mapper

… centos-root -> …/dm-0

… centos-swap -> …/dm-1 image.png 先修复下root分区
执行命令

xfs_repair /dev/mapper/centos-root或者

xfs_repair /dev/mapper/centos-root -L

注: -L 参数,这样可能会丢失部分数据。(我修复了,没发现丢数据)
最后执行重启命令
reboot
我的这里是 xfs_repair /dev/mapper/centos-root -L 重新启动[虚拟机]修复成功了