Personal tools
RO Filesystem
Linux command to spot RO Filesystem
You need to check the /proc/mounts for the current state of the filesystem! In fact, by naively running the mount command you get only the configured state of the filesystem! While in our case the filesystem changed to read only during runtime due to problems with underlying NAS.
awk '$4~/(^|,)ro($|,)/' /proc/mounts