Shell script --test r/o file system.
I there any way way I can check if the file system is mounted as read only.
With out trying writing into it.
I mean one of the directory might have been mounted as R/O.(intentionally)
Or do I have to go through /etc/fstab to find out, about file system.