Jump to content

Recommended Posts

Posted

Hi,

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?

Posted

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?

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines