NFS Mounting

Help with booting MiniMyth

Moderator: Pablo

Post Reply
SirElmo
New Member
Posts: 7
Joined: Sun Aug 23, 2009 5:39 am

NFS Mounting

Post by SirElmo » Sun Aug 23, 2009 5:44 am

I am trying to mount several NFS shares and I am having problems finding the correct way of doing this. I was able to successfully connect one share using the MM_MEDIA_GENERIC_LIST, but was unable to add the additional shares using this format. So I tried using the mount_url function in the minimyth.pm file, but I keep getting an undefined subroutine error with that one. I have search the documents and these forums and haven't been able to find anything about using them. Can anyone help me figure out the problem here?

SirElmo
New Member
Posts: 7
Joined: Sun Aug 23, 2009 5:39 am

Re: NFS Mounting

Post by SirElmo » Sun Aug 23, 2009 10:43 pm

I was able to get this working by searching some of the source code. Turns out the documentation needs to be updated. Minimyth Documentation states:
Second, there is a MiniMyth.pm function called 'Minimyth::mount_url' that you might find useful.
This does not seem correct. The correct function name is

Code: Select all

$minimyth->url_mount(url,Mount point)
Using the correct function resolved the issue.

But instead of having to create this .pm file, I would still like to see the correct formatting of multiple mount points for the MM_MEDIA_GENERIC_LIST value. This way I can keep all configurations in one file.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: NFS Mounting

Post by Pablo » Thu Aug 27, 2009 11:02 pm

The documentation has been fixed.

What problem are you encountering using MM_MEDIA_GENERIC_LIST?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

SirElmo
New Member
Posts: 7
Joined: Sun Aug 23, 2009 5:39 am

Re: NFS Mounting

Post by SirElmo » Fri Aug 28, 2009 12:10 am

Pablo wrote:What problem are you encountering using MM_MEDIA_GENERIC_LIST?
When I try putting multiple space separated shares on the line, as indicated in the documentation, only the first one is mounted.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: NFS Mounting

Post by Pablo » Fri Aug 28, 2009 3:01 am

I am not having this problem. Could you post your variable?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

SirElmo
New Member
Posts: 7
Joined: Sun Aug 23, 2009 5:39 am

Re: NFS Mounting

Post by SirElmo » Fri Aug 28, 2009 3:39 am

Pablo wrote:I am not having this problem. Could you post your variable?
This is the one that worked:

Code: Select all

MM_MEDIA_GENERIC_LIST=/MythMedia2=nfs://192.168.0.150/MythMedia2
I tried the following:

Code: Select all

MM_MEDIA_GENERIC_LIST=/MythMedia2=nfs://192.168.0.150/MythMedia2 /MythMedia3=nfs://192.168.0.150/MythMedia3
MM_MEDIA_GENERIC_LIST="/MythMedia2=nfs://192.168.0.150/MythMedia2" "/MythMedia3=nfs://192.168.0.150/MythMedia3"
What just came to mind when you asked and that I didn't try was:

Code: Select all

MM_MEDIA_GENERIC_LIST="/MythMedia2=nfs://192.168.0.150/MythMedia2 /MythMedia3=nfs://192.168.0.150/MythMedia3"
That seemed to have done the trick. An example for this one would have been helpful.

Thanks.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: NFS Mounting

Post by Pablo » Fri Aug 28, 2009 4:26 am

I am glad you got it working. As you discovered, you should be enclosing variable values in quotes (because they are shell variables). I believe this is covered in the general section of the minimyth.conf documentation.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

SirElmo
New Member
Posts: 7
Joined: Sun Aug 23, 2009 5:39 am

Re: NFS Mounting

Post by SirElmo » Fri Aug 28, 2009 4:45 am

Pablo wrote:I am glad you got it working. As you discovered, you should be enclosing variable values in quotes (because they are shell variables). I believe this is covered in the general section of the minimyth.conf documentation.
Yes it does. It states:

Code: Select all

{variable-name}='{variable-value}' 
But it doesn't describe how you should put two of them on one line.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: NFS Mounting

Post by Pablo » Fri Aug 28, 2009 4:17 pm

SirElmo wrote:
Pablo wrote:I am glad you got it working. As you discovered, you should be enclosing variable values in quotes (because they are shell variables). I believe this is covered in the general section of the minimyth.conf documentation.
Yes it does. It states:

Code: Select all

{variable-name}='{variable-value}' 
But it doesn't describe how you should put two of them on one line.
There is only one variable-name and one variable-value. The fact that the variable-value is a list does not change that.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

SirElmo
New Member
Posts: 7
Joined: Sun Aug 23, 2009 5:39 am

Re: NFS Mounting

Post by SirElmo » Sat Aug 29, 2009 12:36 am

Pablo wrote:There is only one variable-name and one variable-value. The fact that the variable-value is a list does not change that.
Yes. But a simple example would be very helpful in preventing this type of misunderstanding, especially since the variable-value contains and equal sign and I confused the variable-name part to be the NFS mount point.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: NFS Mounting

Post by Pablo » Sat Aug 29, 2009 2:46 pm

Done.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

SirElmo
New Member
Posts: 7
Joined: Sun Aug 23, 2009 5:39 am

Re: NFS Mounting

Post by SirElmo » Sat Aug 29, 2009 3:36 pm

Thanks. And thanks for all the hard work you have done with this project. I know putting up with jerks like me isn't easy. :)

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: NFS Mounting

Post by Pablo » Sat Aug 29, 2009 4:47 pm

SirElmo wrote:Thanks. And thanks for all the hard work you have done with this project. I know putting up with jerks like me isn't easy. :)
Actually, thank you.

I appreciate people that identify and spend the time to help troubleshoot problems. Whether the issue is with MiniMyth's binaries, source or documentation, having the help of others with different frontend hardware, usage models, build hosts and points of view makes MiniMyth better for everyone.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply