I am building hardware solutions for video debriefing purposes, where users will connect and remove cameras and/or SD cards to computers all the time. I am working with Raspberry pi's (Raspbian) for media playback. A fast media server for video related calculations and media conversion (Ubuntu) and a fast NAS for storage. I like to overcome the need for the user to ejecting media before removing the hardware, because I know from experience nobody will take the effort anyway. I have no need for my system to write data onto the users devices. So I was wondering if there is a way to mount all external devices always read-only in order to prevent any data corruption on unsafe removal.
I am fairly new to Linux and programming. The software I am writing is mainly Python, but I am looking for a more system wide approach for this problem so the user will not experience any