Restoration of accidentally deleted files in linux Java code tool: ext3grep environment: CentOS scenario: only the ext3 file system can be restored. For ext2 files, run the debugfs command to run some background commands: view the file system command: df-lhT step: 1: Download ext3grep package (is a compressed file) Address: http://code.google.com/p/ext3grep/ 2: Check the dependency package rpm-qa | grep e2fsprogs system must install e2fsprogs-libs, otherwise after the installation of ext3grep Problems 3: Compile and install (1) enter the download ext3grep package directory tar zxvf ext3grep-0.10.2.tar.gz (2) cd into the decompressed directory (3) configuration. /configure (4) Compile make (5) install make install (6) check whether the installation is successful (the default installation is in the/usr/local/bin/directory) ext3grep-v 4: restore/usr/local/bin/ext3grep/dev/mapper/VolGroup00-LogVol00 -- restore-file test. php Note:. enter the directory of the file to be restored, for example,/home/dev/test. The file name to be restored is test. php B. the first parameter is the file system. The file system can use the command df-h to view the file system c. -- The parameter after restore-file is the file to be restored