E2UNDO(8)
๐ E2UNDO ๐
okay bestie, so this is e2undo from the e2undo(8) corner of the System Manager's Manual, and it's literally the "oops, undo that" button for your ext2/ext3/ext4 file systems. no cap. let's get into it ๐ซถ
โจ NAME โจ
e2undo โ replay an undo log for an ext2/ext3/ext4 file system ๐
๐ฆ SYNOPSIS ๐ฆ
e2undo [ -f ] [ -h ] [ -n ] [ -o offset ] [ -v ] [ -z undo_file ]
undo_log device
๐ธ DESCRIPTION ๐ธ
so here's the vibe: e2undo will replay the undo log undo_log for an ext2/ext3/ext4 file system that's chillin' on device. โจ
and like, why do you care? because this is how you undo a failed operation by an e2fsprogs program. the program fumbled, the undo log remembers what things looked like before, and e2undo puts it all back. main character energy fr fr. ๐
๐ OPTIONS ๐
-fโ normally,e2undochecks the file system superblock to make sure the undo log actually matches the file system ondevice. if they don't match,e2undowill refuse to apply the undo log as a safety mechanism (iconic behaviour honestly, it's looking out for you ๐ฅบ). the-foption disables this safety mechanism. so yeah, you're on your own after that. ๐ญ-hโ display a usage message. short king of flags, tells you how to use it. ๐-nโ dry-run; do not actually write blocks back to the file system. it's giving "just looking, not touching". ๐-ooffsetโ specify the file system's offset (in bytes) from the beginning of thedeviceor file. numbers, bestie, in bytes. ๐ข-vโ report which block we're currently replaying. very "not me narrating my own work" but honestly we love the transparency. โจ-zundo_fileโ before overwriting a file system block, write the old contents of the block to an undo file. this undo file can be used withe2undo(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. yes, that's a real env var, write it down. ๐
WARNING: the undo file cannot be used to recover from a power or system crash. ๐ like, that's not what it's for, bestie. do not test this. do not. ๐
๐ AUTHOR ๐
e2undo was written by Aneesh Kumar K.V. (aneesh.kumar@linux.vnet.ibm.com). giving credit where credit is due, periodt. ๐
๐ AVAILABILITY ๐
e2undo is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net. go get it, it's free, it's iconic. โญ
๐ SEE ALSO ๐
iykyk โ go read those next, bestie. ๐
and that's the whole page!! this was E2fsprogs version 1.47.4, dated March 2025, and it's the E2UNDO(8) manual page, signing off. mwah. ๐โจ๐๐ฆ
๐ฆ where this page comes from
- alpine 3.24: e2fsprogs-doc 1.47.4-r0 ยท GPL-2.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause AND MIT
- arch rolling: e2fsprogs 1.47.4-1 ยท GPL AND LGPL AND MIT
- nixpkgs unstable: e2fsprogs 1.47.4
- ubuntu stonking: e2fsprogs 1.47.4-1 ยท GPL-2.0-only
- Copyright 2008 by Theodore Ts'o. All Rights Reserved
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms