Sample Header Ad - 728x90

How to build a readonly root filesystem in Arch-ARM

0 votes
1 answer
2571 views
I have the following set-up: - hw: RPi 3 Model B - os: 4.4.37-1-ARCH #1 SMP armv7l GNU/Linux - file system: /boot(vfat), /(ext4), /var(ext4) - partitions: three; mounted: /boot, /, /var - storage: mlc nand flash micro sd Recently I am getting kernel panic errors at boot time referring to a file in lib which turns out to be some how corrupted.
panic "/sbin/init" error while loading shared libraries  /usr/lib/libseccomp.so.2 invalid elf header
So my theory is that since my root file system is NOT readonly and I am using nand flash and there are unexpected shutdowns, some files are getting corrupted. The goal is to make the root file system readonly so that it may solve the problem. Unfortunately I could not find any good solid source on how making a readonly root file system should be done on Arch Linux. Also posted on Arch Linux Forum: https://archlinuxarm.org/forum/viewtopic.php?f=9&t=11621
Asked by kaptan (325 rep)
Apr 26, 2017, 12:29 AM
Last activity: May 12, 2019, 08:48 PM