<div dir="ltr">I figured out a way around my issue of mounting the drive at bootup and that was to mount the drive when motion starts and unmounting the drive when it stops.  I wrote a fairly simple script that looks like this and is called connect.sh in /home/pi:<div>
<br></div><div><div>#!/bin/bash</div><div><br></div><div>/bin/echo password | /usr/bin/sudo /usr/bin/sshfs myuser@192.168.16.2:/Users/myuser/motion/blue /mount -o allow_other -o password_stdin</div></div><div><br></div><div>
Once that was created I edited /etc/init.d/motion to run the script when motion starts and unmount when motion ends.  Seems simple enough and it works.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jul 29, 2013 at 10:41 PM, Alan Porter <span dir="ltr"><<a href="mailto:porter@trilug.org" target="_blank">porter@trilug.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and that didn't work yet if I run the command from the command line as root or pi both will work.<br>
</blockquote>
<br></div>
This suggests to me that you have something in your login shell environment that is needed by the script.  I can't imagine what it would be.  It could be something as simple as the search path to find sshfs.  But you could try something like "source /etc/profile ; /usr/bin/sshfs blah blah".<br>

<br>
Better yet, wrap it all in a shell script so you can do whatever kind of sorcery needed without making your crontab look like a beast.  I usually have a $HOME/cron directory for these sorts of scripts.<br>
<br>
Alan<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Trilug-ontopic mailing list<br>
<a href="mailto:Trilug-ontopic@trilug.org" target="_blank">Trilug-ontopic@trilug.org</a><br>
<a href="http://www.trilug.org/mailman/listinfo/trilug-ontopic" target="_blank">http://www.trilug.org/mailman/<u></u>listinfo/trilug-ontopic</a><br>
</blockquote></div><br></div>