e2recover(1) - Linux man page
Name
e2recover - attempt to recover deleted files on ext2 file systemsSynopsis
e2recover [options]... [lsdel-files]...Description
e2recover attempts to recover deleted files from an ext2 file system, using the output (in lsdel-files) from the 'lsdel' command in debugfs(1). Standard input is read if no file names are given, or on a file name of '-'. Recovered files are written to the appropriate temporary directory, with names like e2rec.pid.dev.inum. It uses the environment variables $FSGRAB and $DEBUGFS to find those programs, or looks in $PATH if they are unset.
More information on e2recover (including a description of how it works its magic, and the situations in which it fails) are available on the author's website.
Options
- -d, --device=device
- Read data from device instead of the default /dev/hda1.
- -b, --block-size=blocksize
- Use a block size of blocksize instead of the default 1024 bytes. blocksize may have an optional multiplier suffix: w for ×2, b for ×512, k for ×1024, m for ×1Meg.
- -t, --tmpdir, --tempdir=tmpdir
- Write recovered files to tmpdir instead of the default ${TMPDIR:-/tmp}.
- -g, --guess-indirects
- Try to recover files with zeroed indirect blocks by assuming that there was no fragmentation in the file. Unless the files were deleted under a Linux 2.1.x or 2.2.x kernel, you will normally want to specify this option, though how useful it is will depend on a wide variety of environmental factors.
- --help
- Write a usage message to standard output and exit successfully.
- --version
- Write version information to standard output and exit successfully.
See Also
- fsgrab(1).
- debugfs(1).
- http://web.mit.edu/tytso/www/linux/e2fsprogs.html is the home site for the suite of programs which provides debugfs.
- The Ext2fs-Undeletion mini-HOWTO
- http://pobox.com/~aaronc/tech/e2-undel/, as well as all Linux Documentation Project mirrors.
Author
Aaron Crane <aaronc@pobox.com>. Bug-reports, comments and patches are always welcomed.Copyright
This file is part of e2recover, a suite of programs which assist in recovering deleted files from ext2 file systems. e2recover is Copyright © 1997, 1998, 1999 Aaron Crane <aaronc@pobox.com>.This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with fsgrab; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.