View unanswered posts | View active topics It is currently Sun May 26, 2013 10:34 am



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

Joined: Thu Mar 03, 2011 3:48 pm
Posts: 78
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
another update:

I changed sleep to 40 and now the folder on USB seems correctly mapped, but it's still not indicized.
is there a way to force a manual rescan?


Thu Mar 03, 2011 11:31 pm
Profile

Joined: Sat Feb 05, 2011 10:35 am
Posts: 5
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Hi, i've got another problem. I'm able to mount my shares to the usb stick manually but it doesn't seem to work from the rcS file. I tried changing the sleep times but still no luck. Any suggestions will be highly appreciated!


Code:
sleep 20

mkdir /usr/local/etc/Videos

mount -t -o cifs //192.168.1.2/Videos /usr/local/etc/Videos username=guest

sleep 5

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


Tue Mar 08, 2011 11:35 pm
Profile

Joined: Wed Mar 09, 2011 4:23 pm
Posts: 17
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Thanks for everyones posts on this. It took a bit of trial and error, not really used linux much, but I eventually got the script to mount to my NAS and bind to the USB folder. At first it didn't index but I seemed to have got that working too.

For reference I'm using a wired connection to a ReadyNAS device.

My script was as follows: -
Code:
#!/bin/sh
sleep 20
ip=192.168.0.2
smb_share=media
mntp=/usr/local/etc
mkdir $mntp/Movies
options=username=guest
mount -t cifs //$ip/$smb_share $mntp/Movies -o $options
sleep 5
mount -o bind $mntp/Movies/Videos/Films /tmp/usbmounts/sda1/Movies


A few notes on where it failed for me before I got it right: -

As others have noted, when you mount to a smb share it must only be to the root share, don't try to a mount to sub folder on the share as it wont work. Use bind to link to the sub folders. On my NAS the video files are located as follows: -
\\192.168.0.2\media\Videos\Films

So I mount to \\192.168.0.2\media, the root share and then bind to the sub folders Videos/Films

The second thing that failed for me was when I created the mount without passing a username as an option, because I don't normally need a username/password to access it. However it was only when I added the option username=guest that it would successfully mount.

The final part that wasn't working for me was indexing of the files. I could browse to the USB and see all the Films on the NAS but I couldn't see them if I went directly into Movies. Now the silly thing was I tried two things at once, so not actually sure what caused the index to kick in.

1) Copied any mp3 file to the USB stick. My thinking being that if it detects a new file on the stick itself, it might initiate the index process.
2) While doing the above I noticed a hidden folder on the USB stick called ".Theater". I was guessing that this is where it stored its index results so I deleted it (well moved it, just in case I need it back).
3) Rebooted the Mini.

Now it could have been that it just needed another reboot or one of the other two steps, but once it came back online it started the index process and I could then see all my films under Movies.

Hope it helps,

Anthony


Thu Mar 10, 2011 3:46 am
Profile

Joined: Thu Mar 17, 2011 7:46 pm
Posts: 1
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Hello Anthony,
could you explain to me how you got the script running? I did manage to create the mountnas script, but i have no idea how get it to actually run.

thanks!


Fri Mar 18, 2011 3:17 pm
Profile

Joined: Fri Apr 01, 2011 12:18 pm
Posts: 19
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
you can get the script to work with this:

and in /usr/local/etc/rcS I added the line:
Code:
/usr/local/etc/mountnas &


I have the script like this:
Code:
#!/bin/sh
mkdir /usr/local/etc/Films
sleep 60
mount -t sysfs //192.168.1.250/Volume_1/Films /usr/local/etc/Films
sleep 5
mount -o bind /usr/local/etc/Films /tmp/usbmounts/sda1/Films

And I added the above line to rcS

When I manually perform the two "mount" lines in telnet connection, I don't get any error.
I also tried (manual) to replace sysfs with cifs, but that gives an error 22.
I can reach /tmp/submounts/sda1 without any problem through Telnet.
You guys have a solution? or see an error?

Please help.


Tue Apr 05, 2011 8:36 pm
Profile

Joined: Tue Apr 12, 2011 9:10 pm
Posts: 11
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
yatesa wrote:
...
The final part that wasn't working for me was indexing of the files. I could browse to the USB and see all the Films on the NAS but I couldn't see them if I went directly into Movies. Now the silly thing was I tried two things at once, so not actually sure what caused the index to kick in.

1) Copied any mp3 file to the USB stick. My thinking being that if it detects a new file on the stick itself, it might initiate the index process.
2) While doing the above I noticed a hidden folder on the USB stick called ".Theater". I was guessing that this is where it stored its index results so I deleted it (well moved it, just in case I need it back).
3) Rebooted the Mini.

Now it could have been that it just needed another reboot or one of the other two steps, but once it came back online it started the index process and I could then see all my films under Movies.

Hope it helps,

Anthony


Thanks Anthony, for this hint!

For me, deleting the ".Theater" directory was all that was necessary to get the scan started on the next reboot. I do not have other files on the USB stick.

Cheers,
Olaf

_________________
AC Ryan ACR-PV73800 Playon!HD Mini2 running firmware v9.5.5.r2988 release 2011-04-18
Media served over a 100MBit network by
- Globalscale Guruplug Server running Debian Linux 2.6.32 / Samba / Twonky 6.0.30
- ASRock ION 330-BD Intel Atom PC running Windows 7


Thu Apr 14, 2011 11:15 am
Profile

Joined: Mon Apr 18, 2011 12:37 pm
Posts: 1
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Hi everyone,

I've managed to get the share mounted properly by following the examples here, but in my case it will only index once. If I turn off the Mini 2 then turn it back on again, Indexing doesn't work. I have to delete the .Theater directory everytime in order to get the Indexing to work.

Any ideas?


Mon Apr 18, 2011 1:06 pm
Profile

Joined: Mon Feb 28, 2011 2:49 pm
Posts: 9
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Hi everybody,

I am also trying to mount by USB however I have some question.
Linux is all new for me:

1.) When he language is set on Dutch (in my case) does I still have to use Movies or do I need to use the dutch translation "films" to mount?
2.) Where do I need to put the code in in the usr/local/etc or at usr/local/etc/rcs?
3.) I have also seen some post that were saying to put everything at the end of the script, however when i am checking the RCS script noting is filled in, is that normal or am I missing something.

Thanks in advance, I can imagine that for some guys this is all common knowledge but for me it all a new world.

Regards,
Arjen


Fri May 06, 2011 1:36 pm
Profile

Joined: Mon Feb 28, 2011 2:49 pm
Posts: 9
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Hi everybody.

I was able to have my Netgear NAS mounted via the USB pen.
However indexing is still no working for me, I am struggling which file name I should use because on the forums I see a lot of different entries, like Videos/Movies and Films. My language is set on dutch.
Any one An idea which directory name I should use?

P.s Putting the mount script at the end of the rcS file was not working for me, I had to put it before the line:
echo 2 /tmp/hdd/voulumes/hdd1...........

Your suggestion are higly appreciated!


Sun May 22, 2011 11:30 am
Profile

Joined: Tue May 24, 2011 7:29 pm
Posts: 10
Post Re: HOWTO: Let the Media Library Index a mounted NAS share
Is it possible to mount to video folders ?

I have one for tv series and one for movies they both are on the same server just different disks.


Tue May 24, 2011 8:00 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 70 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

Who is online

Users browsing this forum: No registered users and 1 guest


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.