关注我的新浪微博

ubuntu恢复rm -rf误删文件

使用extundelete工具

sudo apt-get install extundelete

恢复操作命令

首先需要umount或者read only 分区
 umount /dev/partition
 mount -o remount,ro /dev/partition
 
--恢复文件
extundelete /dev/partition --restore-all
extundelete /dev/partition --restore-directory /backup/gnutool-delete
extundelete /dev/partition --restore-files /etc/passwd

恢复制定分区下所有删除文件,默认恢复到执行命令的目录下,文件夹名字为RECOVERED_FILES,使用详情请参考:extundelete --help 运行的结果

posted @ 2013-06-29 17:33  浮沉雄鹰  阅读(3383)  评论(0编辑  收藏  举报
友情链接: IT狂人博客