Skip to content

Commit

Permalink
FAQ: explain how to restore mounts to normal without rebooting tablet (
Browse files Browse the repository at this point in the history
  • Loading branch information
kg4zow authored Jan 5, 2025
1 parent 797447b commit 776e683
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/faqs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,21 @@ If you need to make a change to a folder that is mounted as an overlay, you can
.. code-block:: shell
umount -l /etc
To see a full list of folders that have an overlay you can run the following command:
To see a full list of folders that have overlays you can run the following command:

.. code-block:: shell
mount | grep overlay
After making your changes and rebooting you should see your changes persist. But the overlay will be back and the filesystem will be read-only again.

If you don't want to reboot, you can set the filesystems back to their normal state by running the following commands, IN THIS ORDER:

.. code-block:: shell
mount -o remount,ro /
mount -o rw,relatime,lowerdir=/etc,upperdir=/var/volatile/etc,workdir=/var/volatile/.etc-work -t overlay overlay /etc
mount -o bind /home/root/.dropbear /etc/dropbear
Note that you can get the value of the `-o` option in the second command by running the `mount | grep overlay` command noted above, *before* un-mounting anything.

0 comments on commit 776e683

Please sign in to comment.