Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4421

Checking why an NFS mount gives an error

$
0
0

I'm asking on behalf of a friend's son who is at college in India, so apologies if what I ask doesn't have enough information. He is using WSL2 on Windows 11 and has Ubuntu 22.04.3 LTS installed.

His prof has given these instructions for mounting an NFS share needed for the course:

sudo apt-get install nfs-commoncd /sudo mkdir toolssudo mount -t nfs 10.0.17.82:/tools /tools

The first three commands work fine but the mount fails. I got him to add a -v flag and the output is:

minor@Tejas:~$ sudo mkdir /tools[sudo] password for minor:minor@Tejas:~$ ls /toolsminor@Tejas:~$ sudo mount -v -t nfs 10.0.17.82:/tools /toolsmount.nfs: timeout set for Sun Sep  8 15:10:40 2024mount.nfs: trying text-based options 'vers=4.2,addr=10.0.17.82,clientaddr=172.29.144.144'mount.nfs: mount(2): Invalid argumentmount.nfs: trying text-based options 'vers=4,minorversion=1,addr=10.0.17.82,clientaddr=172.29.144.144'mount.nfs: mount(2): Operation not permittedmount.nfs: trying text-based options 'addr=10.0.17.82'mount.nfs: prog 100003, trying vers=3, prot=6mount.nfs: trying 10.0.17.82 prog 100003 vers 3 prot TCP port 2049mount.nfs: prog 100005, trying vers=3, prot=17mount.nfs: trying 10.0.17.82 prog 100005 vers 3 prot UDP port 20048mount.nfs: mount(2): Permission deniedmount.nfs: Operation not permittedminor@Tejas:~$

I asked him to use showmount and the result was:

minor@Tejas:~$ showmount -e 10.0.17.82Export list for 10.0.17.82:/ *

I can't see a /tools export in the list, but then I don't know if I should be able to see it. It's entirely possible his prof has not configured the server properly.

Anyhow can anyone suggest what is wrong, or further steps to check what the problem is?


Viewing all articles
Browse latest Browse all 4421

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>