linux文件恢复工具extundelete恢复被删除文件示例
2019/10/10/17:45:46 阅读:2210 来源:谷歌SEO算法 标签:
AI科学家
extundelete是一个恢复工具了常用于linux系统中文件被删除之后的恢复软件了,下面小编来给各位整理一个extundelete工具恢复文件的例子.
安装extundelete:
- [root@xifenfeitmp]#bunzip2extundelete-0.2.0.tar.bz2
- [root@xifenfeitmp]#tarxvfextundelete-0.2.0.tar
- extundelete-0.2.0/
- extundelete-0.2.0/README
- extundelete-0.2.0/acinclude.m4
- extundelete-0.2.0/configure.ac
- extundelete-0.2.0/aclocal.m4
- extundelete-0.2.0/Makefile.am
- extundelete-0.2.0/Makefile.in
- extundelete-0.2.0/config.h.in
- extundelete-0.2.0/configure
- extundelete-0.2.0/compile
- extundelete-0.2.0/depcomp
- extundelete-0.2.0/install-sh
- extundelete-0.2.0/missing
- extundelete-0.2.0/LICENSE
- extundelete-0.2.0/autogen.sh
- extundelete-0.2.0/src/
- extundelete-0.2.0/src/Makefile.am
- extundelete-0.2.0/src/Makefile.in
- extundelete-0.2.0/src/extundelete.cc
- extundelete-0.2.0/src/block.c
- extundelete-0.2.0/src/insertionops.cc
- extundelete-0.2.0/src/block.h
- extundelete-0.2.0/src/extundelete.h
- extundelete-0.2.0/src/extundelete-priv.h
- extundelete-0.2.0/src/jfs_compat.h
- extundelete-0.2.0/src/kernel-jbd.h
- [root@xifenfeitmp]#cdextundelete-0.2.0
- [root@xifenfeiextundelete-0.2.0]#./configure
- Configuringextundelete0.2.0
- Writinggeneratedfilestodisk
- [root@xifenfeiextundelete-0.2.0]#make&&makeinstall
- make-sall-recursive
- Makingallinsrc
- Makinginstallinsrc
- /usr/bin/install-c'extundelete''/usr/local/bin/extundelete'
恢复操作命令:
- --umount或者readonly分区
- umount/dev/partition
- mount-oremount,ro/dev/partition
- --恢复文件
- xtundelete/dev/partition--restore-all
- extundelete/dev/partition--restore-directory/backup/gnutool-delete
- extundelete/dev/partition--restore-files/etc/passwd
- 测试恢复
- --基于目录恢复
- [root@xifenfeitmp]#extundelete/dev/sdb1--restore-directory/u01/xifenfei
- Loadingfilesystemmetadata...160groupsloaded.
- Loadingjournaldescriptors...23descriptorsloaded.
- WritingoutputtodirectoryRECOVERED_FILES/
- Failedtorestorefile/u01/xifenfei
- Couldnotfindcorrectinodenumberpastinode2.
- [root@xifenfeitmp]#cdRECOVERED_FILES/
- [root@xifenfeiRECOVERED_FILES]#ll
- total0
- --未成功
- --基于磁盘恢复
- [root@xifenfeiRECOVERED_FILES]#extundelete/dev/sdb1--restore-all
- Loadingfilesystemmetadata...160groupsloaded.
- Loadingjournaldescriptors...23descriptorsloaded.
- WritingoutputtodirectoryRECOVERED_FILES/
- Searchingforrecoverableinodesindirectory/...
- 4recoverableinodesfound.
- Lookingthroughthedirectorystructurefordeletedfiles...
- Failedtorestoreinode1966081tofileRECOVERED_FILES/xifenfei:Inodedoesnotcorrespondtoaregularfile.
- Restoredinode1966082tofileRECOVERED_FILES/xifenfei/xff.txt
- Failedtorestoreinode1966083tofileRECOVERED_FILES/xifenfei/xff:Inodedoesnotcorrespondtoaregularfile.
- Restoredinode1966084tofileRECOVERED_FILES/xifenfei/xff/xff.txt132
- 0recoverableinodesstilllost.
- [root@xifenfeiRECOVERED_FILES]#ll
- total4
- drwxr-xr-x3rootroot4096Aug3121:36RECOVERED_FILES
- [root@xifenfeiRECOVERED_FILES]#cdRECOVERED_FILES/
- [root@xifenfeiRECOVERED_FILES]#ll
- total4 --phpfensi.com
- drwxr-xr-x3rootroot4096Aug3121:36xifenfei
- [root@xifenfeiRECOVERED_FILES]#cdxifenfei/
- [root@xifenfeixifenfei]#ll
- total20
- drwxr-xr-x2rootroot4096Aug3121:36xff
- -rw-r--r--1rootroot13231Aug3121:36xff.txt
- [root@xifenfeixifenfei]#cdxff
- [root@xifenfeixff]#ll
- total16
- -rw-r--r--1rootroot13231Aug3121:36xff.txt132
- --恢复成功
- --基于文件恢复
- [root@xifenfeixff]#extundelete/dev/sdb1--restore-files/u01/xifenfei/xff.txt --phpfensi.com
- Loadingfilesystemmetadata...160groupsloaded.
- Loadingjournaldescriptors...23descriptorsloaded.
- WritingoutputtodirectoryRECOVERED_FILES/
- [root@xifenfeixff]#cdRECOVERED_FILES/
- [root@xifenfeiRECOVERED_FILES]#ll
- total0
- --未成功
通过上述实验证明extundelete还是有很大的不完整性,基于整个磁盘的恢复功能较为强大,基于目录和文件的恢复还不够强大,不过该软件在很多时候还是有救火的功能,特别是当蛋筒的人员删除了数据库的部分文件之时.
热门评论