Entering emergency mode. Exit the shell to continue.

When booting a virtual machine with Centos 7, an inscription appears:

Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/sosreport.txt" to a USB stick or /boot after mounting them and attach it to a bug report.

Booting from LiveCD (I’m using CentOS-7-LiveGNOME)

Create a copy of the section metadata

[[email protected]]# xfs_metadump /dev/mapper/centos-root /tmp/centos-root.metadump

Create a metadata image

[[email protected]]# xfs_mdrestore /tmp/centos-root.metadump /tmp/centos-root.img

And we restore it

[[email protected]]# xfs_repair -L /tmp/centos-root.img
[[email protected]]# xfs_repair -L /dev/mapper/centos-root
Sidebar