Linux - You are in emergency mode. After logging in, type “journalctl -xb“ to view

环境

ubuntu

错误提示

You are in emergency mode. After logging in, type “journalctl -xb” to view
system logs, “systemctl reboot” to reboot, “systemctl default” or “exit”
to boot into default mode.

原因分析

这是由于/etc/fstab文件内的磁盘挂载命令执行失败导致的系统开机启动进入紧急模式,要做的就是将/etc/fstab文件内无法正确执行的磁盘挂载语句删除或注释

解决过程

  1. 直接输入root用户的密码(输入过程无提示,输完回车即可进入shell界面)
  2. 进入shell界面,编辑fstab文件
  3. 找到那句无法正确执行的磁盘挂载命令
    此次是一句NFS挂载命令无法正确被执行

Linux - You are in emergency mode. After logging in, type “journalctl -xb“ to view_第1张图片
随后重启即正常启动

转自:https://zhuanlan.zhihu.com/p/497221878?utm_id=0

你可能感兴趣的:(linux,运维)