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-common
cd /
sudo mkdir tools
sudo 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 /tools
minor@Tejas:~$ sudo mount -v -t nfs 10.0.17.82:/tools /tools
mount.nfs: timeout set for Sun Sep 8 15:10:40 2024
mount.nfs: trying text-based options 'vers=4.2,addr=10.0.17.82,clientaddr=172.29.144.144'
mount.nfs: mount(2): Invalid argument
mount.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 permitted
mount.nfs: trying text-based options 'addr=10.0.17.82'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.0.17.82 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 10.0.17.82 prog 100005 vers 3 prot UDP port 20048
mount.nfs: mount(2): Permission denied
mount.nfs: Operation not permitted
minor@Tejas:~$
I asked him to use showmount
and the result was:
minor@Tejas:~$ showmount -e 10.0.17.82
Export 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?