[mythtv-users] What's the easiest way in 0.24 to add media from a Windows share?
Nick Rout
nick.rout at gmail.com
Mon Jan 17 21:42:03 UTC 2011
On Tue, Jan 18, 2011 at 10:31 AM, cbeerse at gmail.com <cbeerse at gmail.com> wrote:
> On 12-11-2010 15:45, Richard Morton wrote:
>>
>> there are GUI methods to do it, webmin can also do it, but the common
>> denominator is fstab...
>>
>> R
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
> For the commandline without fstab (which roughly uses the same options):
>
> sudo mount -t cifs -o username=account at machine,password=password
> //machine/share /local/path
>
> Details:
>
> - add `sudo ` to the front if you are not runnng as root.
> - the part "username=account at machine,password=password" should not contain
> spaces.
> - if you donnot want to specify your windows password, just use
> "username=account at machine", the mount command will ask for your password.
> - if you use a domain password, use
> "username=account at domain,password=password" where domain is the fully
> qualifyed domain.
> - yep, use "//machine/share" with forward slashes!
> - the local path can be any existing directory. I can imagine to use
> "/media/machine/share". Either way, the local directory needs to exist.
>
> - the equivalent automatic mounting /etc/fstab line is (this needs the
> password in there):
> //machine/share /local/path cifs
> username=account at machine,password=password 0 0
>
> - the equivalent manual mounting /etc/fstab line is:
> //machine/share /local/path cifs noauto,username=account at machine
> 0 0
> - to mount the manual mounting line use: `mount /local/path` or `mount
> //machine/share`. Both will ask for the password of the account at the
> remote machine.
>
> CBee
Never put the password in fstab. It is there for the world to see.
My line is:
//elrond/nick /var/lib/mythtv/videos/elrond cifs
credential=/root/cifscredentials 0 0
where /root/cifscredentials is readable only by root.
format of cifscredentials is:
username=nick
password=you_think_i\'m_gonna_post_that_here\?
More information about the mythtv-users
mailing list