Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Solved KODI not mounting NFS folder
#1
Hello,
I'm struggling with my synology DS218j trying to read my movies on a XBOX ONE S by NFS.

For some reason, it worked perfectly in a first time.
Then I did stuff on my synology and it doesn't work anymore. In fact I see my NAS, I see the folders I gave the authorization to but I can't see the files inside.
I tried desabling the firewall but it's still the same.
I also tried via my smartphone --> same

Do you have any idea where does it come from and how can I handle it?

Thanks
Reply
#2
It could be in the /etc/exports settings that are probably generated by the Synology's GUI.
You could start a SSH session and log into your NAS, and see what is currently used in the exports file.
Reply
#3
Thanks for the answer.
I have no idea how to do it. I managed to start a SSH session and log into my NAS but don't know what to do next.
Complete newbie, sorry.
Reply
#4
cat /etc/exports  Type that into your SSH window and press return.  It will print the contents of the exports file to your screen.
Learning Linux the hard way !!
Reply
#5
(2020-01-29, 01:42)black_eagle Wrote: cat /etc/exports

Here it is: https://paste.kodi.tv/ufozegexeq
Reply
#6
/volume1/test\040videos *(rw,async,no_wdelay,crossmnt,insecure,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)
I don't understand the backslash in the folder path...
Also insecure and insecure_locks together? Must be something new.

/volume1/video *(ro,async,no_wdelay,crossmnt,insecure,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)
This must be the original one that still works?
Reply
#7
When you set up the NFS permissions, you need to map the files and folders to root or whatever your admin user is called (the squash entry on the parameters in the NFS permissions page) otherwise there's no permission for the files/folders to be visible and so they're not.

I had this issue initially on my 1019+ and setting the mapping fixed it.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#8
(2020-01-29, 11:04)Klojum Wrote: /volume1/test\040videos *(rw,async,no_wdelay,crossmnt,insecure,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)
I don't understand the backslash in the folder path...
Also insecure and insecure_locks together? Must be something new.

/volume1/video *(ro,async,no_wdelay,crossmnt,insecure,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)
This must be the original one that still works?
I did 2 folders.
The original one is called "video". It worked at the beginning but now I can only see it but can't see the files inside.
Then I did a "test video" folder (not "test") that I can see but, as the "video", can't see the files inside

I have no idea where this backslash is coming from.
Reply
#9
I prefer not to use spaces in folders or paths. The \040 must be Synology's translation of a space.

You could try editing the /etc/exports file (I assume Synology has 'nano' onboard as an editor), and then remove the 'insecure' parameter.
First create a backup of the exports file first: cp /etc/exports /etc/exports_bkp , or some other backup filename.

Then CTRL-S to save (or CTRL-O and confirm by Yes), and CTRL-X to exit.
Then restart the NFS server, or the whole NAS.
Reply
#10
(2020-01-29, 11:07)DarrenHill Wrote: When you set up the NFS permissions, you need to map the files and folders to root or whatever your admin user is called (the squash entry on the parameters in the NFS permissions page) otherwise there's no permission for the files/folders to be visible and so they're not.

I had this issue initially on my 1019+ and setting the mapping fixed it.

I don't have access to my NAS yet but my folders are set this way:
Hostname or IP: *
Privilege: read only or read/write
squash: Map all users to admin
Security: sys

I'll try to change the squash entry to "Map root to admin" when back home.
Reply
#11
(2020-01-29, 11:22)Klojum Wrote: I prefer not to use spaces in folders or paths. The \040 must be Synology's translation of a space.

You could try editing the /etc/exports file (I assume Synology has 'nano' onboard as an editor), and then remove the 'insecure' parameter.
First create a backup of the exports file first: cp /etc/exports /etc/exports_bkp , or some other backup filename.

Then CTRL-S to save (or CTRL-O and confirm by Yes), and CTRL-X to exit.
Then restart the NFS server, or the whole NAS.
OK.
Dumb question to be sure I understood well:
I only have to remove 'insecure' to get this
/volume1/test\040videos *(rw,async,no_wdelay,crossmnt,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)

/volume1/video *(ro,async,no_wdelay,crossmnt,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)

Then I save and restart?

I'll first try DarrenHill's answer, then yours and let you know.

Thanks a lot
Reply
#12
(2020-01-29, 11:25)lecriquet Wrote: I don't have access to my NAS yet but my folders are set this way:
Hostname or IP: *
Privilege: read only or read/write
squash: Map all users to admin
Security: sys

I'll try to change the squash entry to "Map root to admin" when back home.

Your current entry is almost the same as mine - sorry I was doing it from memory and misremembered a bit. My only difference is I use an explicit IP address range rather than * but the priv/squash/security settings are the same.

So it's not that, although before I set up my squash I only saw the root folder and no content. Just to sanity check, does your admin account have access to the media?
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#13
@DarrenHill : Yes my admin acount has access to the media
Reply
#14
IT WOOORKS!!!

I only changed squash to 'map root to admin' and it now works like a charm.

Thank you all for your time and help Wink
Reply
#15
@lecriquet - you're welcome. Sounds like you hit the same glitch that I did after all Smile

Thread marked solved.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply

Logout Mark Read Team Forum Stats Members Help
KODI not mounting NFS folder0