[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
NetworkMounter 0.1 released on CSI
09-01-2009, 02:37 PM
Post: #1
NetworkMounter 0.1 released on CSI
Ever since I created my own (private) jukebox for the NMT I struggled with the build in networking capabilities. I have far to many files to just have on a single hard disk. Instead I use a server with a couple of different shares. That doesn't work that well with my jukebox so I created a little tool to mount my network shares on the local filesystem of the build-in hard disk. That way the jukebox sees just one extremely large hard disk.

I thought that maybe this little tool might also be handy for others, so I decided to release it on CSI.

Configuration is fairly easy. After installing NetworkMounter you need to edit the config.ini file which should be in the Apps/NetworkMounter directory. There is already an example config file which you can edit.

For each network share you first need to create a directory on the hard disk of your NMT. For example "External". Next edit the config.ini file and add a section that looks like this:

Code:
[External]
type = "cifs"
path = "/share/External"
share = "//192.168.1.2/Videos"
user = "rakaz"
password = "hithere"
options = ""

In the example above, I use "cifs" for windows network shares. You could also use "nfs" for NFS shares. The path is path to the directory I just created on the hard disk of the NMT. The other settings should be self explainatory. Except for "options", which can be left empty (for now).

The next time you reboot your NMT, the network shares will be automatically mounted and would appear as regular directories on the hard disk of your NMT.

mediatankcontroller.com: the home of MediatankController 1.0 for Adobe AIR and MediatankController 1.0 for iPhone and iPod Touch.
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
[+] 10 users say Thank You to Niels Leenheer for this post
09-01-2009, 03:40 PM
Post: #2
RE: NetworkMounter 0.1 released on CSI
Nice idea. Any reason why you can't just use Symbolic Links?
That's what I'm using turning my 4 separate drives into one 5TB share.
Find all posts by this user
Add Thank You Quote this message in a reply
09-01-2009, 03:51 PM
Post: #3
RE: NetworkMounter 0.1 released on CSI
(09-01-2009 03:40 PM)T800 Wrote:  Nice idea. Any reason why you can't just use Symbolic Links?
That's what I'm using turning my 4 separate drives into one 5TB share.

If you have a Windows based server that won't work.

Also even if you have just one share to mount this tool is still useful. If you use the default way of managing network share you can never be sure the share is actually mounted. Only if you actually use the NMT to navigate to the network share it is mounted on demand. For a jukebox running on the internal hard drive this is a real problem because files you may want to start might not be available.

mediatankcontroller.com: the home of MediatankController 1.0 for Adobe AIR and MediatankController 1.0 for iPhone and iPod Touch.
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
09-03-2009, 12:43 AM
Post: #4
RE: NetworkMounter 0.1 released on CSI
If I have no user name or password on my shares, do I just use null quotes?

"".



(09-01-2009 03:51 PM)Niels Leenheer Wrote:  If you have a Windows based server that won't work.

Also even if you have just one share to mount this tool is still useful. If you use the default way of managing network share you can never be sure the share is actually mounted. Only if you actually use the NMT to navigate to the network share it is mounted on demand. For a jukebox running on the internal hard drive this is a real problem because files you may want to start might not be available.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to cyberdude for this post
09-03-2009, 06:45 AM
Post: #5
RE: NetworkMounter 0.1 released on CSI
(09-03-2009 12:43 AM)cyberdude Wrote:  If I have no user name or password on my shares, do I just use null quotes?
"".

Yes, that should work.

mediatankcontroller.com: the home of MediatankController 1.0 for Adobe AIR and MediatankController 1.0 for iPhone and iPod Touch.
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
09-03-2009, 08:47 PM
Post: #6
RE: NetworkMounter 0.1 released on CSI
Could you give an example how you expect the share to be specified when it refers to an NFS export.

I tried several ways but non succeeded:
Code:
[CDs]
type        = "nfs"
path        = "/share/CDs"
share        = "//192.168.1.37/srv/samba/media/music"
user        = ""
password    = ""
options        = ""
or
Code:
[CDs]
type        = "nfs"
path        = "/share/CDs"
share        = "//192.168.1.37:/srv/samba/media/music"
user        = ""
password    = ""
options        = ""
or
Code:
[CDs]
type        = "nfs"
path        = "/share/CDs"
share        = "nfs://192.168.1.37:/srv/samba/media/music"
user        = ""
password    = ""
options        = ""

all failed to show the contents in /share/CDs

-
Aleg

--------------------------------------------------------------------------------
PCH A100 (Stable firmware), 250GB 2.5"" WD Caviar-PATA,
Connected to Pioneer KRL32V at HDMI 1080p60/50/24,
Ubuntu Server NAS,
Naim DAC + XPS-2,
mpd + iPod with mPod
Find all posts by this user
Add Thank You Quote this message in a reply
09-03-2009, 08:54 PM
Post: #7
RE: NetworkMounter 0.1 released on CSI
(09-03-2009 08:47 PM)avanegmond Wrote:  Could you give an example how you expect the share to be specified when it refers to an NFS export.

I tried several ways but non succeeded:
Code:
[CDs]
type        = "nfs"
path        = "/share/CDs"
share        = "//192.168.1.37/srv/samba/media/music"
user        = ""
password    = ""
options        = ""
or
Code:
[CDs]
type        = "nfs"
path        = "/share/CDs"
share        = "//192.168.1.37:/srv/samba/media/music"
user        = ""
password    = ""
options        = ""
or
Code:
[CDs]
type        = "nfs"
path        = "/share/CDs"
share        = "nfs://192.168.1.37:/srv/samba/media/music"
user        = ""
password    = ""
options        = ""

all failed to show the contents in /share/CDs

-
Aleg

you have an unnecessary : after the ip address... change that.

Code:
[CDs]
type        = "nfs"
path        = "/share/CDs"
share        = "nfs://192.168.1.37/srv/samba/media/music"
user        = ""
password    = ""
options        = ""

Media tank:PCH A-110, Xbox with xbmc Smile
Find all posts by this user
Add Thank You Quote this message in a reply
09-03-2009, 09:44 PM
Post: #8
RE: NetworkMounter 0.1 released on CSI
(09-03-2009 08:54 PM)Laderius Wrote:  you have an unnecessary : after the ip address... change that.

Code:
[CDs]
type        = "nfs"
path        = "/share/CDs"
share        = "nfs://192.168.1.37/srv/samba/media/music"
user        = ""
password    = ""
options        = ""

Hi

That was indeed a version I hadn't tried yet, but alas that one didn't do it for me either.

Thanks anyway
-
Aleg

--------------------------------------------------------------------------------
PCH A100 (Stable firmware), 250GB 2.5"" WD Caviar-PATA,
Connected to Pioneer KRL32V at HDMI 1080p60/50/24,
Ubuntu Server NAS,
Naim DAC + XPS-2,
mpd + iPod with mPod
Find all posts by this user
Add Thank You Quote this message in a reply
09-04-2009, 05:10 AM
Post: #9
RE: NetworkMounter 0.1 released on CSI
I think you were right to have the ':' after the ip that's needed for NFS but not for SMB IIRC.

Thanks very much for this app if it does what I think it does it is exactly what I have been looking for.

I have my music and video folders on the same NAS but different shares. If I click on the one that I didn't use last then its process denied or WTF, now with this I can enter both shares in the config and after a reboot both shares are mounted so that whatever share I click works. Keeping everything crossed.

Is there a downloadable version somewhere as the CSI and the C200 are not getting on great yet.

A400: SSD+SD Card(Apps), HDMI A300: USB(Apps), HDMI C200: USB(Apps), BD SH-B083L(SB01), HDMI
CAT6 Wired Network: TV TX-P42G20, HP ProCurve 1400-8G, Netgear GS-608/605, Synology CS407
Find all posts by this user
Add Thank You Quote this message in a reply
09-20-2009, 03:37 PM (This post was last modified: 09-20-2009 03:39 PM by AquaFire.)
Post: #10
RE: NetworkMounter 0.1 released on CSI
Hello,

Your application should exactly addrss the problem I was facing . Since the CIFS network shares on my NAS (Western Digital Mybook) device were always dormant and were not active all the time on NMT Egreat EG-M34a.

For example if I go to the NMT interface and create the network links to shares on my NAS device and save them, they are only accessible during the time the NMT is turned on.

This is very frustrating since in Movie JukeBoxes all links point to the NAS shares which are not loaded every time by default. I would have to go back manually click on the network shares in the NMT main menu, then come back to the Jukebox and try running the movie file, which at times was still inaccessible. It was as if they are not auto mounted but have to mounted manually every time.

Using your application I have defined two network CIFS shares on my NAS device and have created two empty directories in the /share volume on the NMT harddisk. Now how can I be sure that the shares are auto mounted every time. I have edited the config.ini file correctly. I have tried going to the /share/xxxx directory which should show me the contents on the mounted network share, but they are still showing empty after a restart.

Any idea about how can I make it work successfully.

Thanks,
Regards.
Find all posts by this user
Add Thank You Quote this message in a reply
10-17-2009, 07:38 AM
Post: #11
RE: NetworkMounter 0.1 released on CSI
can you please make this tool work for csi on c-200?
Find all posts by this user
Add Thank You Quote this message in a reply
10-28-2009, 06:53 PM
Post: #12
RE: NetworkMounter 0.1 released on CSI
This will work for NFS but it requires a quick tweak.

The .ini syntax is as follows

[Folder]
type = "nfs"
path = "/share/Folder"
share = "192.168.x.y:/raid/Folder"
user = ""
password = ""
options = "tcp,rsize=32768,wsize=32768,rw,soft,nolock"

Check your NFS server for the correct folder path, on mine I have to specify the full path from root even though the 'share' is listed as 'Folder' on my server.
The options are 'optional' but I would recommend you leave tcp in as I find tcp based NFS connections much quicker than UDP. Just search for 'unix mount syntax' if you need to check the other entries.

This produces the following mount command which is executed by the script.

/bin/mount -t nfs 192.168.x.y:/raid/Folder /share/Folder -o tcp,rsize=32768,wsize=32768,rw,soft,nolock

The bit that is breaking NFS is in ./scripts/mount.php

if ((!isset($share['user']) || $share['user'] == '') && (!isset($share['password']) || $share['password'] == '')) {
$options[] = "user=root";
}

Basically if user and password are blank then the script is forcing the 'user=root' option which is rejected by the mount command and the script fails. You can see the output from the script in the file .daemonresult which is how I spotted it.

Comment those three lines out and it works a treat.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to sminc for this post
10-29-2009, 05:26 PM
Post: #13
RE: NetworkMounter 0.1 released on CSI
Has anyone tried this on the C200 yet?

A400: SSD+SD Card(Apps), HDMI A300: USB(Apps), HDMI C200: USB(Apps), BD SH-B083L(SB01), HDMI
CAT6 Wired Network: TV TX-P42G20, HP ProCurve 1400-8G, Netgear GS-608/605, Synology CS407
Find all posts by this user
Add Thank You Quote this message in a reply
11-02-2009, 02:29 PM (This post was last modified: 11-02-2009 02:39 PM by avanegmond.)
Post: #14
RE: NetworkMounter 0.1 released on CSI
(10-28-2009 06:53 PM)sminc Wrote:  This will work for NFS but it requires a quick tweak.

The .ini syntax is as follows

[Folder]
type = "nfs"
path = "/share/Folder"
share = "192.168.x.y:/raid/Folder"
user = ""
password = ""
options = "tcp,rsize=32768,wsize=32768,rw,soft,nolock"

Check your NFS server for the correct folder path, on mine I have to specify the full path from root even though the 'share' is listed as 'Folder' on my server.
The options are 'optional' but I would recommend you leave tcp in as I find tcp based NFS connections much quicker than UDP. Just search for 'unix mount syntax' if you need to check the other entries.

This produces the following mount command which is executed by the script.

/bin/mount -t nfs 192.168.x.y:/raid/Folder /share/Folder -o tcp,rsize=32768,wsize=32768,rw,soft,nolock

The bit that is breaking NFS is in ./scripts/mount.php

if ((!isset($share['user']) || $share['user'] == '') && (!isset($share['password']) || $share['password'] == '')) {
$options[] = "user=root";
}

Basically if user and password are blank then the script is forcing the 'user=root' option which is rejected by the mount command and the script fails. You can see the output from the script in the file .daemonresult which is how I spotted it.

Comment those three lines out and it works a treat.

This worked indeed very much like a treat.

Super!!

Thank you for figuring this out.


@Niels:
Is there any logic behind this failure to mount when forced to "user=root"?
Is there any reason to force it to "user=root" when no user is given?
Is something going to fail (e.g. in the samba shares?) when these 3 lines are commented out?

-
aleg

--------------------------------------------------------------------------------
PCH A100 (Stable firmware), 250GB 2.5"" WD Caviar-PATA,
Connected to Pioneer KRL32V at HDMI 1080p60/50/24,
Ubuntu Server NAS,
Naim DAC + XPS-2,
mpd + iPod with mPod
Find all posts by this user
Add Thank You Quote this message in a reply
11-02-2009, 05:00 PM
Post: #15
RE: NetworkMounter 0.1 released on CSI
Sounds cool man, thanks for sharing.

Have you ran into any problems playing HD movies (after say 1-2) while having all your shares mounted? (i assume not...just figured i'd ask though).

Pannasonic Plasma 50" -->HK254-->Emotiva xpa-5 & upa-2
A100 w/ 500gb HDD, A200 w/ mn100, c200 w/ 2.5" 250gb
Calm 2.1, YAMJ - Redefined 1.8a skin, Music Jukebox 8
WHS ex490 w/ 2.5tb's
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Star [CSI] Community Software Installer 2.7.2 ** UPDATED DEC 28th ** Ger Teunis 580 262,758 04-10-2013 12:42 PM
Last Post: timwest73
  Faster PHP server CSI package journey4712 174 61,664 03-30-2013 01:12 PM
Last Post: o34171@rtrtr.com
  nmtPYtools 0.3 released gkreidl 0 1,307 09-23-2011 02:23 PM
Last Post: gkreidl
  NetworkMounter and user name lucky55luc 0 1,002 08-30-2011 08:12 AM
Last Post: lucky55luc
  Utils v0.0.4 - A110 - Released - Updated 5th July vaidyasr 84 25,048 01-31-2011 01:21 PM
Last Post: dc11ab
  [Apps] SYNK - C200/A200/A210/A110 - Released vaidyasr 0 1,904 01-24-2011 12:47 PM
Last Post: vaidyasr
  NFO Manager v1.0.4 Beta Released Nov 11th - With Dynamic JukeBox vaidyasr 76 31,438 01-12-2011 02:12 PM
Last Post: mfsav2
  Can't load Themes with CSI narfnd 1 1,958 11-03-2010 07:20 PM
Last Post: joserobleda
  Using NetworkMounter, now shares don't work pbusardo 3 1,722 09-20-2010 04:06 PM
Last Post: kryzchek
  CSI ChangeLogURL? lordy 0 1,366 08-13-2010 06:30 PM
Last Post: lordy

Forum Jump: