dumpe2fs is the filesystem super block information for the ext4 file system

dumpe2fs : dump ext2/ext3/ext4 filesystem information

Examples:
- To dump the file system information about a device

 

# dumpe2fs /dev/sda1


- To print the blocks which are reserved as bad in the filesystem


# dumpe2fs -b /dev/sda2



- To use  the block superblock when examining the filesystem

 

# dumpe2fs -o superblock=superblock /dev/sda1



- To use blocks of blocksize bytes when examining the filesystem.

 

# dumpe2fs -o blocksize=blocksize /dev/sda1


- To force dumpe2fs to display a filesystem



# dumpe2fs -f /dev/sda1


- To only display the superblock information

# dumpe2fs -h


- To display the filesystem data from an image file created by e2image

                  # dumpe2fs -i

- To print the detailed group information block numbers in hexadecimal format

                  # dumpe2fs -x

- To get the version info

# dumpe2fs -V



#xfs_info /dev/mapper/devenv-home
meta-data=/dev/mapper/devenv-home isize=512    agcount=4, agsize=2096640 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=1, rmapbt=0
         =                       reflink=1
data     =                       bsize=4096   blocks=8386560, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=4095, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

NOte:
xfs_info requires that the file system is mounted.

more


Popular posts from this blog

script and validation for the lvm

crontab editing

shell script to create and extending the volume