最近在适配系统中涉及到了很多发行版,由于有个需求要知道根文件系统类型,记录一下常用的发行版所用的根文件系统类型,以及查看根文件系统的shell命令。
df - report file system disk space usage
-T, --print-type
print file system type
blkid - locate/print block device attributes
mount - mount a filesystem
file — determine file type
-s, --special-files
This is useful for determining the filesystem types of the data in raw disk partitions, which are block special files.
parted - a partition manipulation program
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
lsblk - list block devices
-f, --fs
Output info about filesystems.
centos 6(内核版本 2.6.32 )根文件系统类型是ext4
centos 7(内核版本 3.10.0)的根文件系统是xfs
suse11 (内核版本 3.0.101)根文件系统类型是ext3
suse12(内核版本 4.4.21)根文件系统是btrfs
ubuntu 20.04(内核版本5.15.0)的根文件系统类型是ext4