How to build a readonly root file system in Arch Arm

Ask questions about Arch Linux ARM. Please search before making a new topic.

How to build a readonly root file system in Arch Arm

Postby farzad » Wed Apr 26, 2017 12:46 am

Hi
I am new to this forum. So bare with me if I do not know all the rules.

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.

kernel 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. Do you guys have any guidelines or hints?

Any help is appreciated.
farzad
 
Posts: 1
Joined: Wed Apr 26, 2017 12:37 am

Re: How to build a readonly root file system in Arch Arm

Postby Megver83 » Sun Apr 30, 2017 7:12 pm

Ultimately I've had some trouble with ALARM, I literally could not boot and, who knows, maybe I got a kernel panic (I don't know because the kernel logo is displayed over the init message). So finally I just run pacstrap by chroot'ing the microSD card.

Have you tried other distros? Do they have the same problem?
I see that file is part of the libseccomp package

Code: Select all
$ pkgfile --search /usr/lib/libseccomp.so.2
core/libseccomp


so try reinstalling it, with chroot, if you have another ARM device, or from another distro and connecting your SD card through an adaptor. Then tell me if it worked.
Megver83
 
Posts: 4
Joined: Thu Apr 13, 2017 1:25 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 1 guest