How to fix "Entering emergency mode. Exit the shell to continue."

General support questions
Post Reply
marbenoct2019
Posts: 11
Joined: 2019/10/19 11:18:28

How to fix "Entering emergency mode. Exit the shell to continue."

Post by marbenoct2019 » 2020/03/11 00:32:36

Hi All,
There is a brownout here while my centos7 is power on.
When I reboot my centos 7, it won't boot normally.
The error message is:
"Entering emergency mode. Exit the shell to continue."
Type "journalctl" 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.
How to fix this problem?
Please help.

Best regards,
Marben

afewgoodman
Posts: 98
Joined: 2019/12/11 03:51:58

Re: How to fix "Entering emergency mode. Exit the shell to continue."

Post by afewgoodman » 2020/03/11 01:17:54

Hi,

I think it might be error in file system and you need to run "fsck" to recover damaged file system.

BR.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to fix "Entering emergency mode. Exit the shell to continue."

Post by TrevorH » 2020/03/11 01:33:28

It could be any one of a number of reasons and you have to scroll back up the console log using Shift-PgUp to find the error(s) that caused it. Don't go blindly doing stuff in the hope that it might help, look at the errors and logs and work out what went wrong first.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

marbenoct2019
Posts: 11
Joined: 2019/10/19 11:18:28

Re: How to fix "Entering emergency mode. Exit the shell to continue."

Post by marbenoct2019 » 2020/03/11 06:54:11

Hi All,
Thank you very much for your help.
I solved the problem "Entering emergency mode. Exit the shell to continue."
by using this command:
" xfs_repair -v -L /dev/dm-0”
then after Ctrl-Alt-Delete, my centos7 booted normally as usual.
I followed this:
https://www.jubinjacob.com/?p=70

Best regards,
Marben

cyford33
Posts: 2
Joined: 2017/04/19 01:50:27

Re: How to fix "Entering emergency mode. Exit the shell to continue."

Post by cyford33 » 2022/06/30 17:32:30

this worked for me aswell on my vm... died after the storage switch went out
xfs_repair -v -L /dev/dm-0

P A U L
Posts: 6
Joined: 2023/01/20 02:47:10

Re: How to fix "Entering emergency mode. Exit the shell to continue."

Post by P A U L » 2023/02/08 00:34:19

My CentOS7 froze, so I force shutdown (hold power button for a few seconds).
Upon rebooting, it kept apparently getting into emergency mode and I have no idea how to get out of it. I ultimately ended up reinstalling CentOS, but I fear this will happen again...and again.

The solutions posted in this thread have not worked for my situation. My installation doesn't even know what dev/dm-0 is

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to fix "Entering emergency mode. Exit the shell to continue."

Post by TrevorH » 2023/02/08 02:21:02

You need to read my previous post.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply