Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   nfs    ( 5 )

формат fstab и параметры для файловых систем nfs (fstab format and options for the nfs file systems)

Примеры (Examples)

To mount an export using NFS version 2, use the nfs file system
       type and specify the nfsvers=2 mount option.  To mount using NFS
       version 3, use the nfs file system type and specify the nfsvers=3
       mount option.  To mount using NFS version 4, use either the nfs
       file system type, with the nfsvers=4 mount option, or the nfs4
       file system type.

The following example from an /etc/fstab file causes the mount command to negotiate reasonable defaults for NFS behavior.

server:/export /mnt nfs defaults 0 0

Here is an example from an /etc/fstab file for an NFS version 2 mount over UDP.

server:/export /mnt nfs nfsvers=2,proto=udp 0 0

This example shows how to mount using NFS version 4 over TCP with Kerberos 5 mutual authentication.

server:/export /mnt nfs4 sec=krb5 0 0

This example shows how to mount using NFS version 4 over TCP with Kerberos 5 privacy or data integrity mode.

server:/export /mnt nfs4 sec=krb5p:krb5i 0 0

This example can be used to mount /usr over NFS.

server:/export /usr nfs ro,nolock,nocto,actimeo=3600 0 0

This example shows how to mount an NFS server using a raw IPv6 link-local address.

[fe80::215:c5ff:fb3e:e2b1%eth0]:/export /mnt nfs defaults 0 0