What's new

Please help: Can't browse NFS share on AC86U using Kodi

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

lifeisfun

Regular Contributor
Can someone please help me properly configure NFS share on USB drive plugged in to AC86U?
When I browse NFC shares using Kodi I can see my WD network disk but not the ASUS router.
If I type it in manually nfs://192.168.1.1/ it will show the pre-configured folder mnt/KINGSTON/Download2 but it will not open it.
I can browse the same folder using SMB but I'm unable to stream files that way since it's choppy using the AndroidTV box. I can stream them from the WD drive no problem.

My preconfigured path in the Merlin setting is /mnt/KINGSTON/Download2 and Access list set to All *

Any help would be appreciated.
 
Also double check the nfs version used on both ends. The router does not support NFSv4 for instance.
 
Look for NFS errors in the router's syslog when the client tries to connect.
This is when I set up the media path location to nfs://192.168.1.1

Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54058
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54074
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54082
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54090
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54098
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54106
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54114
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54122
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54130
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54138
Nov 24 15:45:06 mountd[24807]: refused mount request from 192.168.1.149 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON): illegal port 54146

If I specify the folder like this
nfs://192.168.1.1/mnt/KINGSTON it will tell me that it can't connect
 
According to google you need to add "insecure" to your NFS options.

P.S. You might also want to change rw to ro depending on your needs:

ro,sync,insecure
 
Unfortunately still no go, but possibly step further :)
Does this mean that I need to change the format of the 128GB USB drive?
If so, what file system ?

Nov 24 16:18:26 mountd[5379]: authenticated mount request from 192.168.1.126:33052 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON)
Nov 24 16:18:26 mountd[5379]: Cannot export /tmp/mnt/KINGSTON, possibly unsupported filesystem or fsid= required
 
Last edited:
Is there something unusual about your setup? Are you trying to share across subnets? What format is your USB drive?

You could just try giving it some random fsid and see if that satisfies it:

ro,sync,insecure,fsid=1234
 
Last edited:
Is there something unusual about your setup? Are you trying to share across subnets? What format is your USB drive?

You could just try giving it some random fsid and see if that satisfies it:

ro,sync,insecure,fsid=1234
No, all on the same subnet
The fsid=1234 didn't help, same result as before
Nov 24 19:28:46 mountd[13862]: authenticated mount request from 192.168.1.149:35676 for /tmp/mnt/KINGSTON (/tmp/mnt/KINGSTON)
Nov 24 19:28:46 mountd[13862]: Cannot export /tmp/mnt/KINGSTON, possibly unsupported filesystem or fsid= required

The DT100G#/128GB drive was pre-formatted exFAT I believe
 
Well I can't reproduce the problem and have run out of ideas. Everything I try with the limited devices I have works.

AFAIK the router doesn't support exFAT. It might be interesting to SSH into the router and issue the following commands:
Code:
# mount
# df -h
# blkid

You could try reformatting the drive as ext4 and see if that makes a difference. You could also try inserting another USB device and seeing if you can access that instead.
 
I'm assuming that you can access the contents of the USB drive through the router by other means successfully (e.g. Samba or via SSH)?
Yes, I can access it using all computers and phones on the network fine, including the same AndroidTV box using Samba. My only problem is that in KODI I'm unable to stream files. Thought using NFS could be better.
 
Well I can't reproduce the problem and have run out of ideas. Everything I try with the limited devices I have works.

AFAIK the router doesn't support exFAT. It might be interesting to SSH into the router and issue the following commands:
Code:
# mount
# df -h
# blkid

You could try reformatting the drive as ext4 and see if that makes a difference. You could also try inserting another USB device and seeing if you can access that instead.


I did SSH into the router and issued those commands.
Nothing happened ...that I noticed :)
Will try different drive tomorrow

Thanks for your time!
 
Nothing happened ...that I noticed :)
What do you mean, nothing happened? :confused: Even without any USB devices attached the first two commands will produce output.

You didn't type the leading "#" did you? That's just the command line prompt.
 
