Jump to content


Photo

How to mount shares automatically after start or reboot

automount Mount Manager

  • Please log in to reply
9 replies to this topic

#1 phruby

  • Member
  • 2 posts

0
Neutral

Posted 19 January 2016 - 00:30

Hi, 
I am using xTrend ET8000 with OpenPLi build from January 16, 2016. I created mount points as CIFS shares for shared folders in Windows Home Server 2011 using Mount Manager in Setup/System/Network/WLAN connection.
 
The problem is that after each restart of ET8000 I need to remount the shares again by clicking "Setup/System/Network/WLAN connection/Mount again."  
 
Is there a way to mount the shares automatically, after start or reboot of ET8000? 
 
The mount points in Mount Manager are configured as follows:   
Active: enable
Local share name: Media
Mount type: CIFS share
Server IP: 192.168.1.6
Server share: Media
use as HDD replacement: no
Mount options: ro
Username: ****
Password: ****
 
Thanks,
Pavel


Re: How to mount shares automatically after start or reboot #2 littlesat

  • PLi® Core member
  • 57,413 posts

+708
Excellent

Posted 19 January 2016 - 07:43

The should do usually... But I read somewhere else that there is an issue with the et8k related to the network not initializing when performing a reboot... As far I understand extrend needs to upgrade the bsp layer to fix this...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: How to mount shares automatically after start or reboot #3 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 19 January 2016 - 07:56

Yes, it worked normally. My xtrend et8000 connects the configurated mountpoints after reboot successfully, but mybox don´t need the fix for ethernet, but a friend of me has the problem with the network and reboots)

But I surprise that mountpoint work  if phruby makes a mount again. I understand the ethernetd driver bug has the effect that ethernet doesn´t work any time. Only switching off the box, waiting some minutes, switching on the box will wokraround the ethernet driver bug.

 

We hope the fix inside the bsp for the ethernet of xtrend et8000 will be available end this week in PLI nightly builds


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: How to mount shares automatically after start or reboot #4 WanWizard

  • PLi® Core member
  • 70,818 posts

+1,831
Excellent

Posted 19 January 2016 - 13:45

If the box uses a WLAN connection, it could well be that it takes to long for the network connection to be set up.

 

These mounts are made when Enigma starts, if there is no network connection when this happens, the mounts can not be made, and Enigma will not wait...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: How to mount shares automatically after start or reboot #5 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 19 January 2016 - 14:06

ups, you are right, he use WLAN and not LAN.


Edited by anudanan, 19 January 2016 - 14:07.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: How to mount shares automatically after start or reboot #6 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 19 January 2016 - 14:16

Is there a way to start WLAN earlier during booting linux and  atfer some waiting time a delayed start of  enigma ?


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: How to mount shares automatically after start or reboot #7 WanWizard

  • PLi® Core member
  • 70,818 posts

+1,831
Excellent

Posted 19 January 2016 - 15:08

You can create a script called "/usr/bin/enigma2_pre_start.sh", it will be called if it exists before enigma starts. Make sure you make it executable.

 

You can use this to wait for maximum 30 seconds for a network link:

#
# Wait for the default gateway to become reachable
#
timeout=30

while [ $timeout -ne 0 ] ; do
    ip=`ip r | grep default | cut -d ' ' -f 3`
    if [ ! -z $ip ]; then
        ping -q -w 1 -c 1 $ip > /dev/null
        if [ $? -eq 0 ]; then
            break;
        fi
    fi
    let "timeout--"
    sleep 1
done

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: How to mount shares automatically after start or reboot #8 phruby

  • Member
  • 2 posts

0
Neutral

Posted 19 January 2016 - 23:13

Hi,

Thank you for a quick reply. However, it did not seem to work.

 

Here is what I did: I created a text file enigma2_pre_start.sh containing the script in the previous message, and using Windows explorer on a PC copied it into ET8000, into the folder \\ET8000\Root\usr\bin. It is the folder where also the file enigma2.sh is. 

 

In Windows Explorer, I right-clicked enigma2_pre_start.sh and assigned it the same security properties as the script enigma2.sh has: i.e. Everyone and root (Unix Group \root) have rights to read & execute, and root (Unix User\root) has full control. If this is not correct, could you write step-by-step how to "make sure to make it executable", please? I am not very familiar with Linux. 

 

Additional notes, in case it might be relevant:

1. I am using a WLAN USB dongle (model MK-Digital USB WLAN N300, based on Realtek RTL8192CU chipset). In OpenPLi, I could not connect to WLAN when using DHCP. WLAN first started working after I assigned a static IP to ET8000.

2. WLAN connects quite fast. When TV starts playing, WLAN is already connected. 

3. In Setup/System/Network/WLAN connection/Show WLAN status, the field Encryption has value "Unsupported". Nevertheless, ET8000 is connected using WPA encryption (WPA2 did not work). 

4. The automount after reboot worked perfectly in OpenATV image. OpenATV had other problems. mainly with Media Player, but shared folders were mounted automatically after reboot. 

 

Any suggestions?

Thanks,

Pavel



Re: How to mount shares automatically after start or reboot #9 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,967 posts

+191
Excellent

Posted 20 January 2016 - 07:42

Linux and Windows don't play well together. Using a windows editor on files you use in a Unix say Linux environment is a no-no. I suggest you use notepad++ ( https://notepad-plus-plus.org/ ) better is to write it in a Linux environment with a native editor like Vi.

If you login with telnet (you could do this with putty http://www.chiark.gr...y/download.html ) and do a "ls" in the /usr/bin folder, then you'll see that only the executable files are green and the sh file you have created is probably not. You could try to make the file executable with "chmod 755 enigma2_pre_start.sh" without the "".


Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K  - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport

---------------------------------------------------------------------------------------------------------------------------------------

Remember: Upvote with the rep_up.png button for any user/post you find to be helpful, informative, or deserving of recognition!

---------------------------------------------------------------------------------------------------------------------------------------

Many answers to your question can be found in our new and improved wiki

Note: I do not provide support via PM !.


Re: How to mount shares automatically after start or reboot #10 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 20 January 2016 - 07:56

Perhaps this
http://forums.openpl...ot/#entry526058
also fixes your problem. But changes are not yet in the image.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04



Also tagged with one or more of these keywords: automount, Mount Manager

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users