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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.