[What follows was posted in response to people reporting difficulty knowing what to put in the automount data fields. Newcomers to this topic should check out post #1.]
Since originally posted, developments (particularly to the samba package) have altered the details. Post last updated: 2020/02/25
USB-Style Auto-Mount Example
For the record, bearing in mind I have Samba* running on the HDR-FOX and I access it using
auto-mount and CIFS* on the HD-FOX, my settings (on the HD-FOX - but the same works on another HDR-FOX) look like this:
(* - The
samba package is installed on the HDR-FOX, and CIFS support is installed on the HD-FOX by installing the
network-shares-automount package.)
Media - Video
(select with the yellow button)
USB (select with the blue button - this would be "HDD" if the client is HDR-FOX)
drive1
(my Ext2 UPD containing the custom software - this would be the top level "My Video" if the client is HDR-FOX)
[ModSettings]
smb
HDR-FOX
domain=Domain or Workgroup (leave as is)
folder=My Video (this is the "access point" to the remote device's media folders)
host=192_168_1_68 (the IP address for the HDR-FOX on my network)
mac=ABABABABABAB (leave as is)
password=Password (leave as is)
shareFolder=off (leave as is)
user=User (leave as is)
wakeConstantly? (leave as is)
wakeNow? (leave as is)
Note that only two parameters have to be changed to achieve a basic mount.
The result of this, as long as the HDR-FOX is booted, is an additional "drive" listed below drive1 (under
Media >> Storage >> USB) called "HDR-FOX", which I can access using the handset to access the My Video folder on the HDR-FOX, with all the facilities of OPT+ etc as if I was doing it locally.
However, also for the record, although all the recordings become visible this way, they will not play unless they have been decrypted
first. For the full gen on decryption, see
Things Every... (click) section 5, and click through from there. Alternatively, use the CF facilities to change the encryption keys on the units to match each other:
WebIF >> Settings >> Advanced Settings (choose something like 32 "0"s). All existing recordings will need to have been decrypted prior to changing the key, if you want to keep access to them.
The updated version of the
samba package makes all the "top level" folders (
My Video, My Music, My Photo) available as mount folders, although only
My Video is applicable for access to video recordings (
Media >> Media >> Video). Any devices listed under
Media >> Storage >> USB are also available as mounts, and they are updated dynamically as devices are plugged in or removed from the server. If desired, each can be given a separate entry under
[ModSettings] >> smb. Alternatively, the master Media folder point is available (under which all the above are available as sub-folders in one mount). If you require this functionality, set "
folder=Media".
Note that to make all this work, a real USB drive (UPD or HDD) must be fitted to the client unit. This is not an issue for HD-FOX (which requires a USB drive to be fitted in order to host the custom firmware), but catches out people trying this on an HDR-FOX. Alternatively, install the
virtual-disk2 package on the client HDR-FOX (but this comes with its own set of problems).
Using HD-FOX as a Server
This did not used to be a practical proposition, because of the limited ability for HD-FOX to decrypt recordings (and therefore play those recordings on another unit via network share). However, facilities now exist in the CF to decrypt individual recordings without booting to HDR Mode (albeit slowly), or the encryption key for the client machine can be changed to match the server machine (or vice versa) - with the requirement that existing recordings will need to be decrypted before changing the key. A user key can be set using
WebIF >> Settings >> Advanced Settings (32 "0"s is a good choice), and note that this is imposed by the CF each boot so without the CF the unit reverts to its original key.
Details below were originally posted here:
https://hummy.tv/forum/threads/foxlink-simple-way-to-link-a-hd-to-a-hdr.2974/post-138257
Using
samba on the server HD-FOX with the default smb.conf (192,168.1.23 is the IP address of my server HD-FOX, not necessarily yours):
[ModSettings] >> smb >> <name_of_your_choice> >>
Code:
domain=Domain or Workgroup
folder=Media
host=192_168_1_23
mac=ABABABABABAB (only needed for wakeUp)
password=Password
shareFolder=off
user=User
wakeConstantly?
wakeNow?
Or this works:
But this doesn't:
("Media" corresponds with an explicit share in smb.conf, and "drive1" is an explicit share auto-generated in smb-hotplug.conf when an external drive is detected - which, in the case of a HD-FOX, is always.)
However, with the following added to smb.conf (on the server HD-FOX),
folder=Video
works:
Code:
[Video]
comment = Video
path = /media/drive1/Video
public = yes
writable = yes
browsable = yes
create mask = 0644
directory mask = 0755
hide dot files = no
NB: I think "folder" is a misleading choice of term in [ModSettings] - the string here is not a folder name, but a share name explicitly configured in
mod/etc/smb.conf masquerading as a folder name, and the actual folder is defined by the "path" string (in the definition in smb.conf).