FAST DELIVERY ∙ EXPERT TECH SUPPORT
UK STOCK ∙ 2 YEAR WARRANTY
Zidoo Z2000 Pro
Ultra-HD 4K Dolby Vision Home Theatre 3.5" HDD Media Player.
  INCLUDES EXPRESS 2-4 DAY DELIVERY 

Author Topic: [PATCH] Persistent mountpoints for SAMBA / NFS Shares  (Read 137581 times)

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
[PATCH] Persistent mountpoints for SAMBA / NFS Shares
« on: May 06, 2016, 01:49:40 PM »
This process creates persistent mountpoints (permanent folder locations retained after reboot) for Samba or NFS shares (including those with passwords). This improves access to these locations in apps including Kodi.

Credit to pcristi / Looun / Eriol

Requires:

- Windows PC to run the batch file at command prompt.
- Q5/Q10 Pro connected to same network as PC and the IP address of Q5/Q10 Pro (Settings - Network).

Instructions:

Stage 1. Create shortcuts in HiMedia MediaCentre.

- Open MediaCenter.
- Go to LAN / NFS
- Autosearch for PC/NAS.
- Choose your storage/pc and enter user login and password.
- Choose your share folder
- Save the shortcut.



Stage 2. Make your shortcuts persistent.

- Download ShortCut_Mount_v1.5.rar (version 1.5) to Windows PC: http://www.mediafire.com/file/c4koyn5pm413jw4/ShortCut_Mount_v1.5.rar (version 1.5)
- Unzip
- Execeute RUN_ME.bat at Windows command prompt
- Insert Q5/Q10 Pro IP address
- Q5/Q10 Pro will reboot automatically
- After reboot your shortcut shares will be mounted as follows:

Samba: /mnt/sdcard/(server name) _ ( path )
NFS: /mnt/nfsShare/(server name) _ ( path )


Don't remove shortcuts from HiMedia MediaCenter, this will remove the mountpoints.

Version History:

1.5
- Improve Android 7 compatibility
« Last Edit: January 27, 2017, 09:25:00 AM by futeko.com »

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
Re: Solution for password protected shares with Kodi+wrapper
« Reply #1 on: May 06, 2016, 01:53:59 PM »
New method and instructions 2-JUN. Please post feedback at end of thread.
« Last Edit: June 02, 2016, 12:43:48 PM by futeko.com »

looun

  • Senior Member
  • ***
  • Posts: 550
    • View Profile
    • himedia Pro Blog
Re: Solution for password protected shares with Kodi+wrapper
« Reply #2 on: May 06, 2016, 01:57:55 PM »
net mount folder ( es: /mnt/smb/mountpoint_01 ) it's not always fixed, sometimes changed when add or remove shortcut or after reboot.

For expert user it's better Tool Auto Mount http://www.android-mediaplayer.de/index.php/Thread/3299-Tool-Auto-Mount-Multimedia-shared-folder-without-root-Himedia-V200-pro/?postID=51597#post51597
« Last Edit: May 06, 2016, 02:11:30 PM by looun »

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
Re: Solution for password protected shares with Kodi+wrapper
« Reply #3 on: May 06, 2016, 02:05:11 PM »
Ah, really?

That messes up the fix for anything other than just one password protected share..

looun

  • Senior Member
  • ***
  • Posts: 550
    • View Profile
    • himedia Pro Blog
Re: Solution for password protected shares with Kodi+wrapper
« Reply #4 on: May 06, 2016, 02:24:23 PM »
Ah, really?

That messes up the fix for anything other than just one password protected share..

99% is fixed .... but  some times es: blackout, crash ....

hdmkv

  • Senior Member
  • ***
  • Posts: 234
    • View Profile
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #5 on: May 06, 2016, 02:34:58 PM »
Has stayed unchanged for me, at least w/Synology NAS, after reboots. looun's solution is better, but more difficult, so for most users (or impatient ones like me ;)), the described procedure above works very well.
Hi-deft Media Keen Videosaurus

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #6 on: May 06, 2016, 02:54:53 PM »
I agree Looun's solution is better but this is much easier.

