I have a raspberry pi server running: Urbackup, Deluge, Plex and acts as a network server with samba.
Now that I more or less only use linux (still have a windows that I start like once a month), I was thinking of changing the samba share into a share where I have access like it was a hd mounted in Manjaro, so NFS seems to be the solution.
I have another sbc with Armbian as a test server so I set up an NFS server on that.
The tutorials for rpi:s don’t mention the binding and symlinking like mentioned in this root tip so that is my first question.
I see it is also the method on the arch wiki, but I cant really understand why?
The tutorial I followed, got me to do this (I changed to no_root_squash
and removed the anonuid
and anongid
. I figured that out by reading this)
Also: Man page
I set up this on the OrangePi to test:
/etc/exports
/media/share 192.168.1.10(rw,no_root_squash,insecure,async,no_subtree_check)
Then:
sudo exportfs -ra
On debian it seems that the systemd services start after installation, so no need for anything else.
I mounted it on my Manjaro with:
sudo mount -t nfs 192.168.1.30:/media/share /media/share
In the future this will be handled by a systemd.automount
It seems to work as intended, It acts like the share would be an ext4 partition mounted on my computer, I can chown
and it denies me access if I don’t sudo a file owned by root (assuming the uid
:s and gid
:s are the same on Manjaro and the server, witch they are).
But again, is this ok? I will do this directly on the same directory as my samba server is sharing now, without symlinks or anything, what is the downside?
Now I also want to do this the other way around, a server on my Manjaro accessed by 3 smb:s using NFS the same way.
So same question again, do I now HAVE to do the binding and symlinking thing as in the manjaro root tip or can I do the same method but changing /etc/exports
to either accept the full network range 192.168.1.0/24 or adding 3 different ip numbers?
Would the crossmnt
option come into play?
I tried to explain without too much text covering all I think i necessary.
Thank you in advance.