5 ms·
Why mount the SD card read/write. Why not mount read-only. After boot, I can remove the SD card. I can insert another card with more files, or chroot to othe
by 1vuio0pswjnm7 2y ago
Why mount the SD card read/write. Why not mount read-only. After boot, I can remove the SD card. I can insert another card with more files, or chroot to other external storage. The rootfs is in RAM. Been booting RPi with tootfs in RAM since 2013.
SD cards are not reliable for frequent, small writes, IME. Certainly worse than USB sticks. I wish RPi offered the option to boot from USB. Even an option to use a SD card to eMMC adapter and boot from eMMC would be an improvement.
- erik 2y ago> Why mount the SD card read/write. Why not mount read-only. I have seen dozens of name brand SD cards fail while mounted read only in a medium sized deployment of Pis. The problems mostly come from firmware bugs, not from nand wear.
- deleted 2y ago[deleted]
- 1vuio0pswjnm7 2y agoAn SD card removed after boot is not mounted at all. There is nothing in the slot to "fail", for whatever alleged reason.
- bornfreddy 2y agoThis is the best solution - if you don't need persistent storage. I prefer N100 minipcs for this reason - the Minix Z100 I have uses 6.4W at the wall (linux, idle, wifi and bt disabled) and while this is probably more than rpi, I got a silent computer with a case and NVME out of the box. Being in x86-land is just an added bonus. My rpi4 cost me way too many sd cards.
- 1vuio0pswjnm7 2y agos/tootfs/rootfs/ I use external drives for persistant storage.
- bityard 2y agoBut my point was that not all SD cards are made the same and lots of the tech-literate here on HN don't seem to know that. "SD cards are not reliable" as a blanket statement is false. You have to research to find out which ones are the best and use those, then you don't need to do weird workarounds like read-only filesystems and running from a RAM disk, you can just use the Pi like a normal computer.