这里用到的套件是ext3grep、系统必须默认的安装上e2fsprogs-libs-1.39-23.el5e、2fsprogs-devel-1.39-23.el5、e2fsprogs-1.39-23.el5这些软件
[root@localhost ~]
e2fsprogs-libs-1.39-23.el5
e2fsprogs-devel-1.39-23.el5
e2fsprogs-1.39-23.el5
[root@localhost ~]
-rw-r--r-- 1 root root 236364 Oct 17 2011 ext3grep-0.10.2.
tar
.gz
[root@localhost ~]
[root@localhost ~]
[root@localhost ext3grep-0.10.2]
[root@localhost ext3grep-0.10.2]
[root@localhost ~]
total 2656
-rwxr-xr-x 1 root root 2709704 Oct 15 04:46 ext3grep
//www
.linuxidc.com这句是那个可执行文件
接下来演示一个补救的过程实例
[root@localhost ~]
[root@localhost data]
[root@localhost data]
[root@localhost data]
[root@localhost data]
[root@localhost data]
[root@localhost data]
[root@localhost data]
[root@localhost data]
[root@localhost data]
[root@localhost data]
[root@localhost data]
[root@localhost data]
data-disk data-disk.ext3grep.stage1 data-disk.ext3grep.stage2 RESTORED_FILES
[root@localhost data]
total 48
-rw-r--r-- 1 root root 17 Oct 15 06:03 host.conf
-rw-r--r-- 1 root root 187 Oct 15 06:03 hosts
-rw-r--r-- 1 root root 161 Oct 15 06:03 hosts.allow
-rw-r--r-- 1 root root 347 Oct 15 06:03 hosts.deny
drwx------ 2 root root 4096 Oct 15 06:04 lost+found
-rw-r--r-- 1 root root 1635 Oct 15 06:03
passwd
总结:这里只能实现的是首次恢复的动作,并且不能有覆盖的动作,这个是很久以前都知道的知识,在这里做个笔记,以加深记忆!
连接 : http://blog.csdn.net/panfelix/article/details/41962093