View unanswered posts | View active topics It is currently Wed May 22, 2013 6:53 pm



Reply to topic  [ 70 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next
 HOWTO: Let the Media Library Index a mounted NAS share 
Author Message

Joined: Wed Feb 16, 2011 10:45 pm
Posts: 64
Location: Czech Republic
Post Re: How to Make the Media Library Index a mounted NAS share?
OK, here is my try based on the magnolias post over here...
Code:
#!/bin/sh
sleep 20
ip=192.168.1.6
smb_share1=music
smb_share2=video
mntp=/usr/local/etc
mkdir $mntp/Music $mntp/Videos
options=username=playonhd
mount -t cifs //$ip/$smb_share1 $mntp/Music -o $options
mount -o bind $mntp/Music /tmp/usbmounts/sda1/Music
mount -t cifs //$ip/$smb_share2 $mntp/Videos -o $options
mount -o bind $mntp/Videos /tmp/usbmounts/sda1/Videos


Works in sense it really mounts on start with wired network, BUT the indexing is strange! It semas like there is some problem with ID3 tags, coz I can see ID3 tags only in my MP3 files and even this does not make the box show me any info about albums, artists and so on When I change the view on in Music section. The only way I can list my music is with Show All Music option, and that sucks...

Well seriously, this device is one BIG early egg full of bugs and behaviours without sense... It really make me a bit down for what I expected from it and what I really got.

_________________
PlayOn HD mini 2


Sat Feb 19, 2011 1:15 am
Profile ICQ

Joined: Sat Feb 19, 2011 2:44 pm
Posts: 2
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Just to add my thanks to the above and also something that I had to change.

Here's my script /usr/local/etc/mountnas

Code:
#!/bin/sh
sleep 20

mkdir /usr/local/etc/Movies

mount -t cifs -o nolock,proto=tcp,username=movies,password=movies //192.168.2.110/Movies /usr/local/etc/Movies

sleep 5

mount -o bind /usr/local/etc/Movies /tmp/usbmounts/sda/Movies



I had to add the 'sleep 5' between the mount and the bind, otherwise it just wouldnt work.

I also made it executable
Code:
chmod +x /usr/local/etc/mountnas


then added the following code to /usr/local/etc/rcS at the end of the file
Code:
/usr/local/etc/mountnas &


I tried to use a 16mb usb pen drive initially and this didnt work!, it complains about required >20mb on-screen.

I've now plugged up a 120mb pen drive and its happily scanning away.

Whilst its good that this works and there are people like us who understand and are able to get it to work, the vast majority of people that buy the PlayOn wont have a clue where to start with this.

They really need to address this issue urgently!


Sat Feb 19, 2011 4:34 pm
Profile

Joined: Mon Feb 14, 2011 4:07 pm
Posts: 21
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Have tried all the variants of the scripts above and even though they all mount it OK (I can go into USB->C and see all my movies), no scan is getting initiated :(


Sat Feb 19, 2011 6:25 pm
Profile

Joined: Sat Feb 05, 2011 5:15 pm
Posts: 11
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Thanks for all the tips here, this really improves my NAS-experience.
My mountnas script looks like this:
Code:
#!/bin/sh
sleep 20
ip=192.168.1.175
smb_share1=video
#smb_share2=photo
#smb_share3=music
mntp=/usr/local/etc
mkdir $mntp/Videos
#mkdir $mntp/Photos
#mkdir $mntp/Music
options=username=Extern,password=******
mount -t cifs //$ip/$smb_share1 $mntp/Videos -o $options
#mount -t cifs //$ip/$smb_share2 $mntp/Photos -o $options
#mount -t cifs //$ip/$smb_share3 $mntp/Music -o $options
sleep 2
mount -o bind $mntp/Videos/Series /tmp/usbmounts/sda1/Series
mount -o bind $mntp/Videos/Films /tmp/usbmounts/sda1/Films
mount -o bind $mntp/Videos/Documentaires /tmp/usbmounts/sda1/Documentaires
mount -o bind $mntp/Videos/Jukebox /tmp/usbmounts/sda1/Jukebox
#mount -o bind $mntp/Photos /tmp/usbmounts/sda1/Photos
#mount -o bind $mntp/Music /tmp/usbmounts/sda1/Music
cp $mntp/Videos/index.htm /mnt/usbmounts/sda1/

I added the last command to have the YAMJ Jukebox in the root of the USB-drive (for fastest access).
However, if I uncomment the share2 and share3 lines, my files don't get indexed. It could be because these folders contain too many files, or that mounting three shares takes too long (they are mounted correctly when uncommented). Maybe I should play more with the sleep times.
It does not matter too much as I am mostly interested in using the NAS for video.


Sat Feb 19, 2011 7:43 pm
Profile

Joined: Thu Feb 17, 2011 9:26 pm
Posts: 11
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Ok, i understand all the scripts, but can't get my Telnet to connect...

When i just switch on my mini2 (with powerbutton), move to my computer and try to connect with telnet (either with PuttyTel, or the windows-telnet-client) it says it can't connect. (also after few minutes, and i checked the IP-address on the mini2 as well)
Its a wired connection through a router.

Is the mini2-telnet on any special port, or does it need to be in a special submenu on the mini2 or something?


Sun Feb 20, 2011 9:28 pm
Profile

Joined: Wed Feb 16, 2011 10:45 pm
Posts: 64
Location: Czech Republic
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
No, no special port for telnet connection... standard 23 port. This souds really strange... try turn off any firewalls...

_________________
PlayOn HD mini 2


Sun Feb 20, 2011 9:34 pm
Profile ICQ

Joined: Sat Feb 05, 2011 5:15 pm
Posts: 11
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
bweefting wrote:
Is the mini2-telnet on any special port, or does it need to be in a special submenu on the mini2 or something?

No, its just telnet (not ssh) on the Mini2 IP address and port 23 (the standard telnet port). I use PuTTY.

Login with root, no password required.


Sun Feb 20, 2011 9:38 pm
Profile

Joined: Mon Feb 21, 2011 12:20 am
Posts: 3
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Hey guys, ive spend my evening on this.. and still not working :)

I have an USB stick with the folder Movies on it, and i am able to browse to the folder in /mnt/usbmounts/sda1/Movies

If i use the mount -t cifs command with the information below i keep getting the "Unknown error 6" code..
Ive searched google for the error code 6 and couldnt find a thing :(

Anyone knows what is going wrong?

The 192.168.0.50 ip adres is from my QNAP Nas TS-419p+
I can access the \\192.168.0.50\Public\Films share on my PC with any problem.

/ # mount -t cifs //192.168.0.50/Public/Films /mnt/usbmounts/sda1/Movies -o username=JeFF,password=******
mount: Mounting //192.168.0.50/Public/Films on /mnt/usbmounts/sda1/Movies failed: Unknown error 6
/ #

Hmmpf if i try the same command without giving -o username/password i get the following error code:
: Unknown error 22


Mon Feb 21, 2011 12:28 am
Profile

Joined: Wed Feb 02, 2011 1:31 am
Posts: 115
Location: Bristol, England
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Thanks for your work on this, guys, I never did understand Unix or vi so it's been a great help. But is it right that all the files appear in one huge list rather than being broken down by folder? I'm waiting for it to index them all before I can see if using a separate share for 'Films' works, although it exists as a sub-folder of my Videos share so they'll appear twice (for now).

Would I have to set up shares for 'films', 'documentaries', 'music', and then each TV series to see them in separate folders?

Also, how do we force a manual scan, or does it do it every time we switch on?


To JeFF1985

Following the examples given, I believe your commands should be:

mount -t cifs //192.168.0.50/Public /usr/local/etc/Movies -o username=JeFF,password=******
then:
mount -o bind /usr/local/etc/Movies/Films /tmp/usbmounts/sda1/Films

although you'd be better off following sandeman684's example as closely as possible (using the variables) as it worked first time for me.

I assume error 6 is something like 'directory not found' and error 22 'unknown login'.

_________________
Playon!HD Mini2 <--> gigabit ethernet <--> Windows server with 10TB of storage.


Mon Feb 21, 2011 1:57 am
Profile

Joined: Sun Feb 20, 2011 12:34 am
Posts: 3
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Not having any success getting the Movies mount to work. On my server (HP MSS EX490) I have this directory structure;
Code:
\\server
   \Videos
      \Movies SD
         \Inglourious Basterds
            \title00.mkv

and of course many more directories, one for each movie. I can't get the indexing to occur and I also can't get a list of the directories via the Files option or Files Manager option. Are the multiple directories the issue? I can get directory listings for Pictures and Music but they don't get indexed either.


Mon Feb 21, 2011 2:49 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 70 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.