[sf-lug] fstab problem

Michael Paoli Michael.Paoli at cal.berkeley.edu
Tue Nov 29 19:26:32 PST 2016


Depends on the details of what's desired at boot.
With noauto, it won't attempt to mount it.
If I'm not mistaken, with nofail, it will attempt to
mount it, but if it doesn't mount, it won't treat that as
failure/error, and will continue, rather than, e.g.
treating
# mount -a
as a failure (which is what, or the
approximate/equivalent, that boot typically
does when it goes multiuser - and for some
*nixes/distributions/flavors, it may even do
that when going to single user mode).

Extra credit: what happens if both options are specified?
And if both are specified, does the order matter?  Is it
consistent with what the man pages say, or do the man pages
not specifically address use of both?

> From: "Rick Moen" <rick at linuxmafia.com>
> Subject: Re: [sf-lug] fstab problem
> Date: Tue, 29 Nov 2016 16:34:45 -0800

> Quoting Michael Paoli (Michael.Paoli at cal.berkeley.edu):
>
>> I think the option is "nofail" (off-the-top-of-my-head).
>
> You know, 'noauto' would do, and is probably what Alex is looking for.
> (Alex, sub that for keyword 'defaults'.)
>
>> You can then also validate it in the fstab file, e.g.:
>> # mount target_directory
>
> And yes, always do that.





More information about the sf-lug mailing list