Hopefully mountpoint names will stick. They seem to be named sequentially so I don't see why they would change... but... it needs testing.

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #7 on: May 06, 2016, 03:52:32 PM »
This should be OK for multiple shares as long as you don't delete shortcuts in HiMedia Media Center.

If you delete shortcuts then mountpoint order may change and your Kodi shortcut might end up pointing to a different share location.

lotharek

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #8 on: May 16, 2016, 01:07:40 PM »
please, do not consider me stubborn, but :

what about remote smb shares autside local network ?


qqq1971

  • Full Member
  • **
  • Posts: 52
    • View Profile
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #9 on: May 30, 2016, 05:04:49 PM »
First method with shortcuts is broken on the last firmware. No more automount after reboot.

I am trying to use second method, but I have some troubles. I want to mount nfs share, not smb at startup. I use the following command with adb:

c:\adb shell mount -t nfs -o nolock,udp 192.168.1.17:/volume1/video /mnt/nfs/video

I have an error - mount: invalid argument.

I'm not familary know android linux. Seems like mount has different arguments there from other linux. Can someone help me with correct arguments?

And little question. I didn't found rc scripts in /system/etc. Is script install-recovery.sh runs at startup by desing for android? And what is doing ShowToastMessage.apk?

qqq1971

  • Full Member
  • **
  • Posts: 52
    • View Profile
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #10 on: May 30, 2016, 07:28:52 PM »
I have found the right command. if it will be usefull for somebody:

c:\adb shell busybox mount -t nfs -o nolock,udp 192.168.1.17:/volume1/video /mnt/nfs/video

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #11 on: May 31, 2016, 01:09:22 PM »
First method with shortcuts is broken on the last firmware. No more automount after reboot.

Thanks for posting. I will try and get this functionality restored.

looun

  • Senior Member
  • ***
  • Posts: 550
    • View Profile
    • himedia Pro Blog
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #12 on: May 31, 2016, 05:16:28 PM »
there is also easy version for beginer useer:
http://www.android-mediaplayer.de/index.php/Thread/3325-Tool-New-Auto-Mount-Multimedia-shared-folder-EASY-version-Himedia-V200-pro/

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #13 on: May 31, 2016, 05:56:00 PM »
I suspect still not all that easy for the average user!

What would be better is HiMedia implementing something like this into firmware. That's what I will keep asking them to do.

pcristi

  • Senior Member
  • ***
  • Posts: 1334
    • View Profile
Re: Workaround for password protected shares with Kodi+wrapper
« Reply #14 on: June 01, 2016, 10:13:46 AM »
This method does not work in firmware 1.0.3. The network location is not auto-mounted.

We are trying to get HiMedia to restore the automounting.

RestoreMountShortCut_functionality_via_Menu_update

1 Download  RestoreMountShortCut_functionality_via_Menu_update_v1.1.0.zip
http://www.mediafire.com/download/3zac85icilzuu4l/RestoreMountShortCut_functionality_via_Menu_update_v1.1.0.zip
2 Rename  RestoreMountShortCut_functionality_via_Menu_update_v1.1.0.zip to update.zip
3 Copy update.zip to /sdcard/update.zip via ES Explorer / samba share / etc or just put on root of USB/HDD attached device
4 Follow normal Menu update process: - Setting/System upgrade/ Local Upgrade/Please Choose Drive:  Ex: C for /sdcard/update.zip
5 Q10Pro will show an Android droid logo and proceed update.zip file.
Enjoy autoMount SMB/NFS ShortCut and you movie playing via wrapper.

Use at your own risk.
This process is not wipe data, for safety reason please backup all your important information.
« Last Edit: December 20, 2016, 07:41:54 PM by pcristi »

 

DELIVERY ∙ PAYMENT ∙ WARRANTY+RETURNS ∙ ABOUT ∙ PRIVACY ∙ FORUM ∙ CONTACT ∙ COMPARE AUDIO STREAMERS
© SDHDIGITAL LTD 2024