From 39e5e04e4a67ab9ad9c0298de08ab55c0e62e55e Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Mon, 4 Jan 2021 14:07:27 -0300 Subject: [PATCH] e2undo: add page (#5074) --- pages/linux/e2undo.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/linux/e2undo.md diff --git a/pages/linux/e2undo.md b/pages/linux/e2undo.md new file mode 100644 index 000000000..4faed7c70 --- /dev/null +++ b/pages/linux/e2undo.md @@ -0,0 +1,25 @@ +# 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: . + +- 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 verbose 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}}`