Re: File System Integrity Check
From: Jonathan Rawle (jr36_at_le.ac.uk)
Date: 03/02/04
- Next message: Fredo: "You do not have enough memory to install Fedora Core"
- Previous message: Ivan: "Force NIC 100 Full Duplex ??"
- Maybe in reply to: Robert M. Riches Jr.: "Re: File System Integrity Check"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Fredo: "You do not have enough memory to install Fedora Core"
- Previous message: Ivan: "Force NIC 100 Full Duplex ??"
- Maybe in reply to: Robert M. Riches Jr.: "Re: File System Integrity Check"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]