莫名其妙电脑重启了,虚拟机连不上,心里真的是一万匹草泥马,显示如下:
Generating "/run/initramfs/rdsosreport.txt" Entering emergency mode. Exit the shell to continue. Type "journaletl” to view system 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.
执行:
xfs_repair /dev/dm-0 reboot
dm-0 是centos-root 的软连接
如果提示:Unmount and run xfs_repair
执行:
umount /dev/mapper/centos-root xfs_repair -v -L /dev/mapper/centos-root reboot
最后解决,赶紧把里面的实践资料备个份