我如何在 fsck 上强制选择是

ric*_*hmb 5 grub2 fsck

我有一堆无头的 ubuntu 服务器工具。当发生各种硬件更改时,有时我们会收到此错误。我猜这是主板更换,在这种情况下 RTC 略有不同。

fsck from util-linux 2.20.1
/dev/sda1: Superblock last mount time (Web Feb 18 09:02:07 2015,
        now = Sun Jan 19 19:33:44 2014) is in the future.

/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)
mountall: fsck / [292] terminated with status 4
mountall: Filesystem has errors: /

Errors were found while checking the disk drive for /.
Press F to attempt to fix the errros, I to ignore, S to skip mounting, or M for manual recovery
Run Code Online (Sandbox Code Playgroud)

按 F 解决了磁盘问题(我仍然有一个更改的 RTC 问题,但可以单独解决),但我不想让软件工程师站在每台有电路板更改的仪器旁边,特别是如果它可以自行修复。

有没有办法让系统执行“强制是”或始终尝试修复选项。如果是这样,我将在哪里进行此更改。

Win*_*nix 6

您的问题的答案在这里如何使 fsck 在启动时以非交互方式运行?

要强制 ubuntu 在启动时修复所有磁盘错误,您需要FSCKFIX=yes/etc/default/rcS. 这告诉我们fsck带着标志运行-y


归档时间:

查看次数:

24900 次

最近记录:

7 年,2 月 前