I am using the latest version of EndeavourOS and I try to connect to my FreeNAS / TrueNAS using NFS. I am a Debian / RedHat user trying out somethings else
showmount -e 192.168.192.2
Export list for 192.168.192.2:
/mnt/pool2/dataset2/myname-storage2 (everyone)
/mnt/pool1/dataset1/myname-storage1 (everyone)
sudo mount -t nfs -o vers=4 192.168.192.2:/mnt/pool1/dataset1/myname-storage1 /home/myname
/storage1
[sudo] wachtwoord voor myname:
mount.nfs: Protocol not supported
I installed NFSutils but no luck.
Any idea?
manuel
August 25, 2021, 8:54am
2
Welcome to the forum!
What happens if you drop the version option? It should automatically negotiate the proper version.
See: man nfs
1 Like
sudo mount -t nfs -o nfsvers=3 192.168.192.2:/mnt/pool1/dataset1/myname-storage1 /home/myname/storage1
Created symlink /run/systemd/system/remote-fs.target.wants/rpc-statd.service → /usr/lib/systemd/system/rpc-statd.service.
Yes that does it. THX
daab
August 26, 2021, 7:42am
4
Curious, works for me without that linkage
[xxxxx@ryzen7 ~]$ sudo mount -t nfs raspberrypi2:/export/users /mnt
[sudo] password for xxxx:
[xxxxxx@ryzen7 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
dev 7.8G 0 7.8G 0% /dev
run 7.9G 1.7M 7.9G 1% /run
/dev/nvme0n1p3 99G 65G 29G 70% /
tmpfs 7.9G 166M 7.7G 3% /dev/shm
tmpfs 7.9G 27M 7.8G 1% /tmp
/dev/nvme0n1p1 511M 8.1M 503M 2% /boot/efi
/dev/nvme0n1p2 500G 269G 229G 55% /exthome
/dev/sda1 932G 819G 110G 89% /media/Music
tmpfs 1.6G 60K 1.6G 1% /run/user/1000
raspberrypi2:/export/users 6.9G 3.5G 3.1G 54% /mnt
[xxxxx@ryzen7 ~]$ ls /run/systemd/system/remote-fs.target.wants
ls: cannot access '/run/systemd/system/remote-fs.target.wants': No such file or directory
BTW, I use autofs
to avoid the sudo shenanigans
[xxxxx@ryzen7 ~]$ cd /net/raspberrypi2
[xxxxx@ryzen7 raspberrypi2]$ cd export/
media/ music/ users/
[xxxxx@ryzen7 raspberrypi2]$ cd export/media
[xxxxx@ryzen7 media]$ df -h
Filesystem Size Used Avail Use% Mounted on
dev 7.8G 0 7.8G 0% /dev
run 7.9G 1.7M 7.9G 1% /run
/dev/nvme0n1p3 99G 65G 29G 70% /
tmpfs 7.9G 165M 7.7G 3% /dev/shm
tmpfs 7.9G 27M 7.8G 1% /tmp
/dev/nvme0n1p1 511M 8.1M 503M 2% /boot/efi
/dev/nvme0n1p2 500G 269G 229G 55% /exthome
/dev/sda1 932G 819G 110G 89% /media/Music
tmpfs 1.6G 64K 1.6G 1% /run/user/1000
raspberrypi2:/export/users 6.9G 3.5G 3.1G 54% /mnt
raspberrypi2:/export 6.9G 3.5G 3.1G 54% /net/raspberrypi2/export
raspberrypi2:/export/media 6.9G 3.5G 3.1G 54% /net/raspberrypi2/export/media
For this to work seamlessly in terms of permissions, I ensure that user ids
on all my machines are the same.
plato2021:
vers=4
Maybe this version option (like below in blockquote) can be left out and than it will automatically find the right version?
vers=4