Linux下高效数据恢复软件extundelete应用实战
来源:互联网 发布:上古卷轴5性能优化补丁 编辑:程序博客网 时间:2024/05/16 15:57
1
2
[root@cloud1 ~]
# ls -id /
2 /
1
2
3
4
5
[root@cloud1 app]
#tar jxvf extundelete-0.2.4.tar.bz2
[root@cloud1 app]
#cd extundelete-0.2.4
[root@cloud1 extundelete-0.2.4]
#./configure
[root@cloud1 extundelete-0.2.4]
#make
[root@cloud1 extundelete-0.2.4]
#make install
1
extundelete [options] [action] device-
file
1
2
3
4
5
6
7
8
9
10
11
12
13
[root@cloud1 ~]
#mkdir /data
[root@cloud1 ~]
#mkfs.ext3 /dev/sdc1
[root@cloud1 ~]
#mount /dev/sdc1 /data
[root@cloud1 ~]
# cp /etc/passwd /data
[root@cloud1 ~]
# cp -r /app/ganglia-3.4.0 /data
[root@cloud1 ~]
# mkdir /data/test
[root@cloud1 ~]
# echo "extundelete test" > /data/test/mytest.txt
[root@cloud1 ~]
#cd /data
[root@cloud1 data]
# md5sum passwd
0715baf8f17a6c51be63b1c5c0fbe8c5
passwd
[root@cloud1 data]
# md5sum test/mytest.txt
eb42e4b3f953ce00e78e11bf50652a80
test
/mytest
.txt
[root@cloud1 data]
# rm -rf /data/*
1
2
[root@cloud1 data]
#cd /mnt
[root@cloud1 mnt]
# umount /data
1
2
3
4
5
6
7
8
9
[root@cloud1 /]
# extundelete /dev/sdc1 --inode 2
......
File name | Inode number | Deleted status
. 2
.. 2
lost+found 11 Deleted
passwd
49153 Deleted
test
425985 Deleted
ganglia-3.4.0 245761 Deleted
1
2
3
4
5
6
7
8
9
[root@cloud1 /]
# extundelete /dev/sdc1 --restore-file passwd
Loading filesystem metadata ... 40
groups
loaded.
Loading journal descriptors ... 54 descriptors loaded.
Successfully restored
file
passwd
[root@cloud1 /]
# cd RECOVERED_FILES/
[root@cloud1 RECOVERED_FILES]
# ls
passwd
[root@cloud1 RECOVERED_FILES]
# md5sum passwd
0715baf8f17a6c51be63b1c5c0fbe8c5
passwd
1
2
3
4
5
6
7
8
9
10
11
12
[root@cloud1 mnt]
# extundelete /dev/sdc1 --restore-directory /ganglia-3.4.0
Loading filesystem metadata ... 40
groups
loaded.
Loading journal descriptors ... 247 descriptors loaded.
Searching
for
recoverable inodes
in
directory
/ganglia-3
.4.0 ...
781 recoverable inodes found.
Looking through the directory structure
for
deleted files ...
4 recoverable inodes still lost.
[root@cloud1 mnt]
# ls
RECOVERED_FILES
[root@cloud1 mnt]
# cd RECOVERED_FILES/
[root@cloud1 RECOVERED_FILES]
# ls
ganglia-3.4.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[root@cloud1 mnt]
# extundelete /dev/sdc1 --restore-all
Loading filesystem metadata ... 40
groups
loaded.
Loading journal descriptors ... 247 descriptors loaded.
Searching
for
recoverable inodes
in
directory / ...
781 recoverable inodes found.
Looking through the directory structure
for
deleted files ...
0 recoverable inodes still lost.
[root@cloud1 mnt]
# ls
RECOVERED_FILES
[root@cloud1 mnt]
# cd RECOVERED_FILES/
[root@cloud1 RECOVERED_FILES]
# ls
ganglia-3.4.0
passwd
test
[root@cloud1 RECOVERED_FILES]
# du -sh /mnt/RECOVERED_FILES/*
15M
/mnt/RECOVERED_FILES/ganglia-3
.4.0
4.0K
/mnt/RECOVERED_FILES/passwd
8.0K
/mnt/RECOVERED_FILES/test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@cloud1 ~]
#cd /data/
[root@cloud1 data]
# cp /app/ganglia-3.4.0.tar.gz /data
[root@cloud1 data]
# date +%s
1379150309
[root@cloud1 data]
# rm -rf ganglia-3.4.0.tar.gz
[root@cloud1 data]
# cd /mnt
[root@cloud1 mnt]
# umount /data
[root@cloud1 mnt]
# date +%s
1379150340
[root@cloud1 mnt]
# extundelete --after 1379146740 --restore-all /dev/sdc1
Only show and process deleted entries
if
they are deleted on or after 1379146740 and before 9223372036854775807.
Loading filesystem metadata ... 40
groups
loaded.
Loading journal descriptors ... 247 descriptors loaded.
Searching
for
recoverable inodes
in
directory / ...
779 recoverable inodes found.
[root@cloud1 mnt]
# cd RECOVERED_FILES/
[root@cloud1 RECOVERED_FILES]
# ls
ganglia-3.4.0.
tar
.gz
阅读全文
0 0
- Linux下高效数据恢复软件extundelete应用实战
- Linux下高效数据恢复软件extundelete应用实战
- Linux下高效数据恢复软件extundelete应用实战
- [转载]Linux下高效数据恢复软件extundelete应用实战
- Linux下高效数据恢复软件extundelete应用实战
- Linux 数据恢复 Extundelete
- linux 数据恢复 centos 下数据恢复 ext3grep extundelete
- linux 数据恢复工具extundelete
- Linux下使用extundelete实现文件/文件夹数据恢复
- linux下使用extundelete恢复误删
- extundelete应用实战
- Linux 文件恢复 - extundelete
- linux用extundelete恢复ext2、ext3、ext4下rm -rf误删除的数据
- centos7下使用extundelete恢复误删数据
- Linux下使用extundelete恢复ext3误删除数据文件
- 用extundelete恢复Ubuntu Linux下删除的文件
- linux下extundelete恢复ext4删除的文件
- Linux下使用extundelete恢复误删文件
- 7月英语学习有感
- CSS 按钮button美化
- java.lang.NoSuchFieldException: ID
- 新版phpStudy,支持自定义php版本
- Centos下telnet的安装和配置
- Linux下高效数据恢复软件extundelete应用实战
- 【AngularJS学习】ngDialog中文API
- error LNK2019 无法解析的外部符号
- Junit单元测试笔记
- 创建多个Oracle数据库及相应的实例
- linux 常用指令备份
- 笔记_1
- zookeeper的php扩展安装及使用
- HDU1728 逃离迷宫