Recovering files that were mistakenly deleted in red Hat Enterprise Linux 6

Source: Internet
Author: User

Recovering files that were mistakenly deleted in red Hat Enterprise Linux 6

1) Add a new hard drive on the virtual machine red Hat Enterprise Linux 6 to prepare for the experiment. As shown


2) Restart the virtual machine to let the system recognize the hard disk and use the command fdisk–l to see if the drive is recognized by the system, as shown in Add success


3) partition and format the new hard disk, FDISK/DEV/SDC the new hard disk, the steps are as follows

Fdisk–l checks if the new partition/DEV/SDC1 is created successfully, MKFS.EXT4/DEV/SDC1 formats the new partition as shown in.


3) on the host, share the folder with the Linux Data Recovery Tool extundelete Extun, right click on this computer select the management step to open the Guest account guest



Shortcut key Win+r call out Run menu





Right click on the folder you want to share Extun, select Properties-? Share add everyone to the shared user as shown in


4) Go back to the virtual machine with the Smbclient-l//192.168.10.2 command to see if the host shared folder is shared successfully, as shown in sharing success.

5) Create a new folder in the root directory/bbb, mount the shared folder under/BBB, as shown in

6) Install the Environment Pack rpm-ivh/mnt/packages/e2fsprogs-libs-1.41.12-18.el6.x86_64.rpm, and its expansion pack rpm-ivh/mnt/packages/ e2fsprogs-devel-1.41.12-18.el6.x86_64.rpm, expansion pack as an error, follow the prompts to install the expansion pack's dependency package Libcom_err-devel = 1.41.12-18.el6 is needed by e2fsprogs-devel-1.41.12-18.el6.x86_64, then install the expansion pack as shown (if there is no packages, refer to the setup of the Yum warehouse http://blog.51cto.com/13842738/2135806)

7) Switch to the mount point attached to the shared folder before/BBB, see if the Data Recovery tool Extundelete exists, extract it to/opt with the command tar-jvxf extundelete-0.2.4.tar.bz2-c/opt, as shown in


8) Enter the extundelete-0.2.4 folder, LS view to view, find the execution file configure,./Configure install the file as shown in. (If installation fails, install Yum install gcc gcc++ and yum install gcc gcc-c++ gcc-g77)

9) Make && do install converts it to binary and installs it, as the Data Recovery Tool Extundelete installation completes.

10) in the root directory, create a new folder/aaa, put the start and format of the hard disk SDC1 attached to the folder, in which the creation, a, b two files, and then think of the deletion. UMOUNT/AAA mount the hard drive, extundelete/dev/sdc1--restore-all recover the deleted file from the hard drive, as shown in the experiment success

File Recovery Tool Download: Baidu Cloud Disk
Extract code: 9KF3

Recovering files that were mistakenly deleted in red Hat Enterprise Linux 6

Related Article

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.