Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ [1] 2 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: NFS problems, Permission denied< Next Oldest | Next Newest >
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: June 12 2008,13:35 QUOTE

Trying to use NFS to connect 2 DSL machines. v4.4RC1 on the server & 3.1 on the client. nfs-kernel-server.dsl loaded on server.

On the server
/etc/export contains: /home/dsl *(rw)
/etc/hosts contains ip & hostname of client
/etc/hosts.allow & deny are empty

started:
portmap
nfs-common
nfs-kernel-server
modprobe nfs

On the client
/etc/hosts contains ip & hostname of server

sudo modprobe nfs
sudo mount <servername>:/home/dsl tnfs (tnfs is directory in /home/dsl)
return error: Permission denied


sudo showmount -e <servername> gives:
/ramdisk/home/dsl *


I have also tried <servername>:/ramdisk/home/dsl & replacing <servername> with the ip address. Also tried mounting exported directory on server (i.e. mount localhost:/home/dsl <mount_dir>) & still get the permission denied message.

/proc/fs/nfs/exports contains:
# Version 1.1
# Path Client(Flags) # IPs

i.e. no exports listed?

nfsd is running on the server & rpcinfo reports portmapper, status, nfs, nlockmgr & mountd all present

Has anyone got nfs working between 2 dsl machines?
Back to top
Profile PM 
Jason W Offline





Group: Members
Posts: 260
Joined: Nov. 2006
Posted: June 12 2008,16:23 QUOTE

On the client, do you have portmap and nfs-common started?  On the client I sometimes have to set a static ip address for nfs to work without the permission denied thing.  And that is regardless what distribution is running on the server or client.
Also, on the server, /etc/hosts.allow may need to read like this, assuming your network is 192.168.0.0:

lockd: 192.168.0.0/255.255.255.0
statd: 192.168.0.0/255.255.255.0
portmap: 192.168.0.0/255.255.255.0
nfsd: 192.168.0.0/255.255.255.0
mountd: 192.168.0.0/255.255.255.0
Back to top
Profile PM 
chaostic Offline





Group: Members
Posts: 328
Joined: Mar. 2005
Posted: June 12 2008,22:18 QUOTE

Run "rpcinfo -p [ host ]" on the client, both to the server hostname/ip and loopback.

Edit:
Also found a nice NFS troubleshooting guide
http://publib.boulder.ibm.com/infocen....obs.htm
Back to top
Profile PM 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: June 12 2008,23:15 QUOTE

I have tried Jason's suggestion for hosts.allow & that doesn't change anything.

I did try loading portmap & nfs-common on the client - also modprobe nfs on the server. Again this didn't change anything. rpcinfo for the client (from either machine) gives an error (not at my 2 dsl machines at the moment, but it was something about rpc not being registered IIRC).

Haven't tried the static IP. Nonetheless - why can't I even mount exported directories on the same machine as they are exported from?
Back to top
Profile PM 
chaostic Offline





Group: Members
Posts: 328
Joined: Mar. 2005
Posted: June 12 2008,23:21 QUOTE

Quote (andrewb @ June 12 2008,19:15)
I have tried Jason's suggestion for hosts.allow & that doesn't change anything.

I did try loading portmap & nfs-common on the client - also modprobe nfs on the server. Again this didn't change anything. rpcinfo for the client (from either machine) gives an error (not at my 2 dsl machines at the moment, but it was something about rpc not being registered IIRC).

Haven't tried the static IP. Nonetheless - why can't I even mount exported directories on the same machine as they are exported from?

Try running
"ps auxww | grep -i 'rpc'"

Does it return any processes for rpc.d or rpc.stat or rpc anything?

Edit: Try making sure both portmap and rpc.statd are running on the client. Then connect.

Also, did you run "/usr/sbin/exportfs -a"? It might show an error with the exports file syntax preventing things from working correctly.

Oh, and try running nfsd in the foreground, to see if you can catch any errors that might otherwise be sent to /dev/null.
Back to top
Profile PM 
16 replies since June 12 2008,13:35 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ [1] 2 3 4 >/
reply to topic new topic new poll
Quick Reply: NFS problems

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code