**************************************** *******************
/*************************************** ******************************
* Author: Samson
* Date: 04/13/2014
* Test platform:
* Linux ubuntu 3.2.0-58-generic-pae
* GNU bash, version 4.2.39
**************************************** ****************************/
In Linux, view the file systems supported by the current kernel system:
Generally, file systems supported by the current kernel version are included in the/lib/modules/kernl-version/kernel/fs/directory:
Ls/lib/modules/kernl-version/kernel/fs/
Eg:
V0id @ v0id-eof ~ $ Ls/lib/modules/3.11.0-12-generic/kernel/fs/
9 p afs bfs cachefiles coda dlm ext2 freevxfs gfs2 hpfs jfs ncpfs nfsd ntfs overlayfs qnx6 romfs ubifs xfs
Adfs autofs4 binfmt_misc.ko ceph configfs efs f2fs fscache hfs isofs lockd nfs nilfs2 ocfs2 pstore quota squashfs udf
Affs befs btrfs cifs cramfs exofs fat fuse hfsplus jffs2 minix nfs_common nls omfs qnx4 reiserfs sysv ufs
Then how can we view the file system type of the existing file system?
There are multiple methods:
1. mount
V0id @ v0id ~ $ Mount
/Dev/sda5 on/type ext4 (rw, errors = remount-ro)
Proc on/proc type proc (rw, noexec, nosuid, nodev)
Sysfs on/sys type sysfs (rw, noexec, nosuid, nodev)
None on/sys/fs/cgroup type tmpfs (rw)
None on/sys/fs/fuse/connections type fusectl (rw)
None on/sys/kernel/debug type debugfs (rw)
None on/sys/kernel/security type securityfs (rw)
Udev on/dev type devtmpfs (rw, mode = 0755)
Devpts on/dev/pts type devpts (rw, noexec, nosuid, gid = 5, mode = 0620)
Tmpfs on/run type tmpfs (rw, noexec, nosuid, size = 10%, mode = 0755)
None on/run/lock type tmpfs (rw, noexec, nosuid, nodev, size = 5242880)
None on/run/shm type tmpfs (rw, nosuid, nodev)
None on/run/user type tmpfs (rw, noexec, nosuid, nodev, size = 104857600, mode = 0755)
None on/sys/fs/pstore type pstore (rw)
/Dev/sda8 on/home type ext4 (rw)
/Dev/sda6 on/opt type ext4 (rw)
2. view the script for mounting the file system to/etc/fstab:
Less/etc/fstab file
3. use df-T to view the mounted file system type:
Df-T-h