Determine Mounted Filesystem Types on Linux
In linux its very easy to lose track of filesytem types if you have been using it for a while. With the advent of ext4(and NTFS) systems its hard to guess which filesystem type is running on each partition.
One of the easiest ways to determine the filesystem type of a mounted filesystem is to use the mount command. The output of the command is of the type:
haas@techhacks:~$ mount
/dev/sdb8 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
/dev/sdb6 on /media/Windows type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sdb9 on /home type ext4 (rw,commit=0)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sda1 on /media/ext type ext4 (rw,nosuid,nodev,uhelper=hal)
As you can see, second last column displays the file system type. For example first line [/dev/sdb8 on / type ext4 (rw,errors=remount-ro,commit=0)
] can be read as follows:
- /dev/sdb8 : Partition
- / : File system
- ext4 : File system type
- (rw,errors=remount-ro,commit=0) : Mount options