NFS Mounts

You need to setup an nfs server

Configuration

  1. add the nfs server's name and ip to /etc/hosts on your client
  2. add the client machine's name and ip to /etc/hosts on your nfs server
  3. enable the nfs and nfslock services to start at boot
  4. start nfs and nfslock

Testing

To make sure the server is configured properly, we will test mount the nfs share:

[root@bender mnt]# mount -t nfs wspace:/shared/directory /mnt/directory
wspace: The server we are connecting to (I have configured wspace in my /etc/hosts file)
/shared/directory This is the shared/exported directory
/mnt/directory This is the local mount point for the nfs share

If the above command worked, we are ready to add the mount point to our /etc/fstab to allow mounting at boot-time

Configure fstab

  1. add the mount information to your /etc/fstab
    wspace:/home/media      /mnt/wspace             nfs     context=user_u:object_r:nfs_t   1 2
  2. reboot to test

mount info

linux/fedora/nfs.txt · Last modified: 2007/07/15 20:16 by john
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki