Recover mistakenly deleted data files under Linux

Source: Internet
Author: User
In the operation of Linux system, often encounter a variety of operations due to careless, operational errors and other behavior caused by data loss, we can use Extundelete to recover data.
First, the preparation before the experiment

  1. Create a new disk
    In the Virtual Machine Settings window, locate "Hard disk", click "Add",
    In the Add Hardware wizard window that opens, select Hard disk, click Next,
    Next, we'll select "Next" directly by default, until you finally select "Done",

    2. Restart the system, we can restart the system with the Init 6 command.

    3. Hard disk Partitioning

    4. Formatting partitions

    5. Create a mount point and mount the disk

    After the disk is ready to complete, the next step is to install the Restore tool.
    Second, install Data Restore tool
    1. Install three software environment packages before installing the recovery tool
    After the disk is ready to complete, the next step is to install the Restore tool.
    Second, install Data Restore tool
    1. Install three software environment packages before installing the recovery tool
  2. Unzip the Restore tool into the/OPT directory
  3. CD to the/OPT directory, at this point we see the understanding of the Restore tool, and then into the Extundelete Restore tool directory, enter./configure (if you do not have GCC gcc-c++ will be an error, install it)
  4. To compile

    Once the compilation is complete, the installation steps are complete and then tested.
    Three Experimental test
    1. Create three files on a mounted hard drive

    2. Delete Two of the files, at which point there is only one file left in the file.

    3. Then remove the disk mount
  5. Recovering using the Restore software

    5. At this point in the current directory, a Recovered_files folder appears, enter the folder, you can see the files we deleted earlier here. At this point our experiment is successful!

Recover mistakenly deleted data files under Linux

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.