Meanwhile the competition even has eMMC in the same price range.
Meanwhile the competition even has eMMC in the same price range.
However, it seems that crashes are inevitable if you do hobbyist stuff with your RPis. Plug in funny things into your GPIO or USBs and run your own buggy code and you can't always shut it down properly.
False. This depends on the software.
We developed a system for the PrintToPeer Raspberry Pi OS that uses the RAMdisk for read/write operations, and makes the rest of the operating system read only.
You can uplug it whenever and nothing is corrupted.
We don't power off our many pis, but they are on UPSs (we use them for a security system.) However, the corruption happens so much that we keep disk images and have a spare on hand when we have to reboot them for any reason because 1/4 of the time they will not boot up.
Even if it were corrupting the FILES being written when hard booted, it shouldn't corrupt the FILESYSTEM being written.
TLDR, nuh uh.
That's not how SD cards work unfortunately. When an SD card erases data, like if it's updating a file allocation table, it has to erase an entire block of flash and not just the bytes you care about. The card will throw the block into a cache in memory, erase the block, and then rewrite the parts of the block that weren't erased. However if you pull out power during that operation you'll completely kill the block and destroy the filesystem.
There's a great video here from Linuxconf Auckland about using SD cards for embedded systems and these issues: https://www.youtube.com/watch?v=K3zb6p0thQU
If you could use a flash filesystem at the OS level & talk directly to the SDcard flash blocks then you might be able to pull the plug & not risk corrupting an SDcard, but as things currently stand I don’t think that’s possible.