You are not logged in.

#1 2013-11-29 01:52:55

hibajugala
Member
Registered: 2013-01-12
Posts: 35

[SOLVED] Can mount nfs from mac but not from linux

I run an nfs server through my localnet but can only connect to it from several Mac devices.
When I try to mount nfs from any linux distro, I get:

mount.nfs4: access denied by server while mounting 192.168.1.141:/home/pawel/Videos

This is my /etc/exports:

# /etc/exports
#
# List of directories exported to NFS clients.  See exports(5).
# Use exportfs -arv to reread.
#
# Example for NFSv2 and NFSv3:
#  /srv/home       hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
#  /srv/nfs4       hostname1(rw,sync,fsid=0)
#  /srv/nfs4/home   hostname1(rw,sync,nohide)
# Using Kerberos and integrity checking:
#  /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt)
#  /srv/nfs4/home   gss/krb5i(rw,sync,nohide)
#
/home/pawel/Videos      192.168.1.1/255.255.255.0(ro,insecure,no_subtree_check)
/home/pawel/Projects    192.168.1.1/255.255.255.0(ro,insecure,no_subtree_check)
/home/pawel/Music       192.168.1.1/255.255.255.0(ro,insecure,no_subtree_check)
/home/pawel/Downloads   192.168.1.1/255.255.255.0(ro,insecure,no_subtree_check)
/home/pawel/Public      192.168.1.1/255.255.255.0(ro,insecure)

I have tried to mount from ubuntu,arch, and gentoo and I receive the same error everytime.
But it still works from OS X.

Last edited by hibajugala (2013-11-29 18:08:42)

Offline

#2 2013-11-29 02:19:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,700
Website

Re: [SOLVED] Can mount nfs from mac but not from linux

Did you read the NFS wiki page?  Works for me.

Last edited by graysky (2013-11-29 09:52:30)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2013-11-29 04:27:20

hibajugala
Member
Registered: 2013-01-12
Posts: 35

Re: [SOLVED] Can mount nfs from mac but not from linux

I fixed it by using

 mount --bind /home/pawel/Videos /srv/nfs4/Videos 

and mounting the srv directory rather than the home. Thanks

Offline

#4 2013-11-29 09:52:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,700
Website

Re: [SOLVED] Can mount nfs from mac but not from linux

Cool, you should probably mark your thread as solved.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB