CentOS 禁用文件系统检查:superblock 上次挂载时间在未来

Zac*_*c B 6 filesystems ext3 centos fsck centos6

在启动 CentOS 6 时,我一直收到“Superblock last mount time is in the future”错误。我已经看到其他问题询问如何解决这个错误,但我确切地知道它为什么会发生:我们定期开发/测试虚拟机将它们的日期设置为远离当前的时间,并重新安装所有文件系统。

我想知道的是:如何在centOS中禁用超级块挂载时间的所有一致性检查?

我已经尝试tune2fs -i 0 <device>并设置buggy_init_scripts=1/etc/e2fsck.conf,但都没有奏效;问题仍然存在。

Gre*_*SAT 4

buggy_init_scripts=1仅当时差小于 1 小时时才有效。

尝试一下 int /etc/e2fsck.conf:

[问题]

# Superblock last mount time is in the future (PR_0_FUTURE_SB_LAST_MOUNT).
0x000031 = {
    preen_ok = true
    preen_nomessage = true
}

# Superblock last write time is in the future (PR_0_FUTURE_SB_LAST_WRITE).
0x000032 = {
    preen_ok = true
    preen_nomessage = true
}
Run Code Online (Sandbox Code Playgroud)

这应该删除消息并更正数据。