{
    "mode": "man",
    "parameter": "E2UNDO",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/E2UNDO/8/json",
    "generated": "2026-06-03T04:27:04Z",
    "synopsis": "e2undo [ -f ] [ -h ] [ -n ] [ -o offset ] [ -v ] [ -z undofile ] undolog device",
    "sections": {
        "NAME": {
            "content": "e2undo - Replay an undo log for an ext2/ext3/ext4 file system\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "e2undo [ -f ] [ -h ] [ -n ] [ -o offset ] [ -v ] [ -z undofile ] undolog device\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "e2undo  will  replay the undo log undolog for an ext2/ext3/ext4 file system found on device.\nThis can be used to undo a failed operation by an e2fsprogs program.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-f",
                    "content": "matches  with the file system on the device.  If they do not match, e2undo will refuse\nto apply the undo log as a safety mechanism.  The -f option disables this safety mech‐\nanism.\n",
                    "flag": "-f"
                },
                {
                    "name": "-h",
                    "content": "",
                    "flag": "-h"
                },
                {
                    "name": "-n",
                    "content": "",
                    "flag": "-n"
                },
                {
                    "name": "-o",
                    "content": "Specify the file system's offset (in bytes) from the beginning of the device or file.\n",
                    "flag": "-o"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "-z",
                    "content": "Before overwriting a file system block, write the old contents of the block to an undo\nfile.  This undo file can be used with e2undo(8) to restore the old  contents  of  the\nfile system should something go wrong.  If the empty string is passed as the undofile\nargument, the undo file will be written to a file named  e2undo-device.e2undo  in  the\ndirectory specified via the E2FSPROGSUNDODIR environment variable.\n\nWARNING: The undo file cannot be used to recover from a power or system crash.\n",
                    "flag": "-z"
                }
            ]
        },
        "AUTHOR": {
            "content": "e2undo was written by Aneesh Kumar K.V. (aneesh.kumar@linux.vnet.ibm.com)\n",
            "subsections": []
        },
        "AVAILABILITY": {
            "content": "e2undo  is  part  of  the  e2fsprogs  package  and is available from http://e2fsprogs.source‐\nforge.net.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "mke2fs(8), tune2fs(8)\n\n\n\n\nE2fsprogs version 1.46.5                    December 2021                                  E2UNDO(8)",
            "subsections": []
        }
    },
    "summary": "e2undo - Replay an undo log for an ext2/ext3/ext4 file system",
    "flags": [
        {
            "flag": "-f",
            "long": null,
            "arg": null,
            "description": "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."
        },
        {
            "flag": "-h",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-n",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-o",
            "long": null,
            "arg": null,
            "description": "Specify the file system's offset (in bytes) from the beginning of the device or file."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-z",
            "long": null,
            "arg": null,
            "description": "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 undofile argument, the undo file will be written to a file named e2undo-device.e2undo in the directory specified via the E2FSPROGSUNDODIR environment variable. WARNING: The undo file cannot be used to recover from a power or system crash."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "mke2fs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mke2fs/8/json"
        },
        {
            "name": "tune2fs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tune2fs/8/json"
        }
    ]
}