FSCK on Reboot

Kris Kennaway kris at obsecurity.org
Wed Feb 16 23:21:08 GMT 2005

On Wed, Feb 16, 2005 at 05:40:42PM -0500, Matt LaPlante wrote:
> Right now I've got a server running FreeBSD 4.11.  My question is, is
> there a way to automatically run fsck on a system reboot, without
> having to go through the process of sitting at the computer, changing
> the run level, etc, etc. Clearly it's beneficial in a work environment
> to be able to wait till night hours to run such operations, but I
> personally have no desire to hang around the office until midnight
> just to run a file system check.  I know on any Windows machine this
> is easily accomplished by running chkdsk and answering "y" when it
> prompts if you want the system checked on the next reboot...you can go
> home, wait till midnight, and reboot the system, it will automatically
> check itself and come back online.  Can this be accomplished in
> FreeBSD?

fsck will be run at boot time if the system needs to run it
(i.e. unclean shutdown).  See the rc.conf manpage for relevant options
for rc.conf.  Unlike Windows, you don't need to run fsck regularly as
a regular maintenance measure.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050216/0794454f/attachment.bin

More information about the freebsd-questions mailing list