Command line option to check which filesystem I am using?
- by j-g-faustus
Is there a command that will show which file system (ext3, ext4, FAT32, ...) the various partitions and disks are using?
Similar to how sudo fdisk -l lists information about disks and partitions?
Update
Accepted the "mount" answer as mount works without specifying filesystem type (commenting out the relevant entries in fstab, if any):
$ sudo mount /dev/sdf1 /mnt/tmp
$ mount | grep /mnt/tmp
/dev/sdf1 on /mnt/tmp type ext3 (rw)
Found another option in ubuntuforums - blkid:
# system disk
$ sudo blkid /dev/sda1
/dev/sda1: UUID="...." TYPE="ext4"
# USB disk:
$ sudo blkid /dev/sdf1
/dev/sdf1: LABEL="backup" UUID="..." TYPE="ext3"
# mdadm RAID:
$ sudo blkid /dev/md0
/dev/md0: LABEL="raid" UUID="..." TYPE="ext4"
Thanks for your help!