SD card damage protection

  • Any filesystem (software) which is mounted with write ability can have the filesystem damaged by sudden power loss, including SD cards.
  • Any computer hardware subjected to power spikes can be destroyed by the spikes.
  • Any filesystem which is mounted read-only in Linux should never have an issue with the filesystem software.
  • All eMMC and SD card software and hardware will have the same exact answer as to harm of hardware or software relative to spikes and filesystem damage.
  • A filesystem which is read-write, but not used, could be remounted read-only.
  • OverlayFS would be read-only from the very start, and any write would go to RAM as an overlay on top of the actual read-only content, and thus give the illusion of being writable…the RAM portion has no protection and will go away each boot, but the read-only portion should be guaranteed to not be harmed so long as hardware is not harmed.
  • OverlayFS may require you to build a custom initial ramdisk. People have asked about this before, and it should probably work, but it might have a learning curve.
  • If you have a spare unused partition, and want to mount it read-only, then this trivial and easy. When you start making the actual operating system read-only you can expect it to be much more complicated.