First, before the experiment needs to know
1, Extundelete is a tool to restore the EXT3,EXT4 partition file, he will use the log information in the partition to try to recover the deleted files, but not every deleted file can be ensured to be restored, so the important file everyone still want to do backup. The following is a small experimental simulation file mistakenly deleted, using Extundelete for recovery
2, this experiment needs to prepare two hard disks, be careful not to install Extundelete to the hard disk where the file is mistakenly deleted
Second, start the test
1, this experiment needs to prepare two hard disks, in addition to the virtual machine original piece of hard disk, and then add a hard disk, add the completion of the restart effective
2. After partitioning the newly added disk with the FDISK command, format the mount using
Create an empty folder, mount the hard disk using
3, install the compilation environment gcc,gcc-c++ with Yum, need to set up a good yum warehouse
4. Install software environment Package with RPM
5. The Extundelete installation package uses shared folders to share to virtual machine Linux mounts from a host
6. Unzip the installation package to/OPT
7, switch to the/opt/extundelete-0.2.4 directory input./configure configuration
8. Create a folder in/ABC and delete
Delete Two of these
9. Immediately unlock the disk
10. Use Extundeleta tool to restore all
11, the current home directory will appear/recovered-files folder, there will be recovered files
12, you can re-mount the disk, copy the file back to use
This experiment is done
Using Extundelete in Linux to recover deleted files by mistake