Running fsck automatically

Should fsck run automatically on boot if the filesystem is marked dirty?

I have the following, which I copied from an old guide, in /etc/rc.conf

Code:
fsck_y_enable="YES"
background_fsck="NO"
force_fsck="YES"
force_fsck_list="/"

but it doesn't seem to work. This is on FreeBSD 11.1-RELEASE armv5.
 
I'm running a home built FreeBSD 11.1 on ARM and followed some of the instructions here

eg Configure some niceties

Code:
echo 'fsck_y_enable="YES"' >> $DESTDIR/etc/rc.conf
echo 'background_fsck="NO"' >> $DESTDIR/etc/rc.conf
echo 'force_fsck="YES"' >> $DESTDIR/etc/rc.conf
echo 'force_fsck_list="/"' >> $DESTDIR/etc/rc.conf

I was not aware of the the fsck section in /etc/defaults/rc.conf which also exists in my system.

What happens is that I have to manually run fsck -y /dev/da0s2a whenever the the disk is not marked clean.

I'll take out my changes and see if it makes a difference.
 
Back
Top