快速业务通道

使用ext3grep恢复Linux下误删除的文件[原创]

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-03-25
################################################## AUTHOR:吖吖个呸 DATE:2011-09-14 EMAIL:gm100861@gmail.com ##################################################
其实这个工具我已经知道很久了,前一段时间做试验,老是出问题.自己也解决不了.很纠结,很郁闷,很蛋疼.... 或许今天运气比较好,装下软件包,然后使用一下,呵呵,竟然成功了,删除文件的时候,使用的命令是rm -rf哦! 下载这个软件,下载地址: http://code.google.com/p/ext3grep/downloads/list 目前的最新版本是:ext3grep-0.10.2.tar.gz 我系统的环境是:虚拟机 [root@localhost bin]# uname -a Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686 i686 i386 GNU/Linux [root@localhost bin]# cat /etc/issue Red Hat Enterprise Linux Server release 5.4 (Tikanga) 下面开始安装了哦.安装很简单 tar zxvf ext3grep-0.10.2.tar.gz cd ext3grep-0.10.2 ./configure --prefix=/usr/local/ext3grep make make install 顺利安装完成. 然后进入么安装目录看一下,只有一个bin [root@localhost ext3grep]# pwd /usr/local/ext3grep [root@localhost ext3grep]# ls bin 进到bin里面看一下 [root@localhost ext3grep]# cd bin [root@localhost bin]# ls ext3grep 我们可以看一下帮助,下面是部分 [root@localhost bin]# ./ext3grep -h Running ext3grep version 0.10.2 ./ext3grep: invalid option -- h No action specified; implying --superblock.
Usage: ./ext3grep [options] [--] device-file Options: --version, -[vV] Print version and exit successfully. --help, Print this help and exit successfully. --superblock Print contents of superblock in addition to the rest. If no action is specified then this option is implied. --print Print content of block or inode, if any. --ls Print directories with only one line per entry. This option is often needed to turn on filtering. --accept filen Accept ''filen'' as a legal filename. Can be used multi- ple times. If you change any --accept you must remove BOTH stage* files! --accept-all Simply accept everything as filename. --journal Show content of journal. --show-path-inodes Show the inode of each directory component in paths. Filters: --group grp Only process group ''grp''. --directory Only process directory inodes. --after dtime Only entries deleted on or after ''dtime''. --before dtime Only entries deleted before ''dtime''. --deleted Only show/process deleted entries. --allocated Only show/process allocated inodes/blocks. --unallocated Only show/process unallocated inodes/blocks. --reallocated Do not suppress entries with reallocated inodes. Inodes are considered ''reallocated'' if the entry is deleted but the inode is allocated, but also when the file type in the dir entry and the inode are different. --zeroed-inodes Do not suppress entries with zeroed inodes. Linked entries are always shown, regardless of this option. --depth depth Process directories recursively up till a depth of ''depth''. Actions: --inode-to-block ino Print the block that contains inode ''ino''. --inode ino Show info on inode ''ino''. If --ls is used and the inode is a directory, then

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号