Openelec...mounting network shares

Associate
Joined
20 Nov 2010
Posts
370
Location
South Wales
Hey

I've just setup my home server with ESXi running a WHS2011 VM.

I've got 2 drives shared. "Media1" and "Media2".

WHS2011 has an IP of 192.168.1.114

OpenElec v.3.0.6 (IP of 192.168.1.111)

I'm trying to share a folder called "TV" on the "Media1" share.

I've created a file called "autostart.sh" and have it saved in the "Configfiles" folder of my Pi.

I have no idea why this isn't working


Code:
 #!/bin/sh
 (sleep 30; \
 mount -t cifs -o username=ADMIN,password=ADMINPASSWORD,rw //192.168.1.114/Media1/TV; \
 )&

But nothing is showing up in OpenElec when I go to Videos -> Files ->

what am i doing wrong? :confused:
 
I would note that if Media1 is being shared by the Windows box then that is what you should be trying to mount not the TV sub-directory under that.

Then you would give the localmountpoint/TV as the path to the area you wanted ... but as Frozennova has noted you may well be able to define the share and it's directory as a source in you media software and then allow it to browse to that to access it instead of pre-mounting it at the OS level.
 
Assuming you are using a Windows share or SMB share from I linux box heres how to add a video source to XBMC/OpenElec

From the main menu select Videos, followed by Files.

From there select add videos then browse to bring up the file explorer.

Then select Windows network (SMB) select the server, followed by the share/folder
containing the share Followed by the OK button, the file explorer will now close and click OK again.

Now change the option on the top left of the next box to tell the media library what kind of files this folder contains and click Ok again.

It will now ask if you wish to update the library info for this directory so click Yes.

Follow these steps for each of the shared folders you wish to add to the library
 
As has been said, you should be doing all your connection to media shares via XBMC itself, rather than on the host OS.

The same is true for both Linux-based and Windows-based machines running XBMC. On a Windows machine, NEVER use a mapped drive for XBMC, due to the unique way that the BBC is funded, you need to access a mapped drive from Explorer before it's available for other applications to use.
 
Back
Top Bottom