shoot
06-01-2007, 19:56
I have a 500g(oleg1.9.2.7-7c) and a 500gP(oleg 1.9.2.7-7f). In this setup, my 500gP is the main internet & LAN router/gateway/media server. The 500g is solely used for usb-audio. 500g is in router mode & WDS mode and gets an ip from 500gP. The 500gP is in home gateway & hybrid mode. Hybrid is needed to have the 500g act as a 'client'.
The 500gP has a 300GB usb harddisk attached. I want the 500g to connect to this harddisk to have an /opt mount and use ipkg etc. Therefore I'd thought I should use NFS for this.
I enabled NFS on both the 500g & 500gP through the webinterface. I edited the /etc/exports on the 500gp like this:
# automagically generated from web settings
/opt/wl500g_opt 192.168.3.99(rw,async,no_root_squash)
/tmp 192.168.3.99(rw,async,no_root_squash)
IP of 500gP = 192.169.3.1 ('cadillac')
IP of 500g = 192.168.3.99 ('spirit')
On the 500g, I try:
mount -t -nfs 192.168.3.1:/opt/wl500g_opt /opt
The return is:
[prive@spirit root]$ mount -t nfs 192.168.3.1:/opt/wl500g_opt /opt
mount: 192.168.3.1:/opt/wl500g_opt failed, reason given by server: Permission denied
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.3.1:/opt/wl500g_opt on /opt failed: No such device
So it seems that permissions are still not set right. I searched this forum for 2 hours and tried everyting, but I am really stuck now. I have the feeling that nfs should easily work since it is true linux sharing! But the only thing I have working at the moment is samba which is working like a champ;). Can someone put me in the right direction?
Edit:
showmount and showmount -e do not give the nfs shares in /etc/exports:
[prive@spirit root]$ showmount 192.168.3.1
Hosts on 192.168.3.1:
[prive@spirit root]$ showmount -e 192.168.3.1
Export list for 192.168.3.1:
[prive@spirit root]$
The 500gP has a 300GB usb harddisk attached. I want the 500g to connect to this harddisk to have an /opt mount and use ipkg etc. Therefore I'd thought I should use NFS for this.
I enabled NFS on both the 500g & 500gP through the webinterface. I edited the /etc/exports on the 500gp like this:
# automagically generated from web settings
/opt/wl500g_opt 192.168.3.99(rw,async,no_root_squash)
/tmp 192.168.3.99(rw,async,no_root_squash)
IP of 500gP = 192.169.3.1 ('cadillac')
IP of 500g = 192.168.3.99 ('spirit')
On the 500g, I try:
mount -t -nfs 192.168.3.1:/opt/wl500g_opt /opt
The return is:
[prive@spirit root]$ mount -t nfs 192.168.3.1:/opt/wl500g_opt /opt
mount: 192.168.3.1:/opt/wl500g_opt failed, reason given by server: Permission denied
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.3.1:/opt/wl500g_opt on /opt failed: No such device
So it seems that permissions are still not set right. I searched this forum for 2 hours and tried everyting, but I am really stuck now. I have the feeling that nfs should easily work since it is true linux sharing! But the only thing I have working at the moment is samba which is working like a champ;). Can someone put me in the right direction?
Edit:
showmount and showmount -e do not give the nfs shares in /etc/exports:
[prive@spirit root]$ showmount 192.168.3.1
Hosts on 192.168.3.1:
[prive@spirit root]$ showmount -e 192.168.3.1
Export list for 192.168.3.1:
[prive@spirit root]$