在查看文件系统超级块的时候,可能会出现下面的问题
[vm@localhost ~]$ df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/centos-root 6.7G 1.3G 5.5G 19% /
devtmpfs 362M 0 362M 0% /dev
tmpfs 371M 0 371M 0% /dev/shm
tmpfs 371M 5.0M 366M 2% /run
tmpfs 371M 0 371M 0% /sys/fs/cgroup
/dev/sda1 497M 119M 379M 24% /boot
[vm@localhost ~]$ dumpe2fs /
dumpe2fs 1.42.9 (28-Dec-2013)
dumpe2fs: Attempt to read block from filesystem resulted in short read 当尝试打开 / 时
找不到有效的文件系统超级块.
[vm@localhost ~]$
显示找不到对应的内容。问题,在格式化的时候,对于非ext*的文件系统,使用dumpe2fs是查找不到其对应的超级块的。需要查看具体的文件系统的格式化信息。
[vm@localhost ~]$ df -Th
文件系统 类型 容量 已用 可用 已用% 挂载点
/dev/mapper/centos-root xfs 6.7G 1.3G 5.5G 19% /
devtmpfs devtmpfs 362M 0 362M 0% /dev
tmpfs tmpfs 371M 0 371M 0% /dev/shm
tmpfs tmpfs 371M 5.0M 366M 2% /run
tmpfs tmpfs 371M 0 371M 0% /sys/fs/cgroup
/dev/sda1 xfs 497M 119M 379M 24% /boot
如上所示,需要使用xfs_info来查看分区信息的。
[vm@localhost ~]$ xfs_info /
meta-data=/dev/mapper/centos-root isize=256 agcount=4, agsize=436992 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=1747968, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0