# E2UNDO - Replay an undo log for an ext2/ext3/ext4 file system - man(8) - [phpMan]

[_E2UNDO_(8)](https://www.chedong.com/phpMan.php/man/E2UNDO/8/markdown)                              System Manager's Manual                             [_E2UNDO_(8)](https://www.chedong.com/phpMan.php/man/E2UNDO/8/markdown)

## NAME
       e2undo - Replay an undo log for an ext2/ext3/ext4 file system

## SYNOPSIS
       **e2undo **[ **-f **] [ **-h **] [ **-n **] [ **-o _**offset_ ] [ **-v **] [ **-z _**undo_file_ ] _undo_log_ _device_

## DESCRIPTION
       **e2undo  **will  replay the undo log _undo_log_ for an ext2/ext3/ext4 file system found on _device_.
       This can be used to undo a failed operation by an e2fsprogs program.

## OPTIONS
### -f     
              matches  with the file system on the device.  If they do not match, **e2undo **will refuse
              to apply the undo log as a safety mechanism.  The **-f **option disables this safety mech‐
              anism.

### -h     

### -n     

### -o _
              Specify the file system's _offset_ (in bytes) from the beginning of the device or file.

### -v     

### -z _
              Before overwriting a file system block, write the old contents of the block to an undo
              file.  This undo file can be used with [e2undo(8)](https://www.chedong.com/phpMan.php/man/e2undo/8/markdown) to restore the old  contents  of  the
              file system should something go wrong.  If the empty string is passed as the undo_file
              argument,  the  undo  file will be written to a file named e2undo-_device_.e2undo in the
              directory specified via the _E2FSPROGS_UNDO_DIR_ environment variable.

              WARNING: The undo file cannot be used to recover from a power or system crash.

## AUTHOR
       **e2undo **was written by Aneesh Kumar K.V. (<aneesh.kumar@linux.vnet.ibm.com>)

## AVAILABILITY
       **e2undo **is part of the  e2fsprogs  package  and  is  available  from  <http://e2fsprogs.source>‐
       forge.net.

## SEE ALSO
       [**mke2fs**(8)](https://www.chedong.com/phpMan.php/man/mke2fs/8/markdown), [**tune2fs**(8)](https://www.chedong.com/phpMan.php/man/tune2fs/8/markdown)


E2fsprogs version 1.47.0                    February 2023                                  [_E2UNDO_(8)](https://www.chedong.com/phpMan.php/man/E2UNDO/8/markdown)
