Solution found for Automount problem in HiFiBerry

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Solution found for Automount problem in HiFiBerry

Cor van Zundert
Dear all,

Problem:
Booting up a HiFiBerry is going so fast, that the automount is already
executed BEFORE the network connection is available..

This requires you to manually execute a mount -a command to contact the NAS
Share.

Solution:

Add the following lines to /etc.rc.local by the following command

sudo nano /etc/rc.local
while ! ping -c1 www.google.com>/dev/null; do echo "Ping Fail - `date`";
done ; echo "Host Found  - `date`"
sudo mount -a

Regards,
Cor van Zundert.
Eindhoven, The Netherlands.





_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Solution found for Automount problem in HiFiBerry

chris hermansen
Cor and list,

On Thu, Dec 10, 2015 at 8:03 AM, Cor van Zundert <[hidden email]> wrote:
Dear all,

Problem:
Booting up a HiFiBerry is going so fast, that the automount is already
executed BEFORE the network connection is available..

This requires you to manually execute a mount -a command to contact the NAS
Share.

Solution:

Add the following lines to /etc.rc.local by the following command

sudo nano /etc/rc.local
while ! ping -c1 www.google.com>/dev/null; do echo "Ping Fail - `date`";
done ; echo "Host Found  - `date`"
sudo mount -a



I can't say precisely why but I don't like the idea of doing a bunch of pings.  Here are some other ideas:

http://unix.stackexchange.com/questions/121523/check-if-interface-eth0-is-up-configured


--
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.

_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Loading...