DUMPE2FS(8)
โจ DUMPE2FS(8) โจ
okay bestie, welcome to dumpe2fs โ it's a manual page, it lives in the System Manager's Manual, and it's about to tell you everything your ext2/ext3/ext4 file system is hiding from you. ๐
๐ธ NAME ๐ธ
dumpe2fs โ dump ext2/ext3/ext4 file system information ๐ซถ
๐ SYNOPSIS ๐
dumpe2fs [ -bfghixV ] [ -o superblock=superblock ] [ -o
blocksize=blocksize ] device
๐ฆ DESCRIPTION ๐ฆ
So basically, dumpe2fs prints the super block and the blocks group information for the file system that's sitting on device. That's it. That's the whole job. And it ate. ๐
The device specifier can be any of these three things, and honestly the flexibility is iconic:
- a filename, like
/dev/sda1 - a LABEL specifier:
"LABEL=volume-label" - a UUID specifier:
"UUID=uuid"
Like, for real for real, either LABEL=home or UUID=e40486c6-84d5-4f2f-b99c-032281799c9d. Pick your fighter. ๐
โ ๏ธ Note, and this one matters: when you use this on a mounted file system, the information it prints may be old or inconsistent. Not me warning you twice. Okay maybe me warning you twice. ๐ญ
๐ OPTIONS ๐
-bโ prints the blocks that are reserved as bad in the file system. The little shame blocks. We still love them. ๐-o superblock=superblockโ use the block superblock when examining the file system. Ngl, you usually do not need this. It's for the file system wizard examining the remains of a very badly corrupted file system. Like, forensic vibes only. ๐ฅ-o blocksize=blocksizeโ use blocks of blocksize bytes when examining the file system. Same deal: not usually needed, except by that same file system wizard doing autopsies on a very badly corrupted file system. ๐ง-fโ forcedumpe2fsto display a file system even though it may have some file system feature flags thatdumpe2fsmay not understand (and which can cause some ofdumpe2fs's display to be suspect). Basically "bestie I don't know her but show me anyway." ๐-gโ display the group descriptor information in a machine readable colon-separated value format. Very demure, very parseable. The fields displayed are, in order:- the group number
- the number of the first block in the group
- the superblock location (or
-1if not present) - the range of blocks used by the group descriptors (or
-1if not present) - the block bitmap location
- the inode bitmap location
- the range of blocks used by the inode table
-hโ only display the superblock information and not any of the block group descriptor detail information. Superblock only. Minimalist era. โจ-iโ display the file system data from an image file created bye2image, using device as the pathname to the image file. Yes, device is the image path here. No, that's not a typo, that's just how she works. ๐-mโ if themmpfeature is enabled on the file system, check if device is in use by another node โ seee2mmpstatus(8)for full details. And if you use it together with the-ioption, only the MMP block information is printed. ๐-xโ print the detailed group information block numbers in hexadecimal format. Hex girlies rise. ๐-Vโ print the version number ofdumpe2fsand exit. Bye! ๐
โญ EXIT CODE โญ
dumpe2fs exits with a return code of 0 if the operation completed without errors. She'll 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
-mis specified
So if your script goes sideways, that non-zero is your sign. Periodt. ๐จ
๐ BUGS ๐
You may need to know the physical file system structure to understand the output. That's the bug note. That's it. It's giving "read the room and also read the disk layout." ๐ญ
๐ AUTHOR ๐
dumpe2fs was written by Remy Card <Remy.Card@linux.org>. It is currently being maintained by Theodore Ts'o <tytso@alum.mit.edu>. Legends, both of them. ๐ซถ
๐ AVAILABILITY ๐
dumpe2fs is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net.
๐ SEE ALSO ๐
e2fsck(8), e2mmpstatus(8), mke2fs(8), tune2fs(8). ext4(5)
okay that's the whole page, you're so welcome, go dump some file system info and slay ๐ โจ
sign-off time: this was E2fsprogs version 1.47.4, dated March 2025, and it's the DUMPE2FS(8) page of the System Manager's Manual. mwah. ๐๐ฆ๐
๐ฆ where this page comes from
- alpine 3.24: e2fsprogs-doc 1.47.4-r0 ยท GPL-2.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause AND MIT
- arch rolling: e2fsprogs 1.47.4-1 ยท GPL AND LGPL AND MIT
- nixpkgs unstable: e2fsprogs 1.47.4
- ubuntu stonking: e2fsprogs 1.47.4-1 ยท GPL-2.0-only
- Copyright 1993, 1994, 1995 by Theodore Ts'o. All Rights Reserved
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms