dumpe2fs 命令的使用,轉儲 ext2/ext3/ext4 檔案系統資訊

xuyaowen發表於2019-01-15

使用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

保持更新,轉載請註明出處。

相關文章