CentOS7系统开机报错:you might want to save “runinitramfsrdsosreport.txt“ to a USB stick or boot 2023-09-26 linux 暂无评论 2138 次阅读 #一、报错场景 我遇到的场景是Centos7强制下电,开机后报错,报错的大致意思是系统文件出现错误 具体报错如下 ``` 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 ```  #二、解决方法 1、创建快照,以免修复失败,还原重新修复 2、使用xfs_repair命令进行修复 查看LVM分区 ``` ls -l /dev/mapper ... centos-root -> ../dm-0 ... centos-swap -> ../dm-1 ``` 先修复下root分区 执行命令 ``` ls -l /dev/mapper xfs_repair /dev/dm-0 xfs_repair /dev/mapper/centos-root xfs_repair /dev/mapper/centos-root -L ``` 注: -L 参数,这样可能会丢失部分数据。  修复完成后  最后执行重启命令 ``` reboot ```  我的这里是`xfs_repair /dev/mapper/centos-root -L` 重新启动虚拟机修复成功了 转自https://blog.csdn.net/qq_36138652/article/details/132150040 标签: linux 本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。