一、问题描述
1.出现问题的原因
Centos 7 断电导致 ,最近电脑老是自己蓝屏,然后重启电脑,一个月里断断续续可能有个3次左右,突然发现启动就这个问题,估计是虚拟机异常物理断电导致的系统磁盘出错了
2.具体的报错信息
1.系统开机即进入救援模式,报错如下:
Generating “/run/initramfs/rdsosreport.txt”
Entering emergency mode. Exit the shell to continue.
Tupe “journalctl” to view sustem logs.
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."
2.通过提示:查看日志journalctl如下错误
XFS (sda2): Corruption of in-memory data detected. Shutting doum filesystem
XFS (sda2): Please umount the filesustem and rectify the problem(s)
XFS (sda2): Failed to recover intents
3.图片显示是sda2 的错
二、问题解决
umount /dev/sda2 //如果没有进入救援模式,需要先umount,然后修复
xfs_repair -v -L /dev/sda2
reboot
重启之后就可以用了