Detect filesystem type of unmonted partition - Linux Tutorials - Learn Linux Configuration

Detecting filesystem type on a mounted partition is an easy task. This can be achieved by mount command or df -T. Below are listed few options on how to detect filesystem on an unmounted device/partition. In the scenario below the block devices /dev/sda1 and /dev/sdb1 are used as an example.
This is a companion discussion topic for the original entry at