dumpe2fs - dump ext2/ext3/ext4 file system information
| Use Case | Command | Description |
|---|---|---|
| đ Display filesystem info | dumpe2fs /dev/sda1 | Print superblock and block group details |
| đ Display bad blocks | dumpe2fs -b /dev/sda1 | List blocks marked as bad |
| đ Superblock only | dumpe2fs -h /dev/sda1 | Show only superblock information |
| đž From image file | dumpe2fs -i image_file.img | Read from e2image backup |
| đ MMP check | dumpe2fs -m /dev/sda1 | Check if device is in use by another node |
| đĸ Hex format | dumpe2fs -x /dev/sda1 | Display block numbers in hexadecimal |
| âī¸ Custom superblock | dumpe2fs -o superblock=16384 /dev/sda1 | Use alternate superblock location |
| đ Custom blocksize | dumpe2fs -o blocksize=4096 /dev/sda1 | Use specific block size in bytes |
dumpe2fs [ -bfghixV ] [ -o superblock=superblock ] [ -o blocksize=blocksize ] device
dumpe2fs prints the super block and blocks group information for the file system present on device.
Note: When used with a mounted file system, the printed information may be old or inconsistent.
-bPrint the blocks which are reserved as bad in the file system.
-o superblock=superblockUse the block superblock when examining the file system. This option is not usually needed except by a file system wizard who is examining the remains of a very badly corrupted file system.
-o blocksize=blocksizeUse blocks of blocksize bytes when examining the file system. This option is not usually needed except by a file system wizard who is examining the remains of a very badly corrupted file system.
-fForce dumpe2fs to display a file system even though it may have some file system feature flags which dumpe2fs may not understand (and which can cause some of dumpe2fs's display to be suspect).
-gDisplay the group descriptor information in a machine readable colon-separated value format. The fields displayed are the group number; the number of the first block in the group; the superblock location (or -1 if not present); the range of blocks used by the group descriptors (or -1 if not present); the block bitmap location; the inode bitmap location; and the range of blocks used by the inode table.
-hOnly display the superblock information and not any of the block group descriptor detail information.
-iDisplay the file system data from an image file created by e2image, using device as the pathname to the image file.
-mIf the mmp feature is enabled on the file system, check if device is in use by another node, see e2mmpstatus(8) for full details. If used together with the -i option, only the MMP block information is printed.
-xPrint the detailed group information block numbers in hexadecimal format.
-VPrint the version number of dumpe2fs and exit.
dumpe2fs exits with a return code of 0 if the operation completed without errors. It will exit with a non-zero return code if there are any errors, such as problems reading a valid superblock, bad checksums, or if the device is in use by another node and -m is specified.
You may need to know the physical file system structure to understand the output.
dumpe2fs was written by Remy Card <Remy.Card AT linux.org>. It is currently being maintained by Theodore Ts'o <tytso AT alum.edu>.
dumpe2fs is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net.
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-13 09:58 @216.73.217.178
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)