robbrown99
Members
-
Joined
-
Last visited
Solutions
-
robbrown99's post in How to access NFS share on Linux was marked as the answerThanks @Frank1940 I just managed to get it working while you were typing this response.
It is more convoluted than I'd like, but it works. NFS is significantly faster for small file transfers (which for a photo library is what I need) than SMB. I tried both and NFS very obviously faster. Steps below.
STEP 1. In the media server software (in this case Unraid), set up the share to support NFS in both
a) the share itself: SHARES >> <SHARE NAME>add rule *(rw) , Export = Yes, Security = Private
b) under SETTINGS >> NFS >> Enable NFS = Yes, Tunable (fuse_remember): 330 (default)
STEP 2. On linux desktop client,
a) Find the name of the NFS open terminal: type the following, where the IP address is that of your media server.
showmount -e 192.168.1.109
This will then return a list of the NFS shares that have been exported, e.g.
Export list for 192.168.1.109: /mnt/user/nextcloud * /mnt/user/Rob *
b) Copy the name of the share you want to mount e.g. /mnt/user/Rob
STEP 3. Set up the NFS share to automount:
a) Open folder /etc/ , open 'fstab' in a text editor (you may have to use super user privileges to save it)
b) Enter the following into fstab at the bottom of the file taking the share path and IP address from step 2. Note the format is as following:
<yourserver IP address>:<path to the exported share you want to mount from step 2b> <path you want to mount the NFS share to e.g. /mnt/name> nfs <options> 0 0
More details on the options to set are here:
[https://linuxopsys.com/linux-nfs-mount-entry-in-fstab-with-example](https://linuxopsys.com/linux-nfs-mount-entry-in-fstab-with-example)
example:
192.168.1.109:/mnt/user/Rob /mnt/nfs/Rob nfs rw,hard,intr,nofail,timeo=14 0 0 mount /mnt/nfs/Rob
Then save the file.
c) In terminal run
systemctl daemon-reload
STEP 4: Reboot the system to ensure this mounts persistently.
Your folder should mount automatically under the path from Step 2b e.g. /mnt/nfs/Rob
Given this was a struggle, how can I go edit the Unraid user documentation to make this easier for people in the future?
-
robbrown99's post in Cannot access dashboard, but can access smb share was marked as the answerAttached.
Interestingly it now works. If it happens again I will post here. Will mark as solved for now.
bnode-diagnostics-20240825-2055.zip