Hi, recently installed DietPi onto my Rasp Pi 2. All is well. Thought it would be a good little low power device to use for an Emby server. (I don’t need transcoding and I don’t server to more than 1 client at a time).
I have a Synology NAS with NFS setup. Kodi (installed on an Odroid C2) successfully accesses the NFS shares at: nfs://192.168.0.11/volume1/video/Movies
So I installed Emby, and when attempting to add source folders I obviously couldn’t reach my server.
I Installled NFS Client, however when accessing it to input my server IP (192.18.0.11) it fails to connect:
Warning: unknown mime-type for "/etc/fstab" -- using "application/octet-stream"
Error: no "edit" mailcap rules found for type "application/octet-stream"
I’m not the best with Linux commands, but willing to learn - so any pointers or links to guides would be great. Thanks.
I want the same on my C2 (well I already have it, but the Emby server is just a test one installed on my MacBook). And I also want MRMC pointing to Emby on an Apple TV 4 (the wife loves the ATV UI, the remote and the fact it has all the other services (Netflix, iTunes Movies etc.) on one box so she doesn’t have to mess about changing inputs, changing Harmony settings etc.). The ATV in the lounge and the C2 in my mancave.
Curently I just use MRMC on the ATV and LibreELEC/Kodi on the C2, and manually update watched stauses between clients by running a library update which in turn triggers a Trakt sync.
Sounds like NFS isn’t working on your Pi? Have you tried a manual install of NFS client?
Maybe, I just installed it through the “Optimized Software” GUI option.
I haven’t installed NFS Client manually. Not sure how to go about it. I’ll have a search. I’m guessing I have to uninstall the current version first?
And how are you trying to edit /etc/fstab?
Sorry was a bit burried in my original post. I log in via SSH and then run:
edit /etc/fstab
The output I get is:
“Warning: unknown mime-type for “/etc/fstab” – using “application/octet-stream”
Error: no “edit” mailcap rules found for type “application/octet-stream””
I tried searching for a solution and it appeared the problem was the lack of a text editor? I tried installing VI, but it failed and that’s when I decided to post on here for help, ha.
Also when I go into dietpi-config → 8 Network Options: NAS/Misc → NFS Client:
I enter my IP address and OK, it attempts to mount but then displays an error message very quickly. I can only catch something like “mount error 13”. But there is more text that disappears too quickly.
Thanks for letting us know. I don’t know much about NFS, but maybe the path to /volume1/video is needed due to NFS permissions restricted to that? Not sure about the other fstab options, but will check out. Maybe we can tweak these a bid and/or do some better checks for debugging within NFS mount attempts.
but maybe the path to /volume1/video is needed due to NFS permissions restricted to that?
It’s possible. I’d have to check.
Maybe we can tweak these a bid and/or do some better checks for debugging within NFS mount attempts.
Yeah would help no doubt. I think the main pain points were:
NFS Client defaults to nsf4 without any indication - maybe some sort of option/checkbox to enable disable nfs4 over nfs.
There’s a message with an error code that flashes up very very quickly when attempting to mount via NFS Client. I’m sure there’s a way of obtaining it, but I don’t know how. Maybe allowing that error to persist until a keypress would be useful.
Btw. Network drive mounting with v6.10 is fully integrated into dietpi-drive_manager, which got some huge rework with v6.10 (release yesterday). Would be great to check, if this now works or the error stays the same.
So… I get home from work and my Emby server had fully synced up and downloaded all metadata etc. Odroid with LibreElec and my Apple TV with MRMC can access it. All good.
I’d installed DietPi on my backup/test mSD card. So I thought I’d install it on my faster, larger mSD to squeeze out more performance. Install goes well.
First issue:
dietpi-config -> 8 Network Options: NAS/Misc
No longer exists. I can’t find any NAS/nfs options. I’m glad you mentioned it’s been reworked I thought I was going mad. I guess more tinkering now to find the new locations for nfs options.
root@DietPi:~# mount -t nfs -o port=2049 192.168.0.11:/volume1/video /mnt/nfs
mount.nfs: mount point /mnt/nfs does not exist
root@DietPi:~# sudo mkdir -p /mnt/nfs
root@DietPi:~# mount -t nfs -o port=2049 192.168.0.11:/volume1/video /mnt/nfs
mount.nfs: Protocol not supported
root@DietPi:~#
Ok fixed it. Enabled NFSv4 support on my Synology (not sure what the repercussions are). All existing NFS access remains fine though and now the new dietpi-drive_manager wizard successfully mounts as expected. Can browse to /mnt/nfs/ and see my shares.
Quizzer
So finally it showed “protocol unsupported” messages when using mount -t nfs4 as well as with mount -t nfs?
And when enabling nfs4 support on NAS, both commands work?