Unable to Mount NFS Share on Linux Laptop in Same Network via WiFi or LAN


Arotex

Recommended Posts

Hello,

I'm encountering an issue while attempting to mount an NFS share on my Linux laptop. Here's the scenario:

+ Successful mounting occurs when using WireGuard or a direct connection between the server and laptop.

- However, when within the same network but connected via WiFi or LAN, the mount fails to proceed.

 

I'm seeking assistance to resolve this issue.

Thank you.

Link to comment

I tried it with the following methodes:

- fstab entry (SERVER_IP:/mnt/user/SHARE_NAME        /mnt/nfs/SHARE_NAME        nfs4    defaults,user,exec,auto,nofail    0    0) and the mount -a or mount -va command 

i played already around with the parameters i tried just nfs   or just default or auto etc everything didnt work.

- sudo mount -v SERVER_IP:/mnt/user/SHARE_NAME /mnt/nfs/SHARE_NAME

 

both commands failed and replayed : mount.nfs: timeout set for Sun Mar 24 16:01:46 2024
mount.nfs: trying text-based options 'vers=4.2,addr=SERVER_IP,clientaddr=CLIENT_IP'

 

But when I connected via Wireguard both commands work. 

Or I plug in an LAN-cable directly into Server and Laptop

Link to comment

I tried to find something in the logs

I found the following in the syslog when i use nfs4 in fstab and mount -va

Mar 30 09:01:03 [PC_NAME] mount[978]: mount.nfs4: Network is unreachable
Mar 30 09:01:03 [PC_NAME] mount[983]: mount.nfs4: Network is unreachable
Mar 30 09:01:03 [PC_NAME] mount[973]: mount.nfs4: Network is unreachable
Mar 30 09:01:03 [PC_NAME] systemd[1]: mnt-nfs-[SHARE_NAME].mount: Mount process exited, code=exited, status=32/n/a
Mar 30 09:01:03 [PC_NAME] systemd[1]: mnt-nfs-[SHARE_NAME].mount: Failed with result 'exit-code'.
Mar 30 09:01:03 [PC_NAME] mount[989]: mount.nfs4: Network is unreachable
Mar 30 09:01:03 [PC_NAME] systemd[1]: Failed to mount /mnt/nfs/[SHARE_NAME].

I get this following terminal output when i use just nfs in fstab

mount.nfs: trying text-based options 'timeo=50,noresvport,nolock,vers=4.2,addr=[SERVER_IP],clientaddr=[CLIENT_IP]'
mount.nfs: mount(2): Operation not permitted
mount.nfs: trying text-based options 'timeo=50,noresvport,nolock,addr=[SERVER_IP]'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying [SERVER_IP] prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying [SERVER_IP] prog 100005 vers 3 prot UDP port 57862
mount.nfs: mount(2): Permission denied
mount.nfs: Operation not permitted

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.