<div dir="ltr"><div class="gmail_default" style="font-size:small">For now, I&#39;ve added: <br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">cryptsetup luksClose DRIVE_NAME</div><div class="gmail_default" style="font-size:small">crypsetup luksOpen  --key-File /dev/disk/by-uid/xxxxxxxxxxxx DRIVE_NAME</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">to my daily script.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Doing it manually like this, cryptsetup doesn&#39;t seem to care that there&#39;s a duplicate device id and it opens the disk regardless, allowing it to mount when accessed and the backup script runs successfully (still using autofs) . </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks for the ideas. I still need to do something more elegant for a permanent solution, probably involving udev.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Still, most odd that it works fine on several identical boxes, but not on others. I&#39;m beginning to wonder if maybe the USB3 cards in some servers are flakey. Testing that hypotheses is tricky as these are remote sites with extremely non tech-savvy people on site.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">ed</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 17, 2016 at 9:44 AM, Alex Carver <span dir="ltr">&lt;<a href="mailto:agcarver+ale@acarver.net" target="_blank">agcarver+ale@acarver.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Right, I wrote that in the last of my examples.  A rule that checks the<br>
ID and runs the mount script.<br>
<div class="HOEnZb"><div class="h5"><br>
On 2016-06-17 06:17, Phil Turmel wrote:<br>
&gt; For the OP, bus and port and usb serial don&#39;t really matter.  He&#39;s<br>
&gt; getting reliable /dev/disk/by-id/ symlinks -- doesn&#39;t need more.  But an<br>
&gt; udev rule can run a script on any newly inserted disk to check if it&#39;s a<br>
&gt; backup disk, and which one, and conditionally spawn the backup process.<br>
&gt;<br>
&gt; On 06/16/2016 11:52 PM, Chris Fowler wrote:<br>
&gt;&gt;     *From: *&quot;Alex Carver&quot; &lt;<a href="mailto:agcarver%2Bale@acarver.net">agcarver+ale@acarver.net</a>&gt;<br>
&gt;<br>
&gt;&gt;     However, these devices I&#39;m using do not have unique serial numbers which<br>
&gt;&gt;     is why I&#39;m working with them via their bus number.<br>
&gt;<br>
&gt;&gt; I do the same.  USB port = tty name<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Ale mailing list<br>
&gt; <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
&gt; <a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
&gt; See JOBS, ANNOUNCE and SCHOOLS lists at<br>
&gt; <a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div><br></div><div><br></div><div><br><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">_________________________________________ </span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:11pt">Edward O. Holcroft</b><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">IT Operations Manager</span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:11pt">Madsen, Kneppers &amp; Associates, Inc.</b><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">Construction Consultants &amp; Engineers </span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">11695 Johns Creek Parkway, Suite 250</span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">Johns Creek, GA 30097</span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">O</b><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">  770.446.9606  |  </span><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">F</b><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">  770.446.9612  |  </span><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">C</b><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">  770.630.0949  |  <a href="mailto:eholcroft@mkainc.com" target="_blank">eholcroft@mkainc.com</a></span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><a href="http://www.mkainc.com" target="_blank">www.mkainc.com</a> </span><br></div></div></div></div></div></div></div>
</div>

<br>
<span style="font-family:arial"><font size="2">MADSEN, KNEPPERS &amp; ASSOCIATES USA, MKA Canada Inc. WARNING/CONFIDENTIALITY NOTICE: This message may be confidential and/or privileged. If you are not the intended recipient, please notify the sender immediately then delete it - you should not copy or use it for any purpose or disclose its content to any other person. Internet communications are not secure. You should scan this message and any attachments for viruses. Any unauthorized use or interception of this e-mail is illegal.</font></span>