Re: File System Integrity Check

From: Jonathan Rawle (jr36_at_le.ac.uk)
Date: 03/02/04


Date: Tue, 02 Mar 2004 12:21:13 +0000

Tropical Cooler wrote:

> Sometimes I get a message saying that "System shutdown uncleanly" and I
> get a prompt asking me if I want to run "File System Integrity Check"
> press Y within 5 seconds.
>
> How can I get the Integrity check to run automatically without giving a
> prompt?

Journalling filesystems and their merits aside, to answer your question...

In the file /etc/sysconfig/autofsck you can include the line:

AUTOFSCK_DEF_CHECK=yes

The prompt after an unclean shutdown will now say "Press N within 5 seconds
to not force file system integrity check..."

You can add

AUTOFSCK_TIMEOUT=10

To change this timeout to (for example) 10 seconds.

To disable the prompt altogether, edit /etc/sysconfig/init to say:

PROMPT=no

Whether the check is carried out then depends solely on your
AUTOFSCK_DEF_CHECK setting. It will also prevent the "Press 'I' to enter
interactive startup" message from appearing.

Jonathan