A question about fsck and the -t option

Ronald F. Guilmette rfg at tristatelogic.com
Wed Apr 2 23:00:52 UTC 2014

In message <533C40BF.2010907 at cyberleo.net>, 
CyberLeo Kitsana <cyberleo at cyberleo.net> wrote:

>A glance at the source code[1] suggests that {fsck} attempts to infer the
>type from the fstab, and then the BSD disklabel.

Based upon my limited perusal/skimming of the fsck man page, this appears
to be undocumented behavior.

I shall be filing a documentation PR on this, because I'm a firm believer
that important aspects of behavior should be documented.

>It does not appear to
>attempt a guess from the filesystem magic itself.

Should it perhaps do so?

The particular filesystem that wanted to check yesterday was most definitely
_not_ listed in my /etc/fstab file.  But that was not an oversight.  That was
by intent.

Also and separately, please correct me if I am wrong, but aren't BSD style
partition labels going the way of the dinosaur, now that we have GPT
partitioning available?

More information about the freebsd-questions mailing list