You are not logged in.

#1 2013-12-21 19:06:45

medve540
Member
Registered: 2009-10-18
Posts: 8

mount.nfs: mount(2): Permission denied

Hi,

Could anybody tell me why I got an error when mounting this way:
sudo mount -v -t nfs 10.1.1.1:/home/geza/pub /mnt/test

and why not with this:
sudo mount -v -t nfs -o vers=3 10.1.1.1:/home/geza/pub /mnt/test


Server side: Archlinux kernel 3.12.5 with net-tools, nfs-utils
cat /etc/exports
/home/geza/pub 10.1.1.10(rw,no_subtree_check,all_squash,anonuid=1000,anongid=100,fsid=2434421862)

Client side: Cent OS 6.4 kernel 2.6.32

Offline

#2 2013-12-21 19:20:09

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

Re: mount.nfs: mount(2): Permission denied

I had a similar problem while attempting to mount on any os, except for OS X.
https://wiki.archlinux.org/index.php/NFS#File_system
For example,

# mkdir -p /srv/nfs4/music
# mount --bind /home/pawel/Music /srv/nfs4/music

And then client side

# mount -t nfs4 Server:/srv/nfs4/music /mnt/music

Binding the mount point to somewhere in /srv/nfs4 then mounting that directory seems to fix it for me.

But it is odd that forcing version 3 works

Last edited by hibajugala (2013-12-21 19:37:01)

Offline

#3 2013-12-22 13:00:07

medve540
Member
Registered: 2009-10-18
Posts: 8

Re: mount.nfs: mount(2): Permission denied

Thanks for the tip. It looks like you are right, that did the tick. :-)

But I am wondering where is the NFS root (/srv/nfs4) defined. If I could change it, it might made the mount binding step unnecessary.

Offline

Board footer

Powered by FluxBB