You could export the physical drive from the Pi using iSCSI and the Mac should have a client to mount that. Given the different marketing segments, I suspect there are relatively few Mac owners who also use Pi computers.THobson wrote: ↑Fri Dec 06, 2019 12:46 amI am not sure if it is allowed here to comment on your own post, but I am curious.
Previously when I have asked questions here I have had many very helpful replies, very quickly. Do I take it from the lack of any replies to my question that it is not possible to gain write access to an external drive connected to the usb3 port of a pi 4 from a machine elsewhere on the network?
Thank you. I do like this forum. Everyone is so polite.renice123 wrote: ↑Fri Dec 06, 2019 7:09 amGood day! I think this question does not concern many people. By tradition, Linux systems often use NFS (or any other protocols with this or that functionality) precisely to prohibit accidental or intentional writing to network file systems. Yes, security policy is sometimes annoying, but it’s security - the better the security, the more uncomfortable for the user. Therefore, creating a python script with the ability to write to a network drive seems to be a global Linux security violation, and naturally, you will have to configure access rights and so on.
Python itself is a language that provokes errors (as it was, for example, with the Ada language), it can hardly be considered a uniquely successful decision to write a program to access a network drive in this language. Although this is a programmer's decision. But you definitely have to solve security issues if you want to create a “Linux solution”, and not just a program for yourself =)
It's nice to see that there are more and more active Linux users and novice programmers trying to create their own solutions! I wish you success!
You are right, mounting a physical drive through the network is easily done, just not common around here. To follow up my post on iSCSI, which should do what you want, here is a link
I think the reason the person making the original post wants to mount a block network device rather than NFS is to be able to format the remote disk with an Apple filesystem that supports backups using timemachine. If this is is the case, then iSCSI can make a physical disk on the Pi appear as if it were connected to the Macintosh, for example.
My impression is there are grownups of all genders from many countries who participate on this forum. Some are not native English speakers, and so things can sound a little strange sometimes to someone for whom English was their mother tongue. At the same time, it is nice to hear what many different people do with their Pi computers.