fsck during FreeBSD startup

hi

Is it possible to configure FreeBSD to do fsck during startup automatically? For example if filesystem is not clean after crash? It is a bit laborious to do it manually in a "single-user" mode with other keyboard settings using fsck command:

Code:
fsck -f -y /dev/ad0s1d

BTW on linux is really easy:

Code:
# shutdown -F -r now
 
ccc said:
Is it possible to configure freeBSD to do fsck during startup automatically?
For example if Filesystem is not clean after crash?
It will always do a fsck after a crash. When a crash happens (or it gets turned off) the filesystems are marked "dirty". When the system boots it will always fsck dirty filesystems.

BTW on linux is really easy:
Code:
# shutdown -F -r now

And the difference is?

# shutdown -r now
Or
# reboot
 
dutchdaemon said:
set
Code:
fsck_y_enable="yes"
in /etc/rc.conf. By default it's set to "no", which means you'll have to run it manually when the automatic fsck fails.

thx
 
Back
Top