On Sun, 8 Sep 2024 12:21:15 +0100
Zé Loff <zel...@zeloff.org> wrote:

> On Sat, Sep 07, 2024 at 06:03:26PM +0200, Rob Schmersel wrote:
> > Hi,
> > 
> > Where can I find a description of the options I can set in fstab
> > for nfs mounts? 
> > 
> > The fstab man page
> > (https://man.openbsd.org/fstab.5) points to the mount man page, which 
> > points to mount_nfs (https://man.openbsd.org/mount_nfs.8). 
> > There however I can only find the command line options, but no
> > mention of the options to put in fstab.
> > 
> > From examples I can deduce that -i corrrespond with 'intr' and -s
> > with 'soft' and so on,  but where are those actually documented?
> > 
> > Similar for other filesystems.
> > 
> > BR/Rob
> > 
> 
> Hi
> 
> I asked myself this question many many times, and found out the answer
> is a bit "hidden in plain sight" on the man page for mount:
> 
>     Any additional options specific to a given file system type (see
> the -t option) may be passed as a comma separated list; these options
>     are distinguished by a leading “-” (dash).  Options that take a
>     value are specified using the syntax -option=value.  For example:
> 
>          # mount -t mfs -o rw,nodev,nosuid,-s=153600 /dev/sd0b /tmp
> 
> So my fstab has lines like:
> 
>     10.17.18.10:/backups /nfs/backups nfs
> rw,nodev,nosuid,soft,intr,tcp,bg,noatime,-a=4,-r=32768,-w=32768 0 0
> 
> 
I missed that :)

thanks/Rob

Reply via email to