Jul 14, 2017

How to find out disk partition type

$ sudo file -sL /dev/xvd*
/dev/xvda:  GPT partition table, version 1.0, GUID: 69a8bdc6-4574-4fb1-a32d-2e7fc6f43a62, disk size: 16777216 sectors of 512 bytes
/dev/xvda1: Linux rev 1.0 ext4 filesystem data, UUID=16eaaeae-bb4d-4d76-85dd-ebc8db4b6f54 (needs journal recovery) (extents) (large files) (huge files)
/dev/xvdf:  data

xvda1 is ext4.
xvdf has not been formatted yet.