# Pi Zero onboard time lapse camera read only file system?

I'm trying to build an onboard time lapse camera for my motorbike using a Pi Zero and a Pi camera powered by a USB port of my 5V 2.1A charger socket which has a on/off switch.
since I'd rather avoid another switch to power the Pi off before, can I use a read only file system for the sd and a usb stick to store the images?
this way I shouldn't damage the sd or the usb stick except in the rare case when I shut it down when is storing an image right?
but I could workaround this using a led that lights up for some second before the Pi takes an image.
or even better, can I achieve this by creating 2 partitions on the sd, a read only one for Raspbian and a read write one for image storing?

• Yes, that's the idea. You can afford to call sync after writing an image you definitely have one corrupt file at most. Otherwise only what is not yet sync-ed to the disk. You can run fsck at boot and even reformat the RW partition to make it "always work" if fsck fails... Logs, if needed, can be stored on the same or another RW partition. – Doncho Gunchev Apr 19 at 14:16