man > e2undo(8)

๐Ÿ”„ e2undo(8) โ€” System Manager's Manual

๐Ÿ“ NAME

e2undo โ€” Replay an undo log for an ext2/ext3/ext4 file system

๐Ÿš€ Quick Reference

Use Case Command Description
๐Ÿ”„ Undo a failed operation e2undo undo_log device Replay the undo log to revert changes
๐Ÿ”“ Force undo (bypass signature check) e2undo -f undo_log device Apply undo even if superblock signature doesn't match
๐Ÿงช Dryโ€‘run (preview only) e2undo -n undo_log device Show what would be done without writing any blocks
๐Ÿ“ Specify filesystem offset e2undo -o offset undo_log device Set the offset (in bytes) from the beginning of the device
๐Ÿ“ข Verbose mode e2undo -v undo_log device Report which block is currently being replayed
๐Ÿ’พ Create an undo file before overwriting e2undo -z undo_file undo_log device Save current block contents so they can be restored later

๐Ÿ“– 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

Normally, e2undo will check the file system superblock to make sure the undo log 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 mechanism.

โ„น๏ธ -h

Display a usage message.

๐Ÿงช -n

Dryโ€‘run; do not actually write blocks back to the file system.

๐Ÿ“ -o offset

Specify the file system's offset (in bytes) from the beginning of the device or file.

๐Ÿ“ข -v

Report which block we're currently replaying.

๐Ÿ’พ -z undo_file

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) 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 AT linux.com)

๐Ÿ“ฆ AVAILABILITY

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

๐Ÿ”— SEE ALSO

mke2fs(8), tune2fs(8)

E2fsprogs version 1.46.5 โ€” December 2021 โ€” E2UNDO(8)

e2undo(8)
๐Ÿ”„ e2undo(8) โ€” System Manager's Manual ๐Ÿ“ NAME ๐Ÿš€ Quick Reference ๐Ÿ“– SYNOPSIS ๐Ÿ“ DESCRIPTION โš™๏ธ OPTIONS
๐Ÿ”’ -f โ„น๏ธ -h ๐Ÿงช -n ๐Ÿ“ -o offset ๐Ÿ“ข -v ๐Ÿ’พ -z undo_file
๐Ÿ‘ค AUTHOR ๐Ÿ“ฆ AVAILABILITY ๐Ÿ”— SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-15 23:15 @216.73.216.102
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!