Command line option to check which filesystem I am using?
Posted
by
j-g-faustus
on Ask Ubuntu
See other posts from Ask Ubuntu
or by j-g-faustus
Published on 2011-01-02T01:05:32Z
Indexed on
2011/01/02
5:59 UTC
Read the original article
Hit count: 227
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!
© Ask Ubuntu or respective owner