Linux command
dumpe2fs 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo dumpe2fs /dev/sdXN
Example
sudo dumpe2fs -b /dev/sdXN
Force
sudo dumpe2fs -f /dev/sdXN
Example
sudo dumpe2fs -h /dev/sdXN
Example
sudo dumpe2fs -x /dev/sdXN
说明
dumpe2fs prints the superblock and block group information for ext2, ext3, and ext4 filesystems. It displays detailed filesystem metadata including features, block counts, and allocation information.
参数
- -b
- Print only the blocks marked as bad
- -f
- Force display even with unrecognized feature flags
- -g
- Display block group descriptor information in colon-separated format
- -h
- Display superblock info only, not block group details
- -i
- Display filesystem data from image file
- -o superblock=NUM
- Use alternative superblock at block NUM
- -o blocksize=SIZE
- Specify block size when searching for superblock
- -x
- Display block numbers in hexadecimal format
- -V
- Display version information
FAQ
What is the dumpe2fs command used for?
dumpe2fs prints the superblock and block group information for ext2, ext3, and ext4 filesystems. It displays detailed filesystem metadata including features, block counts, and allocation information.
How do I run a basic dumpe2fs example?
Run `sudo dumpe2fs /dev/sdXN` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b do in dumpe2fs?
Print only the blocks marked as bad