You are not logged in.
I've got an NFS share on a FreeBSD server which I mount via fstab.
It mounts automatically at boot and everything is fine.
However, if I unmount it and try to mount it again I get:
mount.nfs: Operation not permitted
I have tried vers=3 and nfsvers=3 in fstab, but to no avail.
rpcbind is allowed in /etc/hosts.allow.
Does anyone have any ideas?
fstab entry:
server:/path/to/files /mnt/files nfs ro,hard,intr,nfsvers=3 0 0
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
What error are you getting exactly? It looks like you are trying to mount it not as root.
![]()
Offline
This is the output of mount.nfs -v as root. As I say it mounts automatically at boot up.
mount.nfs: timeout set for Thu Mar 4 06:23:05 2010
mount.nfs: trying text-based options 'vers=4,addr=192.168.0.5,clientaddr=192.168.0.2'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'addr=192.168.0.5'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.5 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: portmap query failed: RPC: Unable to send - Operation not permitted
mount.nfs: Operation not permittedAll men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Let me have a look at my FreeBSD NFS config when I get home.
![]()
Offline
Just in case I wasn't clear. The share is on FreeBSD and I am mounting it on Arch. So, the errors at at the Arch end.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Ok well since you obviously have the entry in fstab, what happens if you {re}start the netfs daemon?
Whenever I have to manually mount NFS I use the netfs daemon rather than using the mount command directly.
![]()
Offline
It's really strange as restarting the daemon produces exactly the same error. But when the daemon starts at boot it mounts the remote share. I'm lost. Port 2049 is allowed on the client firewall and iptables.log doesn't show anything being blocked.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Tagging along, I have the same problem, although I have a different setup:
- Server = Arch linux
- Client1 = Debian Testing linux
- Client2 = Arch linux
On client1, I'm unable to mount all NFS-shares. 2 out of 3 mount ok and the third fails with this error (both through fstab and manually):
# mount -a
mount.nfs4: access denied by server while mounting (null)
On Client2 I'm able to connect automatically and manually to all shares.
Maybe it is Debian-related, but the debian user forums have not been of much help...
THX for any input!
Last edited by zenlord (2010-03-04 12:07:04)
Offline