Skip to content

Instantly share code, notes, and snippets.

@rdmarsh
Created August 9, 2013 03:10
Show Gist options
  • Save rdmarsh/6190895 to your computer and use it in GitHub Desktop.
Save rdmarsh/6190895 to your computer and use it in GitHub Desktop.
Find readonly ext2,3,4 file systems
#!/bin/bash
awk '$3 ~ /^ext(2|3|4)$/ && $4 ~ /(^|,)ro($|,)/ {print $2}' /proc/mounts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment