Actually, that's a relevant question for me too. I got as far as mounting /tmp and /var as ramdisks and configuring logrotate to aggressively compress and prune logs (so they don't swamp the RAM). That's not a very difficult task, e.g. /etc/fstab has these entries:
tmpfs /var tmpfs defaults,noatime,nosuid,size=128M 0 0 tmpfs /tmp tmpfs defaults,noatime,nosuid,size=128M 0 0 And /etc/logrotate.conf needs this: compress compresscmd /bin/bzip2 uncompresscmd /bin/bunzip2 compressoptions --best compressext .bz2 Plus anything needs to be rotated at least weekly, with no more than a month's worth of compressed logs kept. It seems to keep the entire /var/log pretty compact (a few MB). I also installed an SD card and stored all the logs which need to survive reboots on it. If the SD card dies, I can simply swap it out and the entire device should still remain functional the whole time. But then I got stumped. There remain a bunch of files sprinkled around elsewhere which still need to remain writable. I could only come up with /etc/resolv.conf at first, but there are probably others. I guess you could make them readable by symlinking from a read-only root file system to a file on ramdisk. I didn't have time to experiment and play around, so I just left root as RW in the hope that removing logs and temporary files will reduce eMMC load sufficiently for it to last longer than the remainder of the device :) -- Kind regards, Tarmo Kuuse On Saturday, January 21, 2017 at 5:01:36 PM UTC+2, Fohnbit wrote: > > Hello, > > has someone a link for how to setup the BBB as read only filesystem? > But I need some files to writeable (interfaces, ser2net conf, ...) > > Could someone help me? Thank you! > What informations should I post here? > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/e2f6fc6e-c704-411d-9711-0d2bf02cb497%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
