dumpe2fs 命令的使用,转储 ext2/ext3/ext4 文件系统信息
使用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.3 (10-July-2018) Block count: 262144 [root@docker ~]# dumpe2fs /dev/sdb1 |grep "Inode count" dumpe2fs 1.44.3 (10-July-2018) Inode count: 65536
保持更新,转载请注明出处。