fstyp can be used to heuristically detect which filesystem type a device or a partition contains. Useful for backup scripts. WWW: http://nchc.dl.sourceforge.net/sourceforge/fstyp/