1. first install ext3grep software: yuminstallext3grep-y2, umount/data0 partition: umount/data2 if the prompt busy, kill the process that is using this directory, and then umount: fuser-k/d 1. first install the ext3grep software: yum install ext3grep-y 2. umount/data0 partition: umount/data2. if busy is prompted, kill the process that is using this directory, umount: fuser-k/data2 www.2cto.com
Umount/data2 3. query all Inode (execution takes several minutes ~ More than 10 minutes): ext3grep/dev/sdb1-ls-inode 2 4. search for Inode step by step to see if httpcws can be found. cpp File (this step can also be omitted): 5, recovery/data0/tcsql/cankao/phpcws-1.5.0/httpcws. cpp file: ext3grep/dev/sdb1-restore-file tcsql/cankao/phpcws-1.5.0/httpcws. cpp:
Restoring tcsqls/cankao/phpcws-1.5.0/httpcws. cpp then, execute the ext3grep command under the current directory will automatically generate a folder named RESTORED_FILES, tcsql/cankao/phpcws-1.5.0/httpcws under the folder. cpp is the recovered file.
After checking the content, it is the same as the content before the deletion. Www.2cto.com 6. mount/data0 again: mount/dev/sdb1/data0
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