Look for some help, I have a simple loop recording setup that deletes and old video file and records a new one.
It works fine but randomly a video file becomes read-only and locks up the system when it tries to delete the file. I have also found other files like the python script also can become read-only.
I have tried storing on the SD card and usb stick.
I have tried using Raspian, Raspian lite and Ubuntu mate and all are doing the same.