Ask yourself this question: Do you really need to export the entire / filesystem or is a specific directory enough?
I would forget about that script you're trying to run and just get nfs working first then you can tinker with customizations and such.
Some nfs basics:
You can find out what is being exported like so:
Code:
$ su
# showmount -e
Are all services running as required?
Code:
# rpcinfo -p
Can you actually mount those shares on the nfs server itself?
Code:
# mkdir test
# mount 192.168.1.2:/ test
An example from my own nfs server:
Code:
root@slave:/home/glenn# showmount -e
Export list for slave:
/home 192.168.11.107/255.255.255.0
/opt/ltsp-4.2/i386 192.168.11.107/255.255.255.0
/var/opt/ltsp/swapfiles 192.168.11.107/255.255.255.0
So we see that there are 3 directories exported.
Let's try to mount one of them.
Code:
root@slave:/home/glenn# mount 192.168.11.107:/home test
root@slave:/home/glenn# ls test
glenn nick
root@slave:/home/glenn#
Voila! So now we can manually try and mount that share on another machine. Once you get past all of this then try setting it up so that everything is automounted for you. If you have further problems please post your complete /etc/exports and the output of showmount -e. |