Skip to content

Make persistent changes to filesystem

Davide Depau edited this page Apr 29, 2018 · 2 revisions

Mount root read-write

mkdir /tmp/ubifs
/statusapi/bin/mount -o remount,rw /
/statusapi/bin/mount -t ubifs ubi0:rootfs_ubifs /tmp/ubifs

The complicated mount is required because a tmpfs is mounted on top of /etc and changes are discarded on reboot.

The root filesystem is now available at /tmp/ubifs. Note that for locations like /etc on top which an overlay filesystem is mounted you may need to reboot for changes to be visible.

Unmount and finalize changes

/statusapi/bin/umount /tmp/ubifs
/statusapi/bin/mount -o remount,ro /

reboot  # optional, see above
Clone this wiki locally