由于文件系统损坏,Debian系统无法启动

我在启动时遇到了服务器问题。 我正在尝试fsck / dev / sda1login到维护模式,我得到的select,当它启动。 检查屏幕截图。

到目前为止,发现了9个不一致的地方,并修正了它们。 任何人都可以给我任何build议吗? 有没有debian的恢复模式?

Debian GNU / Linux 5.0 \ n \ l uname -r:2.6.26-2-amd64

处理信息: http : //pastebin.com/1gVtNLxM

在这里输入图像说明

debian有恢复模式吗?

那么你有维护模式,只需input你的root密码。 如果你不能运行fsck,或者它不能清理你的文件系统,那么你只需要从你的备份中恢复。

任何人都可以给我任何build议吗?

做它告诉你做的事情。 放到shell并运行fsck。 如果一个fsck无法清理文件系统,并且你还没有一个好的备份,那么我会尝试从那个磁盘上提取/导出任何你可以尽快的东西。

除了上面的答案,我会build议像这样运行fsck,以避免吨keypress:

fsck -y /dev/sda1 

从手册:

 -y For some filesystem-specific checkers, the -y option will cause the fs-specific fsck to always attempt to fix any detected filesystem corruption automatically. Sometimes an expert may be able to do better driving the fsck manually. 

我不记得打破这样做的文件系统。

顺便说一下,在debian中,默认情况下它并没有打开,但是你可以这样做并且避免大部分需要物理存在的烦人的维护模式提示。 在文件/ etc / default / rcS中设置:

 FSCKFIX=yes