卡在“您处于紧急模式。”

卡在“您处于紧急模式。”

我无法启动我的 Ubuntu 22.04 机器(Dell OptiPlex 7050),并且在黑屏上反复看到以下消息:

You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot", "systemctl default" or "exit"
to boot into default mode.
Press enter for maintenance
or press Control-D to continue. 

我知道我不是第一个抱怨此消息的人,但我找不到解决方案。

我也见过这样的情况:

Reloading system manager configuration
Starting default target
Failed to start default target: Transaction for graphical .target/start is destructive (emergency.target has 'start' job queued, but 'stop' is included in transaction).

但罪魁祸首可能是文件系统。我已经运行:

journalctl -xb

...发现几行内容如下:

blk_update_request: I/O error, dev sda sector...
Buffer I/O error on dev sda1, logical block...
(...)
ata1: EH complete
systemd-fsck[864]: fsck failed with exit status 4.
systemd-fsck[864]: Running request emergency.target/start/start/replace
systemd-fsck@dev-disk-by ... Main process exited, code=exited, status=1/FAILURE
(...)
A start job for unit ureadahead-stop.service has finished successfully

该命令完成时显示:

A start job for unit ...service has finished successfully.

在 中找不到任何不寻常的东西/etc/fstab

如何摆脱这种困境?

答案1

现在看来问题已经解决了。只需:

fsck -y /dev/sda1

相关内容