| www.rodneybeede.com | "I would love to change the world, but they won't give me the source code" - unknown |
I modified some network settings on a machine, and it stopped working. Ubuntu Server 10.10 64-bit with nfs-common 1.2.2 installed. It worked fine for a while.
My /etc/fstab:
# non-nfs stuff removed 192.168.0.1:/users /home nfs4 _netdev,auto 0 0
The fix:
#!/bin/bash
# Have to ping the NFS server to know when the network is actually configured
# This is the only way to use /etc/fstab although you may be better off using Autofs Automounter instead
# It's just a limitation of NFS and Linux booting. If your network was Wifi you'd have this problem even worse
# It may take a few seconds after boot (you get a login prompt on your local console) before this gets to mount too
while [ ping 192.168.0.1 -c 2 2>/dev/null >/dev/null ]
do
sleep 1
done
mount -a -O _netdev
See also: