NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it.

I understand

Welcome, Guest
Username: Password: Remember me

TOPIC: NFS Share

NFS Share 5 years 9 months ago #1

  • BigChris
  • BigChris's Avatar
Hi,

I try to use my NFS Shares on a Linux (Ubuntu) Server. I use openelec with pvr and Eden Beta2, so there is no netshare.conf.

First, I try to make a netshare.conf - but it don't work.

Then, I try to use NFS Shares native from XBMC, but I can't access my shares. The /etc/exports should be right, cause I use the shares on my other machines.

After that, I try to edit my autostart.sh in this way, to send a magicpaket and mount my nfs share.
#
#Ab hier ist alles für das Magicpaket
#
exec /usr/bin/python -x "$0" "$@"

# Wake-On-LAN
#
# Copyright (C) 2002 by Micro Systems Marc Balmer
# Written by Marc Balmer, marc@msys.ch, http://www.msys.ch/
# This code is free software under the GPL

import struct, socket, time

def WakeOnLan(ethernet_address):

  # Construct a six-byte hardware address hw_addr = struct.pack('BBBBBB', int(addr_byte[0], 16),
    int(addr_byte[1], 16),
    int(addr_byte[2], 16),
    int(addr_byte[3], 16),
    int(addr_byte[4], 16),
    int(addr_byte[5], 16))

  # Build the Wake-On-LAN "Magic Packet"...

  msg = '\xff' * 6 + hw_addr * 16

  # ...and send it to the broadcast address using UDP
  time.sleep(2)
  s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
  s.sendto(msg, ('<broadcast>', 9))
  s.close()
# Example use
WakeOnLan('6C:62:6D:D6:C3:94')
#
#Ab hier ist alles für die NFS-Freigaben
#
#! /bin/sh
 (sleep 30; \
 mount -t nfs 192.168.178.30:/mnt/privat/musik ~/music -o
timeo=600,nolock
 \
 )&


But this do nothing too.

What can I do to use my NFS-Shares?
The administrator has disabled public write access.

Re: NFS Share 5 years 9 months ago #2

  • aido
  • aido's Avatar
  • Offline
  • Junior Boarder
  • Posts: 55
  • Thank you received: 9
  • Karma: 4
BigChris wrote:
What can I do to use my NFS-Shares?
You can now access NFS shares directly from within XBMC. Just select Add Source and then you will be able to browse for NFS shares.
The administrator has disabled public write access.

Re: NFS Share 5 years 9 months ago #3

  • BigChris
  • BigChris's Avatar
No I can't. If I try this, I can browse to my Share i.e. 192.168.178.30/mnt/music but if i hit enter nothing happened.
The administrator has disabled public write access.

Re: NFS Share 5 years 9 months ago #4

  • Jean-Max
  • Jean-Max's Avatar
  • Offline
  • Expert Boarder
  • Posts: 329
  • Thank you received: 7
  • Karma: 1
BigChris wrote:
... I can browse to my Share i.e. 192.168.178.30/mnt/music but if i hit enter nothing happened.
Perhaps my own experience can help you ?
openelec.tv/forum/76-network-filesystems/11391-netmountconf-is-ditched-in-new-eden-how-to-set-sambacifs-shares?limit=20&start=160#23188
Jean-Max
- OpenELEC-Nvidia_Legacy.x86_64-6.0.3 on ZBOX HD-ID11
- OpenELEC-Generic.x86_64-6.0.3 on ZBOX Nano AD10
- OpenELEC_RPI2 arm 6.03 on Raspberry 3 B
- KODI Windows 16.0 on 4 PC W7 W8
- KODI Android X86 16.0 on Galaxy Tab 3 10.1
- Data on NAS Thecus N7700Pro (7*2To, Raid 5)
- HDHomerun
The administrator has disabled public write access.

Re: NFS Share 5 years 7 months ago #5

  • selectany
  • selectany's Avatar
Your mount command in the autostart.sh is correct.
I think if you are sure that NFS server is configured properly, you should be able to browse your shares in /storage/music from within XBMC.
The administrator has disabled public write access.

Re: NFS Share 5 years 6 months ago #6

  • karmakoma
  • karmakoma's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Hello,

I believe I'm having the same problem. Cannot connect to my NFS shares via XBMC. I think the issue is the same as Jean-Max in that shares are not set to insecure mode.
I have a Thecus N3200 (not pro) NAS and it does not have the option from the GUI to select the guest system support so I need to edit via /etc/exports
I'm no good a linux at all. I can ssh into the NAS, cd to /etc and when I run ls command I can see the exports file but it is in cyan color and has an @ symbol on the end of it. From searching the net cyan appears to represent that it is sym link. I have no idea how to actually get to the /etc/exports file and edit it. Tried cat /etc/exports and receive error "file or directory does not exist"

Can anyone please point me in the right direction?

Thanks.
The administrator has disabled public write access.

Re: NFS Share 5 years 6 months ago #7

  • vicbitter
  • vicbitter's Avatar
  • Offline
  • Gold Boarder
  • Posts: 966
  • Thank you received: 175
  • Karma: 64
