如何使用ext3grep恢複Linux中的誤刪除的檔案

來源:互聯網
上載者:User

其實這個工具我已經知道很久了,前一段時間做實驗,老是出問題。自己也解決不了。很糾結,很鬱悶,很蛋疼。。。。

或許今天運氣比較好,裝下軟體包,然後使用一下,呵呵,竟然成功了,而且刪除檔案的時候,使用的命令是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.

本文URL地址:http://www.bianceng.cn/OS/Linux/201410/45343.htm

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.