北京SEO

linux文件恢复工具extundelete恢复被删除文件示例

2019/10/10/17:45:46  阅读:2210  来源:谷歌SEO算法  标签: AI科学家

extundelete是一个恢复工具了常用于linux系统中文件被删除之后的恢复软件了,下面小编来给各位整理一个extundelete工具恢复文件的例子.

安装extundelete:

  1. [root@xifenfeitmp]#bunzip2extundelete-0.2.0.tar.bz2
  2. [root@xifenfeitmp]#tarxvfextundelete-0.2.0.tar
  3. extundelete-0.2.0/
  4. extundelete-0.2.0/README
  5. extundelete-0.2.0/acinclude.m4
  6. extundelete-0.2.0/configure.ac
  7. extundelete-0.2.0/aclocal.m4
  8. extundelete-0.2.0/Makefile.am
  9. extundelete-0.2.0/Makefile.in
  10. extundelete-0.2.0/config.h.in
  11. extundelete-0.2.0/configure
  12. extundelete-0.2.0/compile
  13. extundelete-0.2.0/depcomp
  14. extundelete-0.2.0/install-sh
  15. extundelete-0.2.0/missing
  16. extundelete-0.2.0/LICENSE
  17. extundelete-0.2.0/autogen.sh
  18. extundelete-0.2.0/src/
  19. extundelete-0.2.0/src/Makefile.am
  20. extundelete-0.2.0/src/Makefile.in
  21. extundelete-0.2.0/src/extundelete.cc
  22. extundelete-0.2.0/src/block.c
  23. extundelete-0.2.0/src/insertionops.cc
  24. extundelete-0.2.0/src/block.h
  25. extundelete-0.2.0/src/extundelete.h
  26. extundelete-0.2.0/src/extundelete-priv.h
  27. extundelete-0.2.0/src/jfs_compat.h
  28. extundelete-0.2.0/src/kernel-jbd.h
  29. [root@xifenfeitmp]#cdextundelete-0.2.0
  30. [root@xifenfeiextundelete-0.2.0]#./configure
  31. Configuringextundelete0.2.0
  32. Writinggeneratedfilestodisk
  33. [root@xifenfeiextundelete-0.2.0]#make&&makeinstall
  34. make-sall-recursive
  35. Makingallinsrc
  36. Makinginstallinsrc
  37. /usr/bin/install-c'extundelete''/usr/local/bin/extundelete'

恢复操作命令:

  1. --umount或者readonly分区
  2. umount/dev/partition
  3. mount-oremount,ro/dev/partition
  4. --恢复文件
  5. xtundelete/dev/partition--restore-all
  6. extundelete/dev/partition--restore-directory/backup/gnutool-delete
  7. extundelete/dev/partition--restore-files/etc/passwd
  8. 测试恢复
  9. --基于目录恢复
  10. [root@xifenfeitmp]#extundelete/dev/sdb1--restore-directory/u01/xifenfei
  11. Loadingfilesystemmetadata...160groupsloaded.
  12. Loadingjournaldescriptors...23descriptorsloaded.
  13. WritingoutputtodirectoryRECOVERED_FILES/
  14. Failedtorestorefile/u01/xifenfei
  15. Couldnotfindcorrectinodenumberpastinode2.
  16. [root@xifenfeitmp]#cdRECOVERED_FILES/
  17. [root@xifenfeiRECOVERED_FILES]#ll
  18. total0
  19. --未成功
  20. --基于磁盘恢复
  21. [root@xifenfeiRECOVERED_FILES]#extundelete/dev/sdb1--restore-all
  22. Loadingfilesystemmetadata...160groupsloaded.
  23. Loadingjournaldescriptors...23descriptorsloaded.
  24. WritingoutputtodirectoryRECOVERED_FILES/
  25. Searchingforrecoverableinodesindirectory/...
  26. 4recoverableinodesfound.
  27. Lookingthroughthedirectorystructurefordeletedfiles...
  28. Failedtorestoreinode1966081tofileRECOVERED_FILES/xifenfei:Inodedoesnotcorrespondtoaregularfile.
  29. Restoredinode1966082tofileRECOVERED_FILES/xifenfei/xff.txt
  30. Failedtorestoreinode1966083tofileRECOVERED_FILES/xifenfei/xff:Inodedoesnotcorrespondtoaregularfile.
  31. Restoredinode1966084tofileRECOVERED_FILES/xifenfei/xff/xff.txt132
  32. 0recoverableinodesstilllost.
  33. [root@xifenfeiRECOVERED_FILES]#ll
  34. total4
  35. drwxr-xr-x3rootroot4096Aug3121:36RECOVERED_FILES
  36. [root@xifenfeiRECOVERED_FILES]#cdRECOVERED_FILES/
  37. [root@xifenfeiRECOVERED_FILES]#ll
  38. total4 --phpfensi.com
  39. drwxr-xr-x3rootroot4096Aug3121:36xifenfei
  40. [root@xifenfeiRECOVERED_FILES]#cdxifenfei/
  41. [root@xifenfeixifenfei]#ll
  42. total20
  43. drwxr-xr-x2rootroot4096Aug3121:36xff
  44. -rw-r--r--1rootroot13231Aug3121:36xff.txt
  45. [root@xifenfeixifenfei]#cdxff
  46. [root@xifenfeixff]#ll
  47. total16
  48. -rw-r--r--1rootroot13231Aug3121:36xff.txt132
  49. --恢复成功
  50. --基于文件恢复
  51. [root@xifenfeixff]#extundelete/dev/sdb1--restore-files/u01/xifenfei/xff.txt --phpfensi.com
  52. Loadingfilesystemmetadata...160groupsloaded.
  53. Loadingjournaldescriptors...23descriptorsloaded.
  54. WritingoutputtodirectoryRECOVERED_FILES/
  55. [root@xifenfeixff]#cdRECOVERED_FILES/
  56. [root@xifenfeiRECOVERED_FILES]#ll
  57. total0
  58. --未成功

通过上述实验证明extundelete还是有很大的不完整性,基于整个磁盘的恢复功能较为强大,基于目录和文件的恢复还不够强大,不过该软件在很多时候还是有救火的功能,特别是当蛋筒的人员删除了数据库的部分文件之时.

广告内容

linux文件恢复工具extundelete恢复被删除文件示例 linux文件恢复工具extundelete恢复被删除文件示例 linux文件恢复工具extundelete恢复被删除文件示例

相关阅读

热门评论

小潘seo 小潘seo

重庆小潘seo博客和你一起学习SEO知识,共同分享SEO优化~

总篇数165

精选文章

RMAN中catalog和nocatalog区别介绍 小技巧:为Linux下的文件分配多个权限 zimbra8.5.1安装第三方签名ssl证书的步骤 解决mysql不能远程连接数据库方法 windows服务器mysql增量备份批处理数据库 mysql中slow query log慢日志查询分析 JavaScript跨域问题总结 Linux下负载均衡软件LVS配置(VS/DR)教程 mysql中权限参数说明 MYSQL(错误1053)无法正常启动

SEO最新算法