You may want to consider solutions other than depending on the automounter, as you already encountered a common issue (fails to mount, and you end up writing to the underlying system, or fails to clean up and you get a different mount... for extra bonus points sometimes you re-establish the mount and hide the files you wrote to the directory you are mounting on).
If it is an always present file system I would mount it using fstab, or at least validate the mount before writing to in from your program.
If it is an always present file system I would mount it using fstab, or at least validate the mount before writing to in from your program.
Statistics: Posted by bjtheone — Thu Feb 29, 2024 12:26 pm