Skip to content. Skip to navigation

ICTP Portal

Sections
You are here: Home Members ecorso RO Filesystem
Personal tools
Document Actions

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

Powered by Plone This site conforms to the following standards: