You are not logged in.

#1 2009-11-27 20:20:06

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

[NFS] No such file or directory on mount

So because sshfs is slow in a small network and the encryption is useless i decided to setup NFS

But when mounting i get this error:

[~]:$ sudo mount -t nfs4 192.168.0.100:/home/jelle/Downloads /home/jelle/Downloads/ -v
mount.nfs4: timeout set for Fri Nov 27 21:16:26 2009
mount.nfs4: text-based options: 'clientaddr=192.168.0.102,addr=192.168.0.100'
mount.nfs4: mount(2): No such file or directory
mount.nfs4: mounting 192.168.0.100:/home/jelle/Downloads failed, reason given by server:
  No such file or directory

I have searched the forum and wiki but couldnt find any clue.

SERVER SETUP

/etc/hosts.allow

nfsd: 192.168.0.1/255.255.255.0
rpcbind: 192.168.0.1/255.255.255.0
mountd: 192.168.0.1/255.255.255.0

/etc/exports

/home/jelle/Downloads 192.168.0.1/255.255.255.0(rw,subtree_check,async,no_root_squash,fsid=0)
SERVER[~]:$ sudo exportfs -v
/home/jelle/Downloads
        192.168.0.1/255.255.255.0(rw,async,wdelay,no_root_squash,fsid=0)

And on my Desktop
hosts.allow

/home/jelle/Downloads 192.168.0.1/255.255.255.0(rw,subtree_check,async,no_root_squash,fsid=0)

Last edited by jelly (2009-11-27 20:21:12)

Offline

#2 2009-12-11 23:13:57

f3ar007
Member
Registered: 2009-08-18
Posts: 44

Re: [NFS] No such file or directory on mount

i have the same problem.  the error printed is "no such file or directory" even though the directory exists, on the server.  let me know if you had any luck?

[solved]

when you mount the share on the client only use '/' for root. it will mount whatever directory specified in the config.

Last edited by f3ar007 (2009-12-11 23:23:54)

Offline

#3 2012-10-25 21:56:24

Cae
Member
Registered: 2012-10-25
Posts: 1

Re: [NFS] No such file or directory on mount

Quite old thread, but I had a similar problem today. It may be helpful for future visitors.

I was trying to put a share to another subnet, while i got the same error message. It turned out that I only specified the fsid=0 entry for the range of the old subnet, so the new one had no /-mount point to look at. This results in the ENOENT error message just as above.
So be sure to have a proper for all clients accessible fsid=0 export.

Cheers,
Cae

Offline

#4 2012-10-26 05:16:11

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [NFS] No such file or directory on mount

closing a necrobumped thread. This info, I believe, is also available on the wiki.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB