• The forum software that supports hummy.tv has been upgraded to XenForo 2.1!

    This upgrade brings a number of improvements including the ability to bookmark posts to come back to later. Please bear with us as we continue to tweak things and open a new thread for any questions, issues or suggestions in Site/Forum Issues.

[network-shares-automount] package released

I seem to have installed this package in the past, and have a [Shares] folder in My Video with one linked share. I now want to add a 2nd share, but I don't have a [Modsettings] folder. What's the best way to proceed?
 

Black Hole

May contain traces of nut
It won't work without a [Modsettings] folder for the configuration, so I don't see how you have a working share. Reinstall the package.
 

zekepliskin

Member
I do like how these packages work together. For example, using network-shares-automount to have a link to anotherwhere to store TS files and having the HDR Fox T2 redraw the support files using the sidecar package. Even more impressive is that using TSmuxerGUI to make M2TS files and rename them to TS allows H.264/AAC with full EPG data and transport support, getting around the "no AAC" limitation of AV2HDR-T2 v1.0 which as far as I know is still the most recent version.
 

Matthew

Member
I have a BT Hub 5 and wished to access the old Humax HDD plugged into its USB port from both the PC (Linux) and the HDR Fox T2

The drive is accessible on the PC through SAMBA at smb://bthub5 each partition showing as usb1 etc

With this package installed I used the following settings:

Code:
[ModSettings]

smb
Old-Drive
domain=Workgroup
folder=usb2
host=192_168_1_254
mac=ABABABABABAB (leave as is)
password=Password (leave as is)
shareFolder=on
user=User (leave as is)
wakeConstantly? (leave as is)
wakeNow? (leave as is)
With these the HDD is accessible in the media folder under 'Old-Drive' folder and within the 'My Video' folder under '[Shares] Do not delete!/Old-Drive' so files are available in the box menus.

My queries are:

Any way to set a drive folder as the mount point, ie usb2/My\ Video

Has anyone tested transfer speeds of a shared drive vs T2 usb connected?
 

Black Hole

May contain traces of nut
I strongly recommend you DO NOT use shareFolder=on. This results in the remote mount being accessible in My Video via Media >> Storage >> HDD, which is convenient, but the normal Humax operating code does not expect there to be external mounts integrated into the local file system so will treat the remote storage as part of the local storage... resulting in problems with calculating free space and potentially long scan times for the DLNA indexer.

Stick with shareFolder=off, and then access the remote drives via Media >> Storage >> USB.

Yes, it is possible to create specific mount points but you need to create your own initialisation routines that will execute at boot time: https://hummy.tv/forum/threads/symbolic-link.3926/
 

Matthew

Member
Stick with shareFolder=off, and then access the remote drives via Media >> Storage >> USB.
Thanks for the advise, but the problem is with share off the mount only appears in media and USB does not appear in storage, what setting needs to change for that to happen?
 

Black Hole

May contain traces of nut
Thanks for the advise, but the problem is with share off the mount only appears in media and USB does not appear in storage, what setting needs to change for that to happen?
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).
IIRC the problems mentioned have been solved (an annoying on-screen message on startup). Personally, I have a small cheap UPD fitted in the rear USB port at all times.
 

Black Hole

May contain traces of nut
Any way to set a drive folder as the mount point, ie usb2/My\ Video
Yes, it is possible to create specific mount points but you need to create your own initialisation routines that will execute at boot time: https://hummy.tv/forum/threads/symbolic-link.3926/
Further to the above, it is also possible to create an SMB share to a specific sub-folder tree (that can then be targetted by network-shares-automount): https://hummy.tv/forum/threads/network-shares-automount-package-released.1126/post-38582. Note this can be essential for USB drives with SMB, because SMB's default is to mount the whole tree - which means any network-shares-automount mounts as well, which might include cross-mounts from remote network-shares-automount mounts... which sets up a "deadly embrace".

An alternative solution is to use the NFS options in [ModSettings] instead of SMB, because NFS only mounts the My Video folder by default.

File editing is available via WebIF >> Diagnostics >> File Editor >> Open.
 
Last edited:

Matthew

Member
Yes, it is possible to create specific mount points but you need to create your own initialisation routines that will execute at boot time: https://hummy.tv/forum/threads/symbolic-link.3926/
Thanks for that, though it does not work as written, my reading of

Code:
video="/media/My Video"
folder="[Unclassified]"
[ -d "$video/$folder" ] && ln -s "$video/$folder" "/media/$folder"
is if folder exists in My Video create a link in media to it, which is the wrong way around, I changed it to:

Code:
video="/media/My Video"
media="/media/"
name="Old-Drive"
[ ! -d "$video/$name" ] && ln -s "$media$name" "$video/$name"
I inserted this into /mod/sbin/scanmounts to ensure it ran after the mount (no need to set name there as the existing code does that).

That works, but as you found the symbolic shows in the webif but does not show on the box!

the mount only appears in media and USB does not appear in storage
Black Hole said:
Note that to make all this work, a real USB drive (UPD or HDD) must be fitted to the client unit.
Sorry didn't spot that, annoying, but as you and prpr suggested the virtual-disk2 package solves that problem :)

Further to the above, it is also possible to create an SMB share to a specific sub-folder tree (that can then be targetted by network-shares-automount): https://hummy.tv/forum/threads/network-shares-automount-package-released.1126/post-38582. Note this can be essential for USB drives with SMB, because SMB's default is to mount the whole tree - which means any network-shares-automount mounts as well, which might include cross-mounts from remote network-shares-automount mounts... which sets up a "deadly embrace".
Thanks but I tried all combinations and it just does not work in my scenario, perhaps the BT Hub does not play as nicely as what you are using. :(
 

Matthew

Member
Found a problem, once a symbolic link is created it seems you can't delete it!

i.e. having created a link with

Code:
ln -s "$media$name" "$video/$name"
then removing the linked device and deleting the created link, as soon as the device is re-connected the link re-appears!

so any idea how to safely delete a symbolic link without deleting the content it links to?
 
Top