← 返回命令列表

Linux command

e2undo 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

e2undo -h [path/to/undo_file] [/dev/sdXN]

Dry run

e2undo -nv [path/to/undo_file] [/dev/sdXN]

Example

e2undo [path/to/undo_file] [/dev/sdXN]

Example

e2undo -v [path/to/undo_file] [/dev/sdXN]

Example

e2undo -z [path/to/file.e2undo] [path/to/undo_file] [/dev/sdXN]

说明

e2undo replays undo logs for ext2/ext3/ext4 filesystems. This can reverse a failed or unwanted operation by e2fsprogs tools like e2fsck, resize2fs, or tune2fs, providing a safety mechanism for filesystem modifications. Undo files are created when these tools are run with the -z option. The undo file records all blocks modified during the operation, allowing precise rollback to the pre-operation state. This is particularly valuable when testing filesystem modifications or recovering from interrupted operations.

参数

-h
Display undo file information
-n
Dry run, don't modify filesystem
-v
Verbose output
-z _file_
Create backup undo file

FAQ

What is the e2undo command used for?

e2undo replays undo logs for ext2/ext3/ext4 filesystems. This can reverse a failed or unwanted operation by e2fsprogs tools like e2fsck, resize2fs, or tune2fs, providing a safety mechanism for filesystem modifications. Undo files are created when these tools are run with the -z option. The undo file records all blocks modified during the operation, allowing precise rollback to the pre-operation state. This is particularly valuable when testing filesystem modifications or recovering from interrupted operations.

How do I run a basic e2undo example?

Run `e2undo -h [path/to/undo_file] [/dev/sdXN]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h do in e2undo?

Display undo file information