Sign up here and you can log into the forum!

UnionFS xmount and other troubles

General WDLXTV-Live forum

UnionFS xmount and other troubles   

Postby McConnor » Tue Jul 17, 2012 6:02 am

I have to admit I am lost... again! I read quite some posts here and on the wiki but I cant sort it out logically probably because of lacking linux understanding.

I am running an NFS Server on my WinXP machine which is exporting some shares. Those are correctly mounted on my WDTV Live 1.02.21-0.5.1.1.1 and intercepted via CIFS-Interceptor so that I now can browse my Server and be presented with my NFS share. All was fine.

Now I installed a second hard drive, created the same folder structure as on my first drive (for the videos) and looked for a possibility to merge shares from both drives in on mount point under the Server which then can be browsed an played from just like before.

Now I am stuck configuring this - I have fiddled some time earlier to get this working right and dont want to mess it up completely. Here is what I already did to me:

The net.mounts file:
Code: Select all
xmount 192.168.178.4:/Videosammlung1 .Videosammlung1 nfs vers=3,ro,timeo=600,hard,intr,tcp,rsize=32768,wsize=32768
#
xmount 192.168.178.4:/Videosammlung2 .Videosammlung2 nfs vers=3,ro,timeo=600,hard,intr,tcp,rsize=32768,wsize=32768
#
xmount 192.168.178.4:/Heimvideosammlung .Heimvideosammlung nfs vers=3,ro,timeo=600,hard,intr,tcp,rsize=32768,wsize=32768
#
xmount ".Videosammlung:.Videosammlung2" "Videosammlung" unionfs


The cifs-interceptor file:
Code: Select all
//192.168.178.4/NFSShares|192.168.178.4:/Videosammlung1 Videosammlung1-NFS|192.168.178.4/NFSShares|192.168.178.4:/Videosammlung2 Videosammlung2-NFS|192.168.178.4:/Heimvideosammlung Heimvideosammlung-NFS|


But now - what? Is the above somehow correct or a good idea - where will my "Combined Mount" "Videosammlung" show up - must I somehow add it in the Cifs-file also and how? it should be display under my server - perhaps even the seperate shares should be blanked out (only combined share displayed). I would be grateful for tips how to do this....

Heeeelp, please..... :shock:
McConnor
WDTVer
 
Posts: 47
Joined: Thu Dec 23, 2010 10:28 am
Location: Stuttgart, Germany

Re: UnionFS xmount and other troubles   

Postby recliq » Tue Jul 17, 2012 7:39 am

CIFS-interceptor doesn't work with unionfs.
Ditch the CIFS-interceptor config, connect a USB drive to WDTV and go to Video -> Local Drives instead of Video -> Network Shares.
You should see a folder Videosammlung which is your unionfs.
YOu might want to add .Heimvideosammlung to your unionfs xmount command.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5021
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: UnionFS xmount and other troubles   

Postby McConnor » Wed Jul 18, 2012 3:04 am

Thanks recliq - worked like a charm.

Is it normal that the unionfs folders wont show up in Local Drives-All videos but only in Local Drives-Folders?

Other than that it works superb.
McConnor
WDTVer
 
Posts: 47
Joined: Thu Dec 23, 2010 10:28 am
Location: Stuttgart, Germany

Re: UnionFS xmount and other troubles   

Postby recliq » Wed Jul 18, 2012 6:13 am

McConnor wrote:Thanks recliq - worked like a charm.

Is it normal that the unionfs folders wont show up in Local Drives-All videos but only in Local Drives-Folders?

Other than that it works superb.

Yes that's normal, there is a hack to fix it (.addMounts) but it has been reported to not work properly with latest versions (0.5.1.0+).
You need a USB drive with some free space connected to WDTV and then create an empty file called .addMounts in the root of that drive.
You can find some more info on the forum.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5021
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: UnionFS xmount and other troubles   

Postby McConnor » Fri Jul 20, 2012 12:31 am

I copied the .addMounts via Dolphin-Explorer to the root of my drive (I was unshure how to proper create a zerobyte File within Windows). But as you suspected it does not work. Would have been very easy because my wife and children could simply have gone one straigth line through from "Video-local-drives-all video-Videosammlung" without any up and down and therefore very navigation-error-proof.

I will search the forum if there is anything to be done about that.... Thanks anyway for the hint
McConnor
WDTVer
 
Posts: 47
Joined: Thu Dec 23, 2010 10:28 am
Location: Stuttgart, Germany

Re: UnionFS xmount and other troubles   

Postby mad_ady » Fri Jul 20, 2012 3:42 am

I believe the file should be ".mnt", not ".addMounts". I'm not sure what the difference between the two is, but try with .mnt as well. :ugeek:
User avatar
mad_ady
Developer
 
Posts: 2997
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UnionFS xmount and other troubles   

Postby recliq » Fri Jul 20, 2012 6:55 am

.mnt will EarlyMount the drive, so it appears in /tmp/mnt
.addMounts will create a folder on the USB drive used by dmaosd's media library file indexing. By default dmaosd will only index local usb drives and you won't see any files under "All files", "Recent added" etc... you have to browse by "Folders". .addMounts was intended to fix this, IIRC it creates some fake files and mirrors the network share directory structure, so dmaosd can index it.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5021
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: UnionFS xmount and other troubles   

Postby mad_ady » Fri Jul 20, 2012 11:42 am

Thanks for the explanation - I didn't know that... I'm still using cifs interceptor - never really needed xmounts...
User avatar
mad_ady
Developer
 
Posts: 2997
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UnionFS xmount and other troubles   

Postby r51923 » Fri Jul 20, 2012 8:36 pm

I have a WDTV live gen1. flashed firmware 1.02.21-0.5.1.1 (unlike other posts i read, the WDTV locked up during firmware upgrade when i applied the USB, then the power. I had to insert the USB after the WDTV was powered up in order to get it to load any formware)

having trouble with moviesheets and xmount (i have read endless forum post over the past week, but still can't get the mount to work). For cleanliness I would like to have a sheet repository so i don't have all of these files mixed in with the video files.

All of my movies are on a readynas NV+. i have them in a share "media" and a folder "video". readynas ip is 192.168.1.188 (static)

1. should i make a seperate share for "moviesheets", or just add another folder to the "media" share?
2. do i need the nfs app.bin installed? i put in on my flash drive, but noticed no difference after rebooting wdtv.
3. what would be the xmount command to add to the net.mount file on the flash drive, or should i just add it to the early mounts folder?
4. what telnet command can i use to verify mount exists? ( i have yet to get any folder to show up when i check local drive on wdtv.
5. should i just have NFS, or CIFS and NFS enabled on the share i put the repository in?

p.s. I can get moviesheets to work when i just put them with the movies and then navigate to the network share.
r51923
n00b
 
Posts: 4
Joined: Tue Jul 17, 2012 11:57 am

Re: UnionFS xmount and other troubles   

Postby recliq » Sat Jul 21, 2012 1:40 am

­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5021
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 4 guests