System Rhel 6.4
File system format: EXT4
Premise: Data that needs to be recovered is not corrupted.
Accidentally deleted the important data, there are pictures, the entire directory has 20G
Linux File Recovery (extundelete):
Unmount the disk (immediately) on which the file was mistakenly deleted to avoid being written to another file, occupying the inode, causing the file to be unrecoverable
Umount/dev/mapper/vg_data-lv_data yum-y Install e2fsprogs.x86_64 e2fsprogs-devel.x86_64 e2fsprogs-libs.x86_64 Tar- JXF extundelete-0.2.4.tar.bz2cd extundelete-0.2.4./configure && make && make INSTALLCD/ Huifuextundelete/dev/vg_data/lv_data--RESTORE-ALLCD recovered_files/--note: Here the recovered files are stored
File recovery succeeded. After successful recovery, randomly export some pictures to see if it is damaged, fortunately, these files are not corrupted.
.650) this.width=650; "alt=" J_0002.gif "src=" Http://img.baidu.com/hi/jx2/j_0002.gif "/>650" this.width=650; "alt= "J_0002.gif" src= "Http://img.baidu.com/hi/jx2/j_0002.gif"/>650) this.width=650; "alt=" J_0002.gif "src="/HTTP/ Img.baidu.com/hi/jx2/j_0002.gif "/>
This article from "Pengcheng-soy sauce bottle" blog, declined reprint!
Using Extundelete to recover data that was mistakenly deleted