Flash Notes

Commands - Filesystem type


• How to determine the type of a mounted filesystem ?

Solution

df -T

Example 1

$ df -T /dev/sda1
/dev/sda1                   ext3     1922859912 1750539060  74645176  96% /DATA3

• How to determine the type of an unmounted filesystem ?

Solution

blkid device

Example 1

# blkid /dev/sda1
/dev/sda1: LABEL="/DATA3" UUID="c96520cf-94e6-4967-b4a1-bcdcef1fadb7" TYPE="ext3" SEC_TYPE="ext2"