• Linux ext3/ext4数据恢复


    2012年12月9日 
     
     
    测试环境:
    Ubuntu 12.04 X86 +ext4
    恢复文件使用的工具:extundelete(点击下载)
    说明:当文件异常消失或者rm误删除后,避免在该分区中继续读、写、删除等操作。如果是恢复整块硬盘,请考虑安装extundelete所在分区的空间大小。
    安装extundelete:
    tar -xjf extundelete-0.2.2.tar.bz
    cd extundelete-0.2.2
    ./configure
    make&make install
     make -s all-recursive
    Making all in src
    Making install in src
         /usr/bin/install -c ‘extundelete’ ‘/usr/local/bin/extundelete’
    说明安装成功。
    --恢复文件
    恢复/dev/sda5中所有数据
    xtundelete /dev/sda5 --restore-all  
    恢复/dev/sda5中/tool目录下所有数据
    extundelete /dev/sda5 --restore-directory /tool
    恢复/dev/sda5中某一个文件数据
    extundelete /dev/sda5 --restore-files /etc/passwd
    此程序不能指定恢复文件到指定目录,默认恢复的文件保存在extundelete所在目录RECOVERED_FILES下,
    extundelete 路径为:/usr/local/bin/extundelete
    文件恢复路径:/usr/local/bin/extundelete/RECOVERED_FILES
    因此extundelete所在分区一定要大,否则会会提示空间不足。
     
    **********************************************************************
    Ubuntu下的数据恢复软件testdisk安装及使用
    [日期:2012-06-05]
     
     
     
    帮同事恢复手机数据,刚开始的时候在Windows下使用Easy Recovery,效果不满意,于是想到了Ubuntu。强大的开源软件是收费软件不能比拟的,下面介绍下Testdisk如何安装和使用。
    Ubuntu下的Ubuntu软件中心,直接搜索Partition scanner and disk recovery tool就是这个软件了(见图1),直接安装之。软件很不错,不过没有图形化界面,不过在Terminal中直接启用也不错。
     
    直接打开Terminal,输入testdisk就可以启用软件。
     
    很简单的几个字母,相信会用Ubuntu的各位应该会使用这款软件。
     
    整体效果的话,不比easy recovery逊色。
     
  • 相关阅读:
    bzoj1202 狡猾的商人
    bzoj1059 矩阵游戏
    bzoj1003 物流运输
    bzoj1601 灌水
    2017-10-25模拟赛
    洛谷—— P1051 谁拿了最多奖学金
    BZOJ——1611: [Usaco2008 Feb]Meteor Shower流星雨
    2017-10-23学大伟业Day1
    BZOJ——1610: [Usaco2008 Feb]Line连线游戏
    Vijos 包裹快递(二分)
  • 原文地址:https://www.cnblogs.com/huapox/p/3516300.html
Copyright © 2020-2023  润新知