2016-02-18, 13:59
"--local" needs to be the smb://FREENAS/media path as it is mounted by the client on which you're running mklocal.py.
For a Linux/OpenELEC machine, this would be the mount point. Since this is an smb path, you'd need to mount /FREENAS/media as a CIFS filesystem in OpenELEC, perhaps with autostart.sh or as part of whatever script you're using to run mklocal.py, then use the local mount path as the --local parameter.
Something like the following should work:
change UNAME and PWORD to be a Windows username and password that has read/write access to the media share. Then use "--local /storage/media".
When you're done running mklocal.py, use "umount /storage/media" to unmount the filesystem (no, umount isn't a typo).
If you were to run the script on Windows, assuming you have /FREENAS/media mapped as your Z drive then "--local Z:\" would work. Or you could use a UNC, ie. "--local \\FREENAS\media".
For a Linux/OpenELEC machine, this would be the mount point. Since this is an smb path, you'd need to mount /FREENAS/media as a CIFS filesystem in OpenELEC, perhaps with autostart.sh or as part of whatever script you're using to run mklocal.py, then use the local mount path as the --local parameter.
Something like the following should work:
Code:
mkdir -p /storage/media
mount -t cifs -o username=UNAME,password=PWORD,sec=ntlm //FREENAS/media /storage/media
change UNAME and PWORD to be a Windows username and password that has read/write access to the media share. Then use "--local /storage/media".
When you're done running mklocal.py, use "umount /storage/media" to unmount the filesystem (no, umount isn't a typo).
If you were to run the script on Windows, assuming you have /FREENAS/media mapped as your Z drive then "--local Z:\" would work. Or you could use a UNC, ie. "--local \\FREENAS\media".