Linux Recover deleted file
background information
Linux file:
1. file name saved in the folder file
2. file inode
3. file content
Recover Tool
ext3grep
Install
tar xvfz <file name> -C /usr/src
cd /usr/src/<folder>
./configure --prefix=/usr/local/<folder>
make
make install
Use
Once delete happen, remember to umount the partition or remount the partition as read-only
1. Restore: ext3grep <partition number> --restore-file <path/filename>
For example: Restore the file /root/abc/a.txt, the partition of /root is /dev/sda5
ext3grep /dev/sda5 --restore-file abc/a.txt
2. Find deleted file name: ext3grep <partition number> --dump-name > <filename>
For example: Restore the deleted file name in folder /root/abc, the partition of the /root is /dev/sda5
ext3grep /dev/sda5 --dump-names > 1.txt
Comments
Post a Comment