Linux has a command called tune2fs to check and configure File Systems, the option -l does list all the values of the File Sytem related parameters. To avoid issues with File Systems you can read out the value of  Filesystem state , when it states clean all is ok but any other output needs action.