I read about long running Pi problems with SD cards, about running Raspbian from ram, about readonly root filesystem.
At the end of this thread I found the command for remounting readonly, and the comment that all services need to be stopped.
I did exactly that and was able to remount Raspbian "/" filesystem on my Pi zero readonly:
Code: Select all
...
pi@raspberrypi01:~ $ mount | grep "on / "
/dev/mmcblk0p7 on / type ext4 (ro,noatime,data=ordered)
pi@raspberrypi01:~ $
Even unmounting the two other "rw" filesystems seems not to hurt ...
Code: Select all
pi@raspberrypi01:~ $ mount | grep "^/dev"
/dev/mmcblk0p7 on / type ext4 (ro,noatime,data=ordered)
/dev/mmcblk0p6 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/mmcblk0p5 on /media/pi/SETTINGS1 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
pi@raspberrypi01:~ $ sudo umount /boot
pi@raspberrypi01:~ $ sudo umount /media/pi/SETTINGS1
pi@raspberrypi01:~ $ mount | grep "^/dev"
/dev/mmcblk0p7 on / type ext4 (ro,noatime,data=ordered)
pi@raspberrypi01:~ $