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 https://linuxconfig.org/detect-filesystem-type-of-unmonted-partition