How to fix "Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs,"

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

How to fix "Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs,"

Post by marbenoct2019 » 2020/03/24 13:48:18

Hi All,
After brownout, I cant boot my centos normally.
Here is the message:
" Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
try again to boot into default mode.
Give root password for maintenance
(or press Control-D to continue): ".

How to fix this?
Please help.

Best regards,
Marben

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

Re: How to fix "Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs,"

Post by marbenoct2019 » 2020/03/24 16:32:22

Hi All,
I think I reposted same problem.
But this time, I use different command to solve it,
its, xfs_repair -n /dev/mapper/ol-root, but with no luck.
I tried the command "xfs_repair -v -L /dev/dm-0",
now the error is,
xfs_repair: /dev/dm-0 contains a mounted filesystem
xfs_repair: /dev/dm-0 contains a mounted and writable filesystem
fatal error -- couldn't initialize XFS library

How to fix this.
Please help.

Best regards,
Marben

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

Re: How to fix "Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs,"

Post by marbenoct2019 » 2020/03/25 07:32:16

Hi All,
Problem is solved.
I used these 2 command,
xfs_repair -v -L /dev/dm-1
xfs_repair -v -L /dev/dm-0

My centos7 boots again, after it won't boot
due to brownout or improper shutdown.

Best regards,
Marben

Post Reply

Return to “CentOS 7 - General Support”