歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Linux下如何查看當前支持的文件系統及各分區的文件系統類型

Linux下如何查看當前支持的文件系統及各分區的文件系統類型

日期:2017/3/3 15:54:32   编辑:關於Linux

Linux下查看當前內核系統支持的文件系統:

一般都在 /lib/modules/kernl-version/kernel/fs/ 目錄下包含了當前內核版本支持的文件系統:

ls /lib/modules/kernl-version/kernel/fs/

eg:

v0id@v0id-eof ~ $ ls /lib/modules/3.11.0-12-generic/kernel/fs/

9p 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

返回欄目頁:http://www.bianceng.cn/OS/Linux/

那又如何查看現有的文件系統的文件系統類型呢?

有多種方法:

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、查看/etc/fstab掛載文件系統腳本:

less /etc/fstab文件

3、使用df -T 查看掛載的文件系統類型:

df -T -h

作者:csdn博客 yygydjkthh

Copyright © Linux教程網 All Rights Reserved