snippetbashTip
e2undo — Replay undo logs for an ext2/ext3/ext4 filesystem. This can be used to undo a failed operation by an
Viewed 0 times
e2undocommandclireplayforundoext2logs
linux
Problem
How to use the
e2undo command: Replay undo logs for an ext2/ext3/ext4 filesystem. This can be used to undo a failed operation by an e2fsprogs program. More information: <https://manned.org/e2undo>.Solution
e2undo — Replay undo logs for an ext2/ext3/ext4 filesystem. This can be used to undo a failed operation by an e2fsprogs program. More information: <https://manned.org/e2undo>.Display information about a specific undo file:
e2undo -h {{path/to/undo_file}} {{/dev/sdXN}}Perform a dry-run and display the candidate blocks for replaying:
e2undo -nv {{path/to/undo_file}} {{/dev/sdXN}}Perform an undo operation:
e2undo {{path/to/undo_file}} {{/dev/sdXN}}Perform an undo operation and display [v]erbose information:
e2undo -v {{path/to/undo_file}} {{/dev/sdXN}}Write the old contents of the block to an undo file before overwriting a file system block:
e2undo -z {{path/to/file.e2undo}} {{path/to/undo_file}} {{/dev/sdXN}}Code Snippets
Display information about a specific undo file
e2undo -h {{path/to/undo_file}} {{/dev/sdXN}}Perform a dry-run and display the candidate blocks for replaying
e2undo -nv {{path/to/undo_file}} {{/dev/sdXN}}Perform an undo operation
e2undo {{path/to/undo_file}} {{/dev/sdXN}}Perform an undo operation and display [v]erbose information
e2undo -v {{path/to/undo_file}} {{/dev/sdXN}}Write the old contents of the block to an undo file before overwriting a file system block
e2undo -z {{path/to/file.e2undo}} {{path/to/undo_file}} {{/dev/sdXN}}Context
tldr-pages: linux/e2undo
Revisions (0)
No revisions yet.