[PLUG] fsck: recommended options?
Rodney W. Grimes
freebsd at gndrsh.dnsmgr.net
Sun Aug 4 23:12:44 UTC 2019
> On Sun, 4 Aug 2019, wes wrote:
>
> > fsck does pretty well without parameters. If you wish to dispense with the
> > need to authorize any repairs it suggests, having it just perform them,
> > you can supply -p and/or -y.
>
> wes,
>
> Thank you. That was my recollection but it's been a very long time so
> checking with those having more expertise is worth while.
I can not stress enough how dangerious fsck -y is, that
says blindly assume the answer is always yes, even if
data loss is about to occur on a grand scale.
fsck -p is the proper normal invocation of fsck,
and only if absolutely necessary should a fsck -y
be run, and only as a very last resort.
fsck /dev/path if a fsck -p fails to clean the
device is an interactive command, that one should
undestand the questions and answer to before
procedding to repair a file system.
> Best regards,
> Rich
--
Rod Grimes rgrimes at freebsd.org
More information about the PLUG
mailing list