Linux Ext3、Ext4误删文件恢复 extundelete
2015-05-12 18:15
691 查看
使用linux难免遇到误删文件的情况,使用extundlete 即可恢复误删文件
记下操作流程:
1. 安装Linux数据恢复软件extundelete
需要依赖两个包
sudo aptitude install e2fsprogs e2fslibs-dev
下载页面http://extundelete.sourceforge.net/
快速下载: download extundelete
编译三部曲
./configure
make
sudo make install
2.如果分区已经挂载,先umount,并且在将要恢复的地方查看空间大小
df -h ./
如果你要恢复的是根目录或者系统目录就只有拿硬盘挂到另外一台电脑上操作了。
使用方法:
---------------------------------------------
$ extundelete --help
Usage: extundelete [options] [--] device-file
Options:
--version, -[vV] Print version and exit successfully.
--help, Print this help and exit successfully.
--superblock Print contents of superblock in addition to the rest.
If no action is specified then this option is implied.
--journal Show content of journal.
--after dtime Only process entries deleted on or after 'dtime'.
--before dtime Only process entries deleted before 'dtime'.
Actions:
--inode ino Show info on inode 'ino'.
--block blk Show info on block 'blk'.
--restore-inode ino[,ino,...]
Restore the file(s) with known inode number 'ino'.
The restored files are created in ./RESTORED_FILES
with their inode number as extension (ie, file.12345).
--restore-file 'path' Will restore file 'path'. 'path' is relative to root
of the partition and does not start with a '/' (it
must be one of the paths returned by --dump-names).
The restored file is created in the current
directory as 'RECOVERED_FILES/path'.
--restore-files 'path' Will restore files which are listed in the file 'path'.
Each filename should be in the same format as an option
to --restore-file, and there should be one per line.
--restore-all Attempts to restore everything.
-j journal Reads an external journal from the named file.
-b blocknumber Uses the backup superblock at blocknumber when opening
the file system.
-B blocksize Uses blocksize as the block size when opening the file
system. The number should be the number of bytes.
恢复分区所有的文件
# extundelete /dev/sda1 –-restore-all
恢复单个文件
# extundelete /dev/sda3 --restore-file /root/aaa.file
恢复单个目录
# extundelete /dev/sdb1 --restore-directory /root/aaa
恢复的文件在当前位置的RECOVERED_FILES目录下。
记下操作流程:
1. 安装Linux数据恢复软件extundelete
需要依赖两个包
sudo aptitude install e2fsprogs e2fslibs-dev
下载页面http://extundelete.sourceforge.net/
快速下载: download extundelete
编译三部曲
./configure
make
sudo make install
2.如果分区已经挂载,先umount,并且在将要恢复的地方查看空间大小
df -h ./
如果你要恢复的是根目录或者系统目录就只有拿硬盘挂到另外一台电脑上操作了。
使用方法:
---------------------------------------------
$ extundelete --help
Usage: extundelete [options] [--] device-file
Options:
--version, -[vV] Print version and exit successfully.
--help, Print this help and exit successfully.
--superblock Print contents of superblock in addition to the rest.
If no action is specified then this option is implied.
--journal Show content of journal.
--after dtime Only process entries deleted on or after 'dtime'.
--before dtime Only process entries deleted before 'dtime'.
Actions:
--inode ino Show info on inode 'ino'.
--block blk Show info on block 'blk'.
--restore-inode ino[,ino,...]
Restore the file(s) with known inode number 'ino'.
The restored files are created in ./RESTORED_FILES
with their inode number as extension (ie, file.12345).
--restore-file 'path' Will restore file 'path'. 'path' is relative to root
of the partition and does not start with a '/' (it
must be one of the paths returned by --dump-names).
The restored file is created in the current
directory as 'RECOVERED_FILES/path'.
--restore-files 'path' Will restore files which are listed in the file 'path'.
Each filename should be in the same format as an option
to --restore-file, and there should be one per line.
--restore-all Attempts to restore everything.
-j journal Reads an external journal from the named file.
-b blocknumber Uses the backup superblock at blocknumber when opening
the file system.
-B blocksize Uses blocksize as the block size when opening the file
system. The number should be the number of bytes.
恢复分区所有的文件
# extundelete /dev/sda1 –-restore-all
恢复单个文件
# extundelete /dev/sda3 --restore-file /root/aaa.file
恢复单个目录
# extundelete /dev/sdb1 --restore-directory /root/aaa
恢复的文件在当前位置的RECOVERED_FILES目录下。
相关文章推荐
- 使用extundelete恢复linux ext3 ext4文件系统下由 rm -rf 误删除文件
- linux系统误删文件怎么办!使用extundelete恢复数据
- extundelete——linux下误删文件的恢复
- 用extundelete恢复Linux下误删的文件
- Linux用extundelete恢复误删文件
- Linux下使用extundelete恢复ext3误删除数据文件
- opensuse 12.3 使用extundelete恢复ext3,ext4文件系统下被rm删除的数据
- linux用extundelete恢复ext2、ext3、ext4下rm -rf误删
- linux用extundelete恢复ext2、ext3、ext4下rm -rf误删除的数据
- Linux文件恢复利器 ext3grep与extundelete
- Linux中用extundelete恢复误删文件
- Linux文件恢复利器 ext3grep与extundelete
- linux下extundelete恢复ext4删除的文件
- 恢复Linux误删除文件系列之extundelete工具
- linux 下文件恢复工具extundelete
- linux 数据恢复 centos 下数据恢复 ext3grep extundelete
- linux下文件恢复工具extundelete
- Linux ext3/ext4误删文件,数据恢复方法
- 运维日记002-extundelete恢复Linux系统误删除的文件
- Linux有时候执行了 rm -rf 等操作误删了文件绝对是一件可怕的事情,好在有一些解决的办法可以临时救急。这时我们就要用到一款叫做extundelete的工具了。