[NTLUG:Discuss] Bash script way to tell if a filesystem is mounted

Patrick R. Michaud pmichaud at pobox.com
Sun May 30 23:40:38 CDT 2010


On Sun, May 30, 2010 at 01:58:58AM -0500, Ralph Green wrote:
> Can anyone verify if a stat like Leroy used
> returns a non-zero value on ext3?  

My system is ext3, and that's where I tested it before posting.
Apologies that the stat method I posted isn't universal -- using
/etc/mtab might indeed be better.

Pm




More information about the Discuss mailing list