TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: PAUL LEE
from: THE NATURAL PHILOSOPHER
date: 2020-12-25 09:50:00
subject: Re: OpenMediaVault NAS on

On 23/12/2020 23:48, paul lee wrote:
> When I add the NFS line in fstab and try to mount the NFS, I get 'mount.nfs
> failed to prepare: Mount operation not permitted.'. It won't mound the dang
NFS
> share. I'm on OMV 5 and the nfs-utils is the newest version. I did see some
> info on google about nfs-utils needing to be an older version, but I haven't
> went down that rabbit hole yet, thinking that doesn't sound right.
>
> Any ideas??? Hmph. Again, I know I'm doing everything correctly - like syntax
> and all - because on my BBS Pi machine the NFS mounts thru fstab just fine.

Two issues I have come across.

One is that all actions need root permissions.

The second is that you need top pay attention to the exports file

This is a sample that works for me on my local network
/etc/exports
/var/www  *(rw,sync,no_root_squash,no_subtree_check)

remember to ruin as root exportfs after changes.


On a wide area network where I am accessing a virtual private server via
NAT, I needed to modify things a little as the  router used an
'insecure' - high number port to access the server.

/var/xxx.co.uk  *(rw,sync,no_root_squash,no_subtree_check,insecure)

I am not sure that either of those is your problem, however.

Another problem may be incompatible versions. You can force a given
version of nfs using extra fields in fstab or mount. Check to see if
nfsvers=3 works for example or nfsvers=2 or nfsvers=4. If using mount use
-o nfsvers=4
etc.


I know that my older nfs clinet here doesn't default to version 4, but
my newer server does!

Finally, is there anything wrong permissions wise with where you are
trying to mount?

You can check what is being exported on the server from the client using
showmount --exports 

This may not work on incompatible versions


That's all I can think of right now.










--
"It is an established fact to 97% confidence limits that left wing
conspirators see right wing conspiracies everywhere"

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.