Linux下如何查看当前支持的文件系统及各分区的文件系统类型 |
您所在的位置:网站首页 › 如何查看linux文件系统类型信息 › Linux下如何查看当前支持的文件系统及各分区的文件系统类型 |
/********************************************************************* * Author : Samson * Date : 04/13/2014 * Test platform: * Linux ubuntu 3.2.0-58-generic-pae * GNU bash, version 4.2.39 * *******************************************************************/ 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 那又如何查看现有的文件系统的文件系统类型呢? 有多种方法: 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
|
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |