<div dir="ltr">Hi Tim,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 9, 2017 at 7:13 PM, tim Rowledge <span dir="ltr"><<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
Further info on this afpfs thing -<br>
<span class="gmail-"><br>
> Bascially<br>
> `sudo apt-get install afpfs-ng`<br>
> `mkdir mymountpoint`<br>
> `chmod og-rwx mymountpoint`<br>
> `mount_afp afp://username:password@<wbr>macnameorip/targetdir mymountpoint`<br>
> or to be more literal<br>
> mount_afp afp://fred:flintstone@fredMac/<wbr>squeakdev /home/pi/squeakdev<br>
> It works with FUSE, so maybe you want to install that too.<br>
<br>
</span>Well, trying to add it to my /etc/fstab has been… annoying. It’s not just me, since I’ve found perhaps several hundred web hits from people having a hard time with it. The first part of the problem is that the purported fstab line to use is of the form<br>
(from <a href="https://sites.google.com/site/alexthepuffin/home" rel="noreferrer" target="_blank">https://sites.google.com/site/<wbr>alexthepuffin/home</a> by the author)<br>
"afpfs#afp://<a href="http://username:mypass@10.211.55.2/alexdevries" rel="noreferrer" target="_blank">username:mypass@<wbr>10.211.55.2/alexdevries</a> /tmp/xa20 fuse user=adevries,group=fuse 0 0 “<br>
<br>
BUT this prevents the Pi from booting. Urk. By sheer fluke I was doing this test on a Pi that is set to boot from a usb disk so it was reasonably easy to mount it on another Pi and eventually I worked out how to find the fstab and comment out that line. I tried rebooting and then re-enablgin the line and using `sudo mount -a` to see what happens and apparently there was no `afpfs` command; after more fun time googling I discovered this was supposed to be  bash script `/sbin/afpfs` that moves around the arguments (why? why ever do them in a different order to the main command?) and then I discovered a page from a Pi book that google had scanned which mentioned manually creating this file. Huh? Not included in the install package?<br>
<br>
OK, make the script as shown (and eventually found in the source code for the thing) and try that. Nope, refuses to boot, so redo the cross-mounting and modify fstab, again. You get the general gist of it; many hours spent searching, trying ideas suggested by people having related issues, rebooting and so on. I did finally find a version of the fstab line that does allow the boot to complete, albeit very, very, slowly and without actually making the mount available -<br>
<br>
afpfs#afp://username:password@<wbr>TCname.local/sharename /mountpoint fuse user=osmc,group=fuse,x-<wbr>systemd.automount,noauto 0 0<br></blockquote><div><br></div><div>You and I talked on the phone yesterday evening but for other's benefit in fstab # is the comment character.  See <a href="https://wiki.debian.org/fstab">https://wiki.debian.org/fstab</a>.  So in the above you probably want to replace # with, say, a tab.</div><div><br></div><div>HTH</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
So right now I’m stuck and annoyed and frustrated. This isn’t how things should work but seems to have become the standard over the last years. Grrr. Suggestions for solutions welcomed.<br>
<span class="gmail-"><br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
</span>Strange OpCodes: CCP: Clear Core and Proceed<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>