Standard mount

  • Mount point (directory) needs to be created before mounting
  • an NFS file system. For example,
    mkdir /mnt/nfs
    
  • The NFS directory can be mounted manually:
  • mount -t nfs server_name:/exported_dir  /mnt/nfs
    
    then run df -h to see if it has been succesfully mounted.

  • Manual mounting with options other than defaults:
    mount -t nfs -o rw, hard, rsize=2048, wsize=2048 server_name:/exported_dir  /mnt/nfs
    
  • Most Common Options (described in NFS-HOWTO)
    rw
    ro
    hard
    soft
    intr
    rsize
    wsize
    
  • To unmount a directory, you can run command
    umount /mnt/nfs
    
  • The NFS directories can be mounted at bootup time if they are
  • included in /etc/fstab file:
    # file system     mount point  fstype   flags           dump  fsck       
    server1:/home     /mnt/home     nfs    rw,intr,hard     0     0
    server2:/users    /mnt/users    nfs     defaults        0     0
    
  • When /etc/fstab has been modified, you can run
  • mount -a
    
    or reboot the machine


    Previous Pageprevious First Pagetop Next Pagenext