In Linux, how does one view the currently supported file systems and the file system types of each partition?

Source: Internet
Author: User
**************************************** *******************

/*************************************** ******************************
* 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.