What do you mean, nothing happened? :confused: Even without any USB devices attached the first two commands will produce output.

You didn't type the leading "#" did you? That's just the command line prompt.

Yes I did, stupid me me :rolleyes: Sorry


admin@ASUSMerlin:/tmp/home/root# mount
ubi:rootfs_ubifs on / type ubifs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=220096k,nr_inodes=55024,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /var type tmpfs (rw,noexec,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mtd:bootfs on /bootfs type jffs2 (ro,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
mtd:data on /data type jffs2 (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/mtdblock8 on /jffs type jffs2 (rw,noatime)
/dev/sda1 on /tmp/mnt/KINGSTON type tfat (rw,nodev,relatime,uid=0,gid=0,umask=0000,allow_utime=0022,codepage=437,iocharset=utf8,shortname=winnt,min_prealloc_size=64k,max_prealloc_size=120914112,writeback_boundary=4M,readahead=1M,nocache,fail_safe,hidden=show,errors=continue)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
admin@ASUSMerlin:/tmp/home/root# df -h
Filesystem Size Used Available Use% Mounted on
ubi:rootfs_ubifs 77.2M 63.5M 13.6M 82% /
devtmpfs 214.9M 0 214.9M 0% /dev
tmpfs 215.0M 812.0K 214.3M 0% /var
mtd:bootfs 4.4M 3.3M 1.1M 75% /bootfs
mtd:data 8.0M 548.0K 7.5M 7% /data
tmpfs 215.0M 2.1M 212.9M 1% /tmp
/dev/mtdblock8 48.0M 3.9M 44.1M 8% /jffs
/dev/sda1 115.3G 2.5G 112.8G 2% /tmp/mnt/KINGSTON
admin@ASUSMerlin:/tmp/home/root# blkid
/dev/sda1: LABEL="KINGSTON" UUID="758A-C07A"
admin@ASUSMerlin:/tmp/home/root#



There is 3 options in the interface to format the drive again NTFS FAT and HFS no EXT4 available
 
I seem to have a similar problem (or I am just doing everything wrong :oops:).
I am trying to get Kodi to connect to my NFS export with various unsuccessful results.
I have a USB-NAS connected to the router. My movies are located on the USB-NAS under /mnt/sda1/Files/Media/Videos.

When I use NFS Export in WebUI I can share the first folder on my USB-NAS. In this case I choose:
/sda1/Files
Leave Access List emtpy
Set Options to ro,sync,insecure

With these settings Kodi can connect and open the NFS share. However Kodi will only perform a scan of about 15 % of the movies within the folder /sda1/Files.
The movies are further sorted in folders by categories, whereas the first folder is named Action. For some reason Kodi will scan the movies in this folder, and the perform no further scanning of movies. During a few tries, Kodi managed to scan one movie more which was located in the folder Adventure.

Since I have other folders located in under /sda1/Files, such as lots of photos, perhaps this is messing things up. Unfortunately, in the WebUI, it is not possible to NFS export /sda1/Files/Media/Videos.

So I tried using the /jffs/configs/exports.add instead by adding the following as well as making the file executable.
Code:
/mnt/sda1/Files/Media/Vides/ *(ro,sync,insecure)
With these setting, Kodi can then connect the NFS share, but is unable to open it.
The logs says refused mount request from 192.168.50.18 for /tmp/mnt/sda1/Files/Media/Videos due to different illegal ports that show up in the logs. This looks similar to the logs posted under #7 in this thread.

If I try the following in the /jffs/configs/exports.add , Kodi will be able to connect and open the share but will not perform any scanning of movies.
Code:
/mnt/sda1/Files/ *(ro,sync,insecure)

I have no issues with Kodi when using smb to scan for movies. However, I would really like to use NFS instead of smb.
Does anyone have any suggestions?
 
Hmm. No one... :oops:

Anyway, I found out that I could use FTP instead which is faster than smb (at least for me). If no one know what is the issue with NFS, the FTP is sufficient and allows for the Raspberry Pi with the Kodi Media center to be a portable streaming device :).
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top