Mounting NFS in OSX

https://discussions.apple.com/thread/3698831

Update: for Mountain Lion the NFS mount is taken out. Use LoginHook instead.

Update 2:

sudo vim /etc/mount-allspark
#!/bin/bash
mkdir /Volumes/Allspark
mount -t nfs 192.168.1.10:/media/Allspark /Volumes/Allspark
sudo defaults write com.apple.loginwindow LoginHook /etc/mount-allspark

Update 3: (change mount only if server is reachable, also added resvport and rw option)

#!/bin/bash

HOST=192.168.1.10
ping -c 1 -w 5 $HOST &>/dev/null
if [ $? -ne 0 ] ; then
    echo "down";
else
    mkdir /Volumes/Allspark
    mount -t nfs -o resvport,rw 192.168.1.10:/media/Allspark /Volumes/Allspark
fi