I have been using nanobsd on some embedded devices. It is a read only system that is mostly run in ram. It can be mounted as writeable to make persistent changes. and then written to. It is then unmounted afterwards. I'm looking for an example fstab for an equivalent on Linux. This is what I currently have, but I can only use mount -o remount,rw / to make the filesystem writeable and then I cant unmount the filesystem.
This is the current fstab I have for my Linux machine. How do I get it to be like NanoBSD, in other words what should I change in this fstab to make it possible to make persistent changes to this read-only file system?
# /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda1 during installation #UUID=36d0dac4-9a1d-4576-8bb7-dc703c6c3a2a / ext2 noatime,relatime,errors=remount-ro 0 1 UUID=36d0dac4-9a1d-4576-8bb7-dc703c6c3a2a / ext2 noatime,relatime,ro,errors=remount-ro 0 1 tmpfs /tmp tmpfs nodev,nosuid,size=128M 0 0 tmpfs /var/log tmpfs defaults 0 0 tmpfs /var/log tmpfs defaults 0 0