Forrest logo
back to the dumpe2fs tool

dumpe2fs:tldr:b478b

dumpe2fs: Only display the superblock information and not any of the block group descriptor detail information.
$ dumpe2fs -h ${-dev-sdXN}
try on your machine

The command "dumpe2fs -h ${-dev-sdXN}" is used to display the superblock information of a specific filesystem on a disk partition. Here's a breakdown of its components:

  • "dumpe2fs": It is the command used to display ext2/ext3/ext4 filesystem information.
  • "-h": The option "-h" is used to make the command display only the superblock information.
  • "${-dev-sdXN}": This is a placeholder for the device file representing the disk partition you want to analyze. In this case, it assumes the format "/dev/sdXN" where "X" is usually a letter representing the specific disk (e.g., "a", "b", etc.), and "N" represents the partition number (e.g., 1, 2, etc.). You need to replace "${-dev-sdXN}" with the actual device file representing your desired disk partition.

For example, if you want to analyze the first partition (number 1) on the second disk (sdX) in your system, you would replace "${-dev-sdXN}" with "/dev/sdb1", resulting in the command "dumpe2fs -h /dev/sdb1".

Executing this command will provide you with detailed information about the filesystem, such as block counts, inode counts, filesystem features, mount time, and many other attributes related to the specified disk partition's superblock.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dumpe2fs tool