O mesmo que você faria com qualquer outro dispositivo de bloco. por exemplo,
file -s /dev/vg1/lv1
Se é ext4, diz algo como:
/dev/vg1/lv1: Linux rev 1.0 ext4 filesystem data, UUID=xxxx, volume name "yyyy" (needs journal recovery) (extents) (large files) (huge files)
Como alternativa, você pode executar blkid /dev/vg1/lv1
. Isso informaria algo como:
/dev/vg1/lv1: LABEL="yyyy" UUID="xxxx" TYPE="ext4"
De man file
:
-s, --special-files
Normally, file only attempts to read and determine the type of argument files which stat(2) reports are ordinary files. This prevents problems, because reading special files may have peculiar consequences. Specifying the -s option causes file to also read argument files which are block or character special files.
This is useful for determining the filesystem types of the data in raw disk partitions, which are block special files. This option also causes file to disregard the file size as reported by stat(2) since on some systems it reports a zero size for raw disk partitions.