NFS Setup Assistance with Synology NAS - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: iOS & tvOS (https://forum.kodi.tv/forumdisplay.php?fid=137) +---- Thread: NFS Setup Assistance with Synology NAS (/showthread.php?tid=109377) |
NFS Setup Assistance with Synology NAS - barrmy - 2011-09-04 I'm getting the following error in the logs when trying to setup LAN NFS sharing from my Synology (running DSM 3.1) to a ATV2 on the 9/3 nightly. Code: ERROR: GetDirectory - Error getting nfs://192.168.1.23/Movies/ SMB sharing works, but hiccups with a few mkvs so I wanted to test out NFS. I looked at the wiki here and I have: - shares for /Movies and /TV on the Synology - a user 501 on the Synology with access to those two shares - enabled ssh I tried to run cat /etc/exports in ssh but nothing is returned by the command In the ATV2, if I try to create a source, I can see my NAS on 192.168.1.23 but when I click through nothing happens: Code: 11:20:22 T:67420160 ERROR: GetDirectory - Error getting nfs://192.168.1.23 I'm sure I missed something, and appreciate any assistance *edit* I found NFS Privileges under Shares, which I set for: - Client * (tried 192.168.1.* as well) - Privilege: Read Only - Root Squash: No Mapping - Asynchronous: Yes (tried no as well) I can now see my two mounts...volume1/Movies and volume1/TV when I browse under NFS, but can't click past that In the logs it's showing permission denied [CODE]13:29:56 T:112070656 ERROR: NFS: Failed to mount nfs share: /volume1/Movies (mount/mnt call failed with "RPC error: Mount failed with error MNT3ERR_ACCES(13) Permission denied(13)") 13:29:56 T:110727168 ERROR: GetDirectory - Error getting nfs://192.168.1.23/volume1/Movies/ 13:29:56 T:110727168 ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.23/volume1/Movies/) failed 13:29:58 T:112070656 ERROR: NFS: Failed to mount nfs share: /volume1/Movies (mount/mnt call failed with "RPC error: Mount failed with error MNT3ERR_ACCES(13) Permission denied(13)") 13:29:58 T:110727168 ERROR: GetDirectory - Error getting nfs://192.168.1.23/volume1/Movies/ 13:29:58 T:110727168 ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.23/volume1/Movies/) failed 13:29:58 T:112070656 ERROR: NFS: Failed to mount nfs share: /volume1/Movies (mount/mnt call failed with "RPC error: Mount failed with error MNT3ERR_ACCES(13) Permission denied(13)") 13:29:58 T:110727168 ERROR: GetDirectory - Error getting nfs://192.168.1.23/volume1/Movies/ 13:29:58 T:110727168 ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.23/volume1/Movies/) failed[CODE] - Memphiz - 2011-09-04 http://wiki.xbmc.org/index.php?title=Network_Filesystem_(NFS)#NFS_sharing_from_commercial_NAS_systems_such_as_Synology_or_QNAP that is your problem ... hopefully someone who git it working could jump in here. In the future the wiki might have the needed instructions for common nas boxes. - canadave - 2011-09-05 Memphiz Wrote:http://wiki.xbmc.org/index.php?title=Network_Filesystem_(NFS)#NFS_sharing_from_commercial_NAS_systems_such_as_Synology_or_QNAP Memphiz posted the link with the proper fix. You need to have the "insecure" option enabled in /etc/exports. BTW you don't need any special "501" user or anything like that set up in the Synology. - barrmy - 2011-09-05 Memphiz, Canadave Thanks, I was able to finally get it (the settings are slightly different and I was trying too hard) So for others looking at this thread, here's a how-to 1. Login to your Synology GUI 2. Enable SSH (if not enabled already) Control Panel-->Terminal-->Enable SSH service 3. Enable NFS under Control Panel-->Win/MAC/NFS-->NFS Services-->Enable NFS 4. Under Control Panel-->Shared Folder, create a NFS Privileges entry for the folders you want to share Hostname: either specific ip address of XBMC or * Privlege: Read Only Root Squash: No Mapping 5. Exit GUI, go to a terminal and SSH into your Synology Code: ssh root@<<SYNOLOGY IP ADDRESS>> Code: DiskStation> cat /etc/exports Type vi /etc/exports [If you don't know vi, press INS[SERT], use arrows to go to the line to edit, and delete/edit the line. Then press ESC, and :x to 'save&exit'] 8. change the entries to: Code: /volume1/Movies *(ro,async,no_wdelay,no_root_squash,insecure,anonuid=0,anongid=0) 10. Enter "exportfs -ra" into console 11. You can now Browse NFS and get to your subfolders in XBMC - Memphiz - 2011-09-05 thx for your nice howto ... this will end up in the wiki then great! - canadave - 2011-09-05 Memphiz Wrote:thx for your nice howto ... this will end up in the wiki then You betcha Will try to get to this today. *** EDIT: Done! Thanks. *** - Memphiz - 2011-09-05 nice - thx canadave - activate - 2011-10-06 Guys, thanks for this, I have followed the instructions as mentioned to remove the locks using terminal. Will try browse nfs later on - Twerft - 2012-02-05 This is an old thread, but I googled around and was lead here. This thread reflects excactly what I'm trying to do right now. I'm following the steps from Memphiz' link to the xbmc wiki. But when I do step 6 - "cat /etc/exports" the response is "cat: can't open '/etc/exports': Permission denied" I've more than double checked all the previous steps to make sure everything is done properly, but I haven't found any mistakes there. Also, I'm not that familiar with linux so if there's something basic that I've missed - please do tell // Twerft - Maetrik - 2012-02-05 I guess you ssh'd in as admin? Try root instead and you should be fine. - Twerft - 2012-02-05 Quote:I guess you ssh'd in as admin? Try root instead and you should be fine. That was it. Thx. // Twerft - mclog - 2012-02-05 What kind of read speeds are you getting? My NFS speeds are horrible with the Synology NAS, about a quarter of my FTP or WebDav. - Maetrik - 2012-02-05 . - johnm109r - 2012-02-05 Hey guys just a Question Which Synology Model are most ppl using on this forum ? - civicguy - 2012-02-06 johnm109r Wrote:Hey guys just a Question Which Synology Model are most ppl using on this forum ? I am using DS1511+ |