zoukankan      html  css  js  c++  java
  • linux 下文件恢复工具extundelete介绍

    下载

    http://extundelete.sourceforge.net/

    bunzip2 extundelete-0.2.0.tar.bz2

    tar xvf extundelete-0.2.0.tar

    cd extundelete-0.2.0

    make

    make install

    [root@yznvm1 yzn]# df
    文件系统               1K-块        已用     可用 已用% 挂载点
    /dev/sda3             18129292   2651744  14541764  16% /
    /dev/sda1               194442     12197    172206   7% /boot
    tmpfs                   254804         0    254804   0% /dev/shm
    /dev/hdc               4149676   4149676         0 100% /mnt/cdrom

    [root@yznvm1 yzn]# extundelete /dev/sda3 --restore-file /home/yzn/helloworld/Makefile.am       
    WARNING: Extended attributes are not restored.
    WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set.
    The partition should be unmounted to undelete any files without further data loss.
    If the partition is not currently mounted, this message indicates
    it was improperly unmounted, and you should run fsck before continuing.
    If you decide to continue, extundelete may overwrite some of the deleted
    files and make recovering those files impossible.  You should unmount the
    file system and check it with fsck before using extundelete.
    Would you like to continue? (y/n)
    y
    Loading filesystem metadata ... 143 groups loaded.
    Loading journal descriptors ... 29535 descriptors loaded.
    Writing output to directory RECOVERED_FILES/
    Restored inode 4223596 to file RECOVERED_FILES/home/yzn/helloworld/Makefile.am

    ok,这样就恢复成功了。

    当然文件不能保证一定恢复成功,我的另外一个文件恢复出来是乱码,还有一个文件报错找不到inode.

  • 相关阅读:
    docker常用命令
    2020/10/10,饮食男女-对教条主义的补充和现实的摸索
    2020/08/24,约束力
    2020/08/21,迷茫的时候就去工作
    2020/08/21,神秘和平易近人
    2020/08/21,圣人和教条
    2020/07/21,翡翠梦境
    2020/10/10,生活不是阶段式跳跃的,是螺旋式的。
    2020/07/23,再论point,way,moment,time
    2020/07/13,旅游的意义是什么
  • 原文地址:https://www.cnblogs.com/yanzhenan/p/2282579.html
Copyright © 2011-2022 走看看