Have you tried the NFS wiki on XBMC?

This is straight from the wiki "Note: If you already have a working NFS server check that the export options required by XBMC have been set"

For example, on my setup I had to add the insecure option.
The administrator has disabled public write access.

Re: NFS Share 5 years 6 months ago #8

  • Jean-Max
  • Jean-Max's Avatar
  • Offline
  • Expert Boarder
  • Posts: 329
  • Thank you received: 7
  • Karma: 1
karmakoma wrote:
Hello,

I believe I'm having the same problem. Cannot connect to my NFS shares via XBMC. I think the issue is the same as Jean-Max in that shares are not set to insecure mode.
I have a Thecus N3200 (not pro) NAS and it does not have the option from the GUI to select the guest system support so I need to edit via /etc/exports
...
Can anyone please point me in the right direction?
Thanks.
Hello,

On your N3200, you have not the same Menu as on my N7700 ? :

NETWORK :
NFS : Enabled
STORAGE: Shared Folders : VIDEOS (for example)
NFS : Config NFS Share
Mount point = /raid0/data/VIDEOS
Host name : <Distant Openelec Media Player fixed IP> (192.168.1.36 for me)
Privilege : RO
OS Support : "Unix/Linux" -> To Modify to "AIX" (Allow source port>1024 = Insecure mode)
ID Mapping: Guest system root account will have full access to this share (root:root)

Here are some Screen-shots:









Then, on my Openelec media player (ZBOX), adding Video source on Thecus N7700 NAS is OK by :
nfs://<NAS IP>/raid0/data/VIDEOS/


Nb : I didn't used the SSH command:
Don't forget to send the exportfs -a command at the end : look in this link:
sketchworld.de/Test/wordpress/archives/3771
Jean-Max
- OpenELEC-Nvidia_Legacy.x86_64-6.0.3 on ZBOX HD-ID11
- OpenELEC-Generic.x86_64-6.0.3 on ZBOX Nano AD10
- OpenELEC_RPI2 arm 6.03 on Raspberry 3 B
- KODI Windows 16.0 on 4 PC W7 W8
- KODI Android X86 16.0 on Galaxy Tab 3 10.1
- Data on NAS Thecus N7700Pro (7*2To, Raid 5)
- HDHomerun
Last Edit: 5 years 6 months ago by Jean-Max.
The administrator has disabled public write access.

Re: NFS Share 5 years 6 months ago #9

  • karmakoma
  • karmakoma's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Hi,

Unfortunately my N3200 does not have those options (see screen shots attached).

So I will have to use the /etc/exports permissions.

So I ssh into my NAS and CD to /etc

I use command ls and I can see exports file but it is in cyan colour and it has a @ symbol on the end of it.

When I type cat /etc/exports I receive message no file or directory exists.

When I type vi /etc/exports I'm presented with a blank file to edit so it looks like etc/exports does not exist!!

I've attached a screenshot.

Thanks!
Attachments:
The administrator has disabled public write access.

Re: NFS Share 5 years 6 months ago #10

  • Jean-Max
  • Jean-Max's Avatar
  • Offline
  • Expert Boarder
  • Posts: 329
  • Thank you received: 7
  • Karma: 1
? Perhaps could you ask the correct syntax on Thecus forum:
forum.thecus.com/
and/or
? Have a look to the Thecus KB:
esupport.thecus.com/support/index.php?_m=knowledgebase&_a=view
and/or
? Submit a Ticket on:
esupport.thecus.com/support/index.php?_m=tickets&_a=submit

Note :
The last Fw for 3200 seems common with 7700 (?)
forum.thecus.com/viewtopic.php?f=40&t=3167
? Perhaps now, could you have, like on 7700, access to insecure mode ?

Tell us your progress
Jean-Max
- OpenELEC-Nvidia_Legacy.x86_64-6.0.3 on ZBOX HD-ID11
- OpenELEC-Generic.x86_64-6.0.3 on ZBOX Nano AD10
- OpenELEC_RPI2 arm 6.03 on Raspberry 3 B
- KODI Windows 16.0 on 4 PC W7 W8
- KODI Android X86 16.0 on Galaxy Tab 3 10.1
- Data on NAS Thecus N7700Pro (7*2To, Raid 5)
- HDHomerun
Last Edit: 5 years 6 months ago by Jean-Max.
The administrator has disabled public write access.

Re: NFS Share 5 years 6 months ago #11

  • karmakoma
  • karmakoma's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Hi,

I could submit a ticket with Thecus but they have not been that helpful in the past. From past experience they do not give very concise answers and their troubleshooting tips are very general and don't go into specifics about their products. Also the ssh module is not supported by them so they won't help with that.
I have looked at the new firmware but the N3200XXX is a different model to the N3200 (very confusing). Uses a different chipset and won't install.
I just don't know linux at all so perhaps I need to ask some Linux experts as to why I'm seeing what I do and why the /etc/exports file is empty.

I'll have to stick with smb for the meantime. Thanks for your help Jean-Max. If I ever figure this out I will be sure to report back.
The administrator has disabled public write access.