使用man 命令可以查看 dumpe2fs 命令具体的使用的方法:
NAME
dumpe2fs - dump ext2/ext3/ext4 filesystem information SYNOPSIS
dumpe2fs [ -bfghixV ] [ -o superblock=superblock ] [ -o blocksize=blocksize ] device DESCRIPTION
dumpe2fs prints the super block and blocks group information for the filesystem present on device. Note: When used with a mounted filesystem, the printed information may be old or inconsistent.
使用方法:
查看磁盘inode和block信息:
[root@docker ~]# ls /dev/sd*
/dev/sda /dev/sda1 /dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdc /dev/sdc1 /dev/sdd /dev/sdd1 /dev/sde /dev/sde1
[root@docker ~]# dumpe2fs /dev/sdb1 |grep "Block count"
dumpe2fs 1.44. (-July-)
Block count:
[root@docker ~]# dumpe2fs /dev/sdb1 |grep "Inode count"
dumpe2fs 1.44. (-July-)
Inode count:
保持更新,转载请注明出处。