LinHES Forums
http://forum.linhes.org/

How to link media through NFS?
http://forum.linhes.org/viewtopic.php?f=11&t=12827
Page 1 of 1

Author:  Efvin [ Sun Dec 03, 2006 1:41 am ]
Post subject:  How to link media through NFS?

I have a nice 560 GB of video that I'd like Myth to see and allow me to view. I have all the video on a media station that I'd rather not disassemble and put in my mythbox at the momoent. I went through and dropped a link into the /myth/video but seems you cannot browse folders.....?

Is there a way to get media to show up in the "watch video" section if it is broken into folders? From what I have seen all video must reside on the mythbackend and be thrown into one folder? I'd like to keep my file structure and still be able to navigate folders through the "watch video" section is that possible?

System that has all the videos is a Debian TB raid box so I thought a ln -s would work but....... any help is appreciated.

Edited the thread name from "through SMB?" to "through NFS?" just to make it easier for people to find if they so needed this help.

Author:  graysky [ Sun Dec 03, 2006 5:32 am ]
Post subject: 

Why would you use samba for LINUX-to-LINUX communication? It works fine through NFS. Look here on the wiki for instructions on setting up NFS....

Author:  Efvin [ Sun Dec 03, 2006 11:51 am ]
Post subject: 

Eitherway, I had, used the box to link to my windows PC so I used SMB....that and I wrote the post at like 3am my time. Brain dead I guess...?


Using NFS I can't seem to get the fun "permission denied" message to go away. I did edit the /etc/exports to show

/storage *(rw,all_squash,anonuid=65344,anongid=65344)

Tried many different variants of the line to see what might be blocking it. It gives the denied by server so.... it's the server. I'm not too sure as to what though, the UID/GID match, the versions match, Myth can see the shares. I dunno.

Author:  akulcsar [ Mon Dec 04, 2006 10:55 pm ]
Post subject: 

Efvin:

I have my videos stored on a file server completely separate from my MythTV backend, and the videos are separated into folders by genre to make it easier for me to find videos - so your proposed setup definitely works.

I guess the best way is to start simple to help determine what the problem is. The first thing that I would do is to change your /etc/exports file to be the very simple

Code:
/storage *(rw)


NOTE: IF YOU ARE NOT BEHIND A NAT ROUTER, DO NOT DO THIS! :-)

Remember to restart your nfs server process any time you edit /etc/exports - it does not actively read the configuration file while running.

Then, from a different linux box (any will do), switch to root and do something like

Code:
# mount server.ip.address:/storage /mnt/temp


If the mount succeeds without error, try to list the contents of the nfs mount:

Code:
# ls /mnt/temp


If that works, switch out of root and try to list the contents again as un unprivileged user:

Code:
$ ls /mnt/temp


If this succeeds, then all of your ingredients are there - just modify the recipe so that it is appropriate to your setup. I have the nfs share mounted read only (none of my MythTV machines need write access to the video directory) at /myth/video on all of my MythTV machines (frontends and backends). Works like a champ for me.

If any of this fails for you, you either have a configuration error (unlikely) or a permissions error (much more likely). In either one of those cases, post your steps and your error codes/statements and we'll try to help.

Good luck!

Author:  Efvin [ Tue Dec 05, 2006 2:57 pm ]
Post subject: 

Oddly enough the /etc/exports needed a specific defenition of the client connecting.


ended up having to use:

/storage 192.168.1.99(ro,sync)

With that, all worked and listed, thanks for all that helped, I appreciate it.

BTW: what did you set in order for it to use folders and keep items from file listing only? ****EDIT**** nm, figured it out just set the video browser browses files option.

Author:  mattwire [ Mon Dec 11, 2006 8:58 am ]
Post subject: 

A more flexible line for /etc/exports which would allow any machine on your local network to access the share would be:

/storage 192.168.1.0/255.255.255.0(ro,sync)

That grants access to any machine from 192.168.1.1 to 192.168.1.254

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/