I have a RasberryPi 4b running rasbian, (not my first Rpi and have had many other linux machines). My NAS is a D’Link 320L which i’ve been using for some time for plex via windows laptop but wanted to leave a raspberry pi on for streaming plex rather than needing my laptop on.
I’ve followed all instuctions i can find on this site from ChuckPa with the tips on how to mount and have tried with both CIFS & NFS as the NAS has settings for both. have tried altering fstab in as many possible ways i can think of but i either get connection refused or host is down when try to mount. I can access it through the GUI but that’s no good for plex to read it.
the address is given by my NAS when click on the nfs settings, typically accessed through the following address which i’ve also tried.
192.168.1.84:/volume_2/Movies /nas/Movies nfs auto,default,nofail 0 0
On Synology, I know they require the full path for mounting the share (which is non-standard. QNAP does it correctly.
Are you required to mount /mnt/HD/HD_b2/Movies or /Movies ?
e.g. As a command line mount test: mount 192.168.1.84:/Movies /mnt
If you have an automounter which can get it mount | grep nfs will let you see the paths and options. I find that’s a quick way to get the info for preparing fstab
Don’t know how needs to be mounted, guess its why im struggling but have tried it in every possible way
the HDD in my nas is at Volume_2, Movies is a folder in it. When using the nas web GUI and click the NFS icon it sates ‘real path: /mnt/HD/HD_b2’
the folder i created on my server computer are /nas/Movies (also another folder for tvshows but trying to get one working first).
Thank you so much for your help, i’m making lots of progress now. using the following was able to mount it and all the files are now adding into plex. I did however break the system with what i thought was correct for fstab and have to follow some guides online to get it back after a restart.
sudo mount -t nfs 192.168.1.84:/mnt/HD/HD_b2 /nas
Could you advise on the correct entry into fstab so that i don’t have to manually mount each time?
defaults – Assume defaults for anything not specified
auto – automatically mount at boot
nofail – don’t fail system startup if the mount can’t complete in time (NAS offline)
bg – If the mount does fail, push to the background and let it complete there.
Thanks, mounting works fine but for some reason doesnt mount after reboot still. I can survive with mounting each time though as it’ll stay on most the time. Thanks
Then you’re having the same problem I do, which everyone else does now.
Ubuntu is super aggressive when mounting.
They are so aggressive that the adapter isn’t ready. ( network-online.targ is meaningless)
It’s a known problem. They don’t seen to want to / or are capable of fixing.
The work around
[chuck@lizum system.504]$ cat chuck-nfs.service
# Chuck's fix for broken Ubuntu NFS mounts
[Unit]
Description=Mount NFS partitions after system boot
After=network-online.target
[Install]
WantedBy=multi-user.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'sleep 15 ; mount -a ; exit 0'
User=root
Group=root
[chuck@lizum system.505]$