Add NFS automount on MAC OS (Darwin)
I had found several resources on Internet on this topic, but every time I had to put bit of information from different source or read twice to get exact steps on how to add NFS automount on MAC OS (Darwin). So I decided to put all this information together for a future use.
My method of choice is to use static mount using NetInfo manager.
1. Start NetInfo Manager from “Utilities”
2. Navigate to the /mounts
3. Add new sub-directory for /mounts
4. Add additional three properties to the new sub-directory
5. Rename and set values using following table:
| Property | Value(s) | |
|---|---|---|
| name | nfsserver:/export_mount/point | Remote path to the NFS share |
| type | nfs | Mount type. |
| dir | /net/nfsserver/export_mount/point | Path where you want to see this share. You need to create directory /net/nfsserver/export_mount. |
| opts | recvport | |
| intr |
This is important, you have to create directory /net/nfsserver/export_mount before instruct automount to read NetInfo data.
6. Restart automount by calling:
sudo kill -1 `cat /var/run/automount.pid`
7. If you are trying to mount a Linux NFS share, and it is failing, check system log file (/var/log/system.log) on your MAC. If reason for failure is “Operation not permitted”, check if NFS share is allowing to mount from your MAC. If it is, check NFS server log (/var/log/messages). If you found something like this “nfsd: request from insecure port”, then you have to configure NFS server or set share’s option to allow insecure connections. For example you can add option for share - “rw,root_squash,sync,insecure“.
no comments yet.
Create Quick FedEx Shipments from Outlook with QuickShip [Featured Windows Download]Lifehacker »« Use explicit casting instead of DataBinder.Eval.NET Tip of The Day.org
