I have a set of PIs that I control remotely. I am going to update them to set the the root of the filesystem as read-only (to avoid SDACRD corruption problems). However, occasionally I will need to put the root back to read-write mode to apply updates etc. So I will use commands
mount -o etc.
However I cant figure out how to unmount the root filesystem. If I run
sudo umount /dev/mmcblk0p6 I get the error
umount: /: device is busy. I used
fuser to figure out what processes are using root. I killed them all except for the last one - its called
-bash and if I kill it my terminal dies (I'm using SSH with PuTTY).
Is there a way to remotely change the root to read-write mode?