Mount nfs

From wiki.network-crawler.de
Jump to: navigation, search

Example:

mount -t nfs 192.168.1.1:/home/user /mnt/

It's also possible to mount without portmap e.g. on small embedded devices with -o nolock

mount -o nolock -t nfs 192.168.1.1:/home/user /mnt/

/etc/fstab:

192.168.178.173:/opt                            /share/opt      nfs     rw,hard,intr 0 0

/etc/exports

/opt				192.168.178.0/24(rw,insecure,no_root_squash,no_subtree_check,async)

client:

echo N > /sys/module/nfs/parameters/nfs4_disable_idmapping
nfsidmap -c
service idmapd restart

server:

echo N > /sys/module/nfsd/parameters/nfs4_disable_idmapping
nfsidmap -c
service idmapd restart