overlayroot cannot modify /media/root-ro

Recommended Posts


I am running OrangePI lite with 5.65 Xenial. I followed tutorial on using overlayroot here "How to freeze your filesystem". However, when I run overlayroot-chroot to make changes, I am getting the following error when I modify files: "Read-only file system".  Here is output of 'mount':

/dev/mmcblk0p1 on / type ext4 (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=50696k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)

I tried running mount to make it read-write:

 mount -o remount,rw /dev/mmcblk0p1
#make changes, revert back
 mount -o remount,ro /dev/mmcblk0p1

While this works, when I exit overlayroot-chroot, my system's filesystem is stuck in Read-Only mode

 Any ideas on what I am doing wrong?

Share this post

Link to post
Share on other sites

Ok, so the best way of working with the system I have found is to run "overlayroot-chroot + mount -o remount,rw /dev/mmcblk0p1" to modify /etc/overlayroot.conf and disable overlayroot and reboot; then make changes; then re-enable overlayroot in the conf file and reboot. Very cumbersome; Is there a better way?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now