启动 Debian Stretch 时出现 fsck 问题

启动 Debian Stretch 时出现 fsck 问题

我尝试启动我的电脑,但遇到了这个问题

fsck from util-linux 2.26.2
/dev/sdb6 contains a file system with errors check forced.
/dev/sdb6: Unconnected directory inode 1076721 (/var/tmp/???)


/dev/sdb6: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.
           (i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sdb6 requires a manual fsck
modprobe: module ehci-orion not found in modules.dep

BusyBox v.1.22.1 (Debian 1:1.22.0-15) build in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty: job control turned off
(initramfs)

所以一大早就我必须安装我的SATA(它直接连接到主板,Linux是通过USB连接的,所以它的外部——不知道如何描述它)并且SATA上有Windows 7。我必须复制我的项目,但遇到问题,无法安装它。我没有时间解决这个问题,所以我重新启动计算机以使用 Windows 7,并且没有遇到问题。现在放学后我尝试启动 Linux 并遇到了这个问题。

[    8.328785] sd 4:0:0:0: [sdb] No Caching mode page found
[    8.328799] sd 4:0:0:0: [sdb] Assuming drive cache: write through
fsck from util-linux 2.26.2
/dev/sdb6 contains a file system with errors, check forced.
/dev/sdb6: Unconnected directory iinode 1076721 (/var/tmp/???)


/dev/sdb6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
         (i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sdb6 requires a manual fsck
modprobe: module ehci-orion not found in modules.dep


BusyBox v1.22.1 (Debian 1:1.22.0-15) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs) _

答案1

立即解决的方法是输入fsck /dev/sdb6.它应该询问您(希望不要太多问题)您想要做什么来修复文件系统。这就是“手动运行 fsck”的含义。fsck -y /dev/sdb6如果你只是想让它对所有事情说“是”,你也可以运行。请注意,fsck 非常危险;如果您在该驱动器上有关键数据并且没有备份,那么您首先需要制作该驱动器的映像副本。

您可能会在 中得到一些文件/目录lost+found,您需要检查这些文件是否重要,然后将它们移回它们所属的位置(也可能更改所有权)或删除它们。请注意,lost+found通常只有 root 才能访问。

希望一旦您重新获得对系统的访问权限,您可以检查内核日志或系统日志以了解其损坏的原因 - 例如,驱动器可能会出现坏扇区,而该扇区碰巧击中了某些文件系统元数据。

答案2

你应该重新安装你的桌面。 prees ctrl+alt+f1 或一些 Fi (i<7)

使用您的用户登录并通过。

在终端中写入:

sudo apt-get install --reinstall gnome-session

另外,请参阅此错误报告,通过升级解决问题:

https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/552018

相关内容