Linux Commands Examples

A great documentation place for Linux commands

e2undo

Replay an undo log for an ext2/ext3/ext4 filesystem


see also : mke2fs - tune2fs

Synopsis

e2undo [ -f ] undo_log device


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
printf "e2undo with mke2fs: "
if test -x $E2UNDO_EXE; then
E2FSPROGS_UNDO_DIR=./
export E2FSPROGS_UNDO_DIR
export E2FSPROGS_UNDO_DIR
TDB_FILE=./mke2fs-test.img.e2undo
OUT=$test_name.log
rm -f $TDB_FILE >/dev/null 2>&1
dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1
0
source
            
printf "e2undo with tune2fs: "
if test -x $E2UNDO_EXE; then
E2FSPROGS_UNDO_DIR=./
export E2FSPROGS_UNDO_DIR
export E2FSPROGS_UNDO_DIR
TDB_FILE=./tune2fs-test.img.e2undo
OUT=$test_name.log
rm -f $TDB_FILE >/dev/null 2>&1
dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1
0
source
            
printf "e2undo with mke2fs: "
if test -x $E2UNDO_EXE; then
E2FSPROGS_UNDO_DIR=/tmp
export E2FSPROGS_UNDO_DIR
export E2FSPROGS_UNDO_DIR
TDB_FILE=$E2FSPROGS_UNDO_DIR/mke2fs-$(basename $TMPFILE).e2undo
OUT=$test_name.log
rm -f $TDB_FILE >/dev/null 2>&1
0
source
            
printf "e2undo with tune2fs: "
if test -x $E2UNDO_EXE; then
E2FSPROGS_UNDO_DIR=/tmp
export E2FSPROGS_UNDO_DIR
export E2FSPROGS_UNDO_DIR
TDB_FILE=$E2FSPROGS_UNDO_DIR/tune2fs-$(basename $TMPFILE).e2undo
OUT=$test_name.log
rm -f $TDB_FILE >/dev/null 2>&1

description

e2undo will replay the undo log undo_log for an ext2/ext3/ext4 filesystem found on device. This can be used to undo a failed operation by an e2fsprogs program.

options

-f

Normally, e2undo will check the filesystem UUID and last modified time to make sure the undo log matches with the filesystem 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 mechanism.

availability

e2undo is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net.


see also

mke2fs , tune2fs


author

e2undo was written by Aneesh Kumar K.V. (aneesh.kumar[:at:]linux.vnet.ibm[:dot:]com)

How can this site be more helpful to YOU ?


give  feedback