Linux Commands Examples

A great documentation place for Linux commands

dumpe2fs

dump ext2/ext3/ext4 filesystem information


see also : e2fsck - mke2fs - tune2fs

Synopsis

dumpe2fs [ -bfhixV ] [ -o superblock=superblock ] [ -o blocksize=blocksize ] device


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

1
source
            
read partition
sudo dumpe2fs -h $partition | grep -i 'mount count'
0
source
            
exit 1
fi
dumpe2fs $1 | grep Free | head -2
0
source
            
sudo dumpe2fs $1 | grep Free
0
source
            
MAN8="debugfs badblocks e2fsck mke2fs dumpe2fs mklost+found \
fsck tune2fs"
MAN1="lsattr chattr"
for i in $MAN8
do
man -S 8 $i > /dev/null
0
source
            
sudo dumpe2fs -h $PARTITION | grep 'Filesystem volume name' >> .temp.$$
sudo dumpe2fs -h $PARTITION | grep 'Mount count' >> .temp.$$
sudo dumpe2fs -h $PARTITION | grep 'Maximum mount count' >> .temp.$$
sudo dumpe2fs -h $PARTITION | grep 'Last mount time' >> .temp.$$

description

dumpe2fs prints the super block and blocks group information for the filesystem present on device.

Note: When used with a mounted filesystem, the printed information may be old or inconsistent.

options

-b

print the blocks which are reserved as bad in the filesystem.

-o superblock=superblock

use the block superblock when examining the filesystem. This option is not usually needed except by a filesystem wizard who is examining the remains of a very badly corrupted filesystem.

-o blocksize=blocksize

use blocks of blocksize bytes when examining the filesystem. This option is not usually needed except by a filesystem wizard who is examining the remains of a very badly corrupted filesystem.

-f

force dumpe2fs to display a filesystem even though it may have some filesystem feature flags which dumpe2fs may not understand (and which can cause some of dumpe2fs’s display to be suspect).

-h

only display the superblock information and not any of the block group descriptor detail information.

-i

display the filesystem data from an image file created by e2image, using device as the pathname to the image file.

-x

print the detailed group information block numbers in hexadecimal format

-V

print the version number of dumpe2fs and exit.

availability

dumpe2fs is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net.


bugs

You need to know the physical filesystem structure to understand the output.


see also

e2fsck , mke2fs , tune2fs


author

dumpe2fs was written by Remy Card <Remy.Card[:at:]linux[:dot:]org>. It is currently being maintained by Theodore Ts’o <tytso[:at:]alum.mit[:dot:]edu>.

How can this site be more helpful to YOU ?


give  feedback