Originally Posted by
SnoopFogg
Thanks, think that has sorted out the first problem:
russ@russ-netbook:~$ sudo /etc/init.d/nfs-kernel-server restart
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon... exportfs: invalid netmask `50' for 192.168.0.1
[fail]
/etc/exports - I've added:
/export 192.168.0.1/50(rw,fsid=0,insecure,no_subtree_check,async)
/export/russ 192.168.0.1/50(rw,nohide,insecure,no_subtree_check,async)
Really I only need to export to 198.168.0.21. Just thought I'd leave my options open.
Thanks again for your help
Hi Again Snoop
The error message here is slightly misleading: you have an inaccurate network specification (not really a 'mask') in /50.
You either specify a network prefix length (from /0, the whole internet, to /32, one computer) or a mask (from 0.0.0.0 to 255.255.255.255). The most usual one for a home network is /24 or 255.255.255.0.
Take a look at http://en.wikipedia.org/wiki/Subnetwork for explanation.
Code:
/export 192.168.0.1/24(rw,fsid=0,insecure,no_subtree_check,async)
/export/russ 192.168.0.1/24(rw,nohide,insecure,no_subtree_check,async)
Hope that gets you working. Let us know how you get on.
There's a point of view which says you should explicitly export to particular machines, and add them when you need them, so you'd just have 192.168.0.21(rw,...) with no network specification. For a home network I'd add the /24 and keep the convenience.
Kind regards,
Jonathan.
Bookmarks