From 776e68334719f42fe89954551070370364b6f375 Mon Sep 17 00:00:00 2001 From: John Simpson Date: Sun, 5 Jan 2025 15:33:54 -0500 Subject: [PATCH] FAQ: explain how to restore mounts to normal without rebooting tablet (#89) --- src/faqs.rst | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/faqs.rst b/src/faqs.rst index 87f6e14..99ef900 100644 --- a/src/faqs.rst +++ b/src/faqs.rst @@ -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.