Restoration of accidentally deleted files in linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.