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

我遇到的场景是VMware的虚拟机被强制下电,开机后报错

具体报错如下(只能敲简单的shell)

you might want to save “/run/initramfs/rdsosreport.txt“ to a USB stick or /boot

after mounting them and attach it to a bug report

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

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

解决方法:

1.创建快照,以免修复失败,还原重新修复

2.使用xfs_repair命令进行修复

查看LVM分区

ls -l /dev/mapper

... centos-root -> ../dm-0

... centos-swap -> ../dm-1

先修复下root分区
执行命令

xfs_repair /dev/mapper/centos-root或者xfs_repair /dev/mapper/centos-root -L

注: -L 参数,这样可能会丢失部分数据。(我修复了,没发现丢数据)

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

修复完成后

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

最后执行重启命令

reboot

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

我的这里是 xfs_repair /dev/mapper/centos-root -L 重新启动虚拟机修复成功了

上一篇:Learning English By Picture-Auto Parts and Repair


下一篇:【C++】关于函数重载