10

CentOS启动报entering emergency mode错误解决方法

 3 years ago
source link: https://www.huhexian.com/31417.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

CentOS启动报entering emergency mode错误解决方法

青山 2022-03-1113:29:16评论538字

今天宿主机意外断电关机,开机启动系统正常,打开vmware里的几个系统,发现启动centos的时候报错,内容大致如下:

  1. Generating "/run/initramfs/rdsosreport.txt"
  2. Entering emergenc mode.Exit the shell to continue.
  3. Type "journalctl" to view system logs.
  4. You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
  5. after mounting them and attach it to a bug report.
CentOS启动报entering emergency mode错误解决方法重启了几次一直都无法解决。

只需要在这里的shell键入一条命令:

xfs_repair -v -L /dev/dm-0

执行完成后即可重启,恢复正常。

如果输入xfs_repair -v -L /dev/dm-0 ,报 no such file or directionary 的错误,是没有这个设备。 输入journalctl,翻到最后一页,查看红色地方XFS()是什么。 例如如果是XFS(3),那么就将命令对应的文件改为 xfs_repair -v -L /dev/sda3 即可。

此命令的作用是强制清除日志,但是不会删除自己的文件。


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK