ubuntu启动无法进系统:emergency mode! After logging in, type "journalctl -xb" to view system logs,

报错: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 dafault mode. Press Enter for maintenance (or press control-D to continue):

原因:磁盘有错误导致文件系统出问题,系统启动失败。

解决:手动检查并修复磁盘。

步骤:

1,回车进入命令行。先看看是哪个硬盘出现了问题:$ sudo fdisk -l

出问题的会显示红色。如果是移动硬盘,可以拔下来再重启(ctrl+alt+del)试试。

也可以通过命令:$ journalctl -xb 

一直回车查看日志,直到出现红色的出错行。看到是哪个磁盘出问题了。

2、如果还不行。则卸载出错的硬盘 $ umount /dev/sdc (对应自己出错的设备);

3、检查并修复错误:$ fsck -y /dev/sdc

4、重启:$ sudo shutdown -r now

感谢:https://www.jianshu.com/p/7433e0bb38e9
 

发布了202 篇原创文章 · 获赞 80 · 访问量 30万+

猜你喜欢

转载自blog.csdn.net/qxqxqzzz/article/details/105036038