

The disk is read/write accessible by default, but the user's numerical uid (eg: 503) must be the same on both the host an client machine. The third field is the corresponding mount point you just made, the fourth tells the system that this is an nfs device that is being mounted, and the remaining arguments control access and mounting protocols. The first field is the domain name (it is safest to give the whole thing), and the second, separated by a colon, is the filesystem that has been exported. :/Volumes/Homer /nfs_mountpoint/Homer nfs -i,-P,-b 0 0 :/Users /nfs_mountpoint/Simpson nfs -i,-P,-b 0 0 Next we need to create the file /etc/fstab Sudo mkdir -p /nfs_mountpoint/Simpson /nfs_mountpoint/Homer Hence we will create two mountpoint directories as follows: The first filesystem we will want to mount will be the remote /Users directory, and the second will be /Volumes/Homer, as the computer has a second hard-drive creatively named Homer. We'll assume it has the OS X filesystem structure, but any unix filesystem will behave analogously.

For example, let's say we want to mount two filesystems that are being exported from another computer called Simpson with the domain name. You can do this anywhere, but I find making a directory a the root level to be the most convenient. To mount a filesystem from a remote NFS server, you need to do the following. Fortunately, this can be accomplished without too much pain. etc/fstab controls what remote disks (i.e., those served by another machine) will be mounted, and the file /etc/exports controls what files will be served via NFS to other computers, and can restrict access according to the system administrator's needs.Īll of this is true of OS X as well, except that the information from these ascii text files must somehow be transfered into the netinfo database, a peculiarly OS X construct. Canonical unix systems permit the system administrator to configure this by editing two ascii text files. OS X, like other unix operating systems, can function as both an NFS server and NFS client. 2 NFS Manager automates NFS exports and mounts.1.3 If NFS with automount is problematic.1.2.2 A Shell Script (or zsh function) to help (10.4.X and below only).1.2.1 To export a filesystem, you need to do the following:.1.2 Exporting your filesystems with NFS.1.1.4 A shell script (and zsh function) to help.1.1.3 Now read the information into the netinfo database.1.1.2 Next we need to create the file /etc/fstab.1.1.1 Create a mountpoint of your choosing.1.1 Mounting remote filesystems with NFS.
