<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 11, 2017 at 2:45 AM, 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:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 10-08-2017, at 10:43 AM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
><br>
<br>
> 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" rel="noreferrer" target="_blank">https://wiki.debian.org/fstab</a>.  So in the above you probably want to replace # with, say, a tab.<br>
<br>
Yah, but the really weird thing is that the damn afpfs command *does* actually get the stuff after the # ! No idea why or how.<br>
As an example, with /sbin/afpfs defined as<br>
#!/bin/bash<br>
set -x<br>
mount_afp $3 $4 $1 $2<br>
<br>
(with the set - x to make it output tracing so I can see what’s happening)<br>
<br>
and fstab including<br>
afpfs#afp://tim:miner5a@Diziet<wbr>/tim /home/pi/TestDir fuse user=pi,group=root 0 0<br>
<br>
You get<br>
pi@Goldskin:~ $ sudo mount -all<br>
+ mount_afp -o rw,group=root,user=pi,exec,<wbr>suid,dev,dev,suid afp://tim:timpwd@Diziet/tim /home/pi/TestDir<br>
Unknown option exec, skipping<br>
Unknown option suid, skipping<br>
Unknown option dev, skipping<br>
Unknown option dev, skipping<br>
Unknown option suid, skipping<br>
Mounting Diziet from tim on /home/pi/TestDir<br>
Mounting of volume tim of server Diziet succeeded.<br>
<br>
I’m not having any cluefulness of how that ends up working. I can see how the $1 is "afp://tim:…" etc and $2 is "/home/pi/…" but surely the n$3 should be ‘fuse’ and $4 ‘user=pi,group=root’ ? And yet it adds a ‘-o rw,’ swaps the user & group bits, adds ‘suid’ and so on… madness. Just plain madness. Madness of a scale not seen since Mad Mick McMad won the All Scotland Maddest Mad competition<br>
<br>
The new part that seems to add some goodness was making the group=root instead of ‘fuse’. I tried that because of a comment about ‘the group should be the owner group of the /dev/fuse’ though it also said that ought to be ‘fuse’. Of course, the above fstab line makes mounting with `sudo mount -all` work but does not work when rebooting. To make booting work we have to add the systemd stuff and then - no mounted afpfs connection and trying mount -a doesn’t mount it either.<br>
<br>
So yeah; computers, eh? I know this really isn’t the best place in the world for all this but y’know - a group of people with simialr interests, plenty of unixisers, some with Pi. I *have* emailed the original author to see if he is still at large and interested. We’ll see.<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>Loyalty oaths.Secret searches.No-fly lists.Detention without legal recourse.Remind me - who won the cold war?<br>
<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">If you can't solve the problem, change the problem (again!)</div><div class="gmail_extra">nfs bad, afpfs bad, </div><div class="gmail_extra">may as well double down and go for the trifecta, </div><div class="gmail_extra">maybe try smb?</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://osxdaily.com/2011/09/08/share-files-from-mac-to-windows-pc/">http://osxdaily.com/2011/09/08/share-files-from-mac-to-windows-pc/</a><br></div><div class="gmail_extra"><a href="https://support.apple.com/kb/PH18707?locale=en_US">https://support.apple.com/kb/PH18707?locale=en_US</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://raspberrypi.stackexchange.com/questions/40974/access-network-samba-share-from-pi-client">https://raspberrypi.stackexchange.com/questions/40974/access-network-samba-share-from-pi-client</a><br></div><div class="gmail_extra"><a href="https://www.bitpi.co/2015/02/16/accessing-a-windows-share-with-a-raspberry-pi/">https://www.bitpi.co/2015/02/16/accessing-a-windows-share-with-a-raspberry-pi/</a><br></div><div class="gmail_extra"><a href="https://rasspberrypi.wordpress.com/2012/09/04/mounting-and-automounting-windows-shares-on-raspberry-pi/">https://rasspberrypi.wordpress.com/2012/09/04/mounting-and-automounting-windows-shares-on-raspberry-pi/</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">cheers -ben</div></div>