Linux下檢視目前核心系統支援的檔案系統:
一般都在 /lib/modules/kernl-version/kernel/fs/ 目錄下包含了目前核心版本支援的檔案系統:
ls /lib/modules/kernl-version/kernel/fs/
eg:
[email protected] ~ $ 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
那又如何檢視現有的檔案系統的檔案系統類型呢?
有多種方法:
1、mount
[email protected] ~ $ 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
原文:http://blog.csdn.net/yygydjkthh/article/details/23630699