Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode.

来源:互联网 发布:kali linux风扇 编辑:程序博客网 时间:2024/06/09 20:11

不知自己做了什么改动,Fedora 突然无法引导,boot 过程中提示

systemd-fsck<span style="color: rgb(122, 8, 116);"><strong>[</strong></span>605<span style="color: rgb(122, 8, 116);"><strong>]</strong></span>: <span style="font-weight: bold;">/</span>dev<span style="font-weight: bold;">/</span>sda5: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.systemd-fsck<span style="color: rgb(122, 8, 116);"><strong>[</strong></span>605<span style="color: rgb(122, 8, 116);"><strong>]</strong></span>: <span style="color: rgb(122, 8, 116);"><strong>(</strong></span>i.e., without <span style="color: rgb(102, 0, 51);">-a</span> or <span style="color: rgb(102, 0, 51);">-p</span> options<span style="color: rgb(122, 8, 116);"><strong>)</strong></span><span style="color: rgb(122, 8, 116);"><strong>[</strong></span>   13.652068<span style="color: rgb(122, 8, 116);"><strong>]</strong></span> systemd-fsck<span style="color: rgb(122, 8, 116);"><strong>[</strong></span>605<span style="color: rgb(122, 8, 116);"><strong>]</strong></span>: fsck failed with error code 4.Welcome to emergency mode. Use <span style="color: rgb(255, 0, 0);">"systemctl default"</span> or ^D to activate defaultmode.Give root password <span style="font-weight: bold;">for</span> maintenance<span style="color: rgb(122, 8, 116);"><strong>(</strong></span>or <span style="color: rgb(122, 8, 116);"><strong>type</strong></span> Control-D to <span style="color: rgb(122, 8, 116);"><strong>continue</strong></span><span style="color: rgb(122, 8, 116);"><strong>)</strong></span>:

输入 root 密码

<span style="color: rgb(102, 102, 102);"># </span>fsck <span style="font-weight: bold;">/</span>dev<span style="font-weight: bold;">/</span>sda5

或者重启动以后,进入 grub 编辑模式,找一个启动内核,按 e 修改启动参数,在 ro 后面加上 emergency ,回车后,按 b 进行 emergency 模式的引导。
引导过程中又提示另一个 /dev/mapper/… 分区需要 fsck,按照上面的方法继续 fsck,之后 exit 退出,系统会继续引导,直到成功进入系统。


我的是虚拟机Vmware 8.0  装的是fedora14

我的解决办法是首先df一下看到我的是dev/sda1 所以我就用fsck /dev/sda1这个命令试了一下。成功。

0 0