[Ubuntu]: you are in emergency mode
程序员文章站
2022-07-14 20:05:07
...
[Ubuntu]: you are in emergency mode
1、问题
笔记本安装Ubuntu20.04,由于未连接充电器,导致自动关机,开机后就出现错误:
You are in emergency mode.
After logging in, type "journalctl -xb" to view system logs,
"systemctl reboot" to reboot, "systemctl default"
or Ctrl+D to try again to boot into default mode".
造成该问题原因是错误关机后,重新开机导致硬盘的自动安装出了问题,导致无法进入启动程序。
2、解决方法
在该Terminal终端界面继续操作,使用下述命令查看错误日志,获取哪部分磁盘出现问题:
journalctl -xb | grep failed
不出意外,会显示几条错误的日志信息,在这些日志中,会有一条带有磁盘UUID
的日志记录,记住UUID
,接着打开fstab根据UUID
查看磁盘编号:
vi /etc/fstab
通常对应UUID
的磁盘编号为/dev/sdaX
或者/dev/nvme0n1p1
,后者是nvme
固态硬盘的磁盘编号。
找到磁盘编号后,输入:q
,按下回车退出编辑界面。
最后使用下述命令:
umount /dev/nvme0n1p1
fcsk -y /dev/nvme0n1p1
reboot
参考链接
- you are in emergency mode 详解(观千剑而后识器)
- [Solved][Linux] welcome to emergency mode! after logging in type “journalctl -xb” to view system logs “systemctl reboot” to reboot “systemctl default” to try again to boot into default mode. give root password for maintenance
- Stuck in emergency mode and nothing works?
上一篇: Linux环境下修改用户名和用户组
下一篇: LETTERS
推荐阅读
-
CentOS7.4开机出现welcome to emergency mode的解决方法
-
centos 7.6 开机报错信息(一):welcome to emergency mode!
-
Ubuntu 开机出现 "Your system is running in low-graphics mode"
-
解决ubuntu16.04 "the system is running in low-graphics mode"问题
-
[Ubuntu]: you are in emergency mode
-
爬坑记录--Ubuntu开机显示welcome to emergency mode
-
CentOS7.4开机出现welcome to emergency mode的解决方法
-
Mysql Error Code: 1175. You are using safe update mode and y_MySQL
-
MySQL错误:ERROR 1175: You are using safe update mode 解决方法
-
发生If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config错误的解决方式