As a multi-user, multi-task operating system, once the files in Linux are deleted, it is difficult to restore. Although the Delete command only marks the deletion in the file node and does not actually clear the file content, other users and some processes with disk write operations will soon overwrite the data. However, you can recover a Linux instance that is used by a single machine in your home, or rectify the file by mistake. Recovery steps
As a multi-user, multi-task operating system, once the files in Linux are deleted, it is difficult to restore. Although the Delete command only marks the deletion in the file node and does not actually clear the file content, other users and some processes with disk write operations will soon overwrite the data. However, you can recover a Linux instance that is used by a single machine in your home, or rectify the file by mistake.
Recovery steps
1. run SecureCRT to remotely view the current system version number and file system format on the operating system.
2. to facilitate this experiment, we create a new file.
3. perform the delete operation
IV. use and debugfs as a system Auto-return tool to fix
5. open the partition where the deleted file is located
6. use ls and The-d parameter to display the Directory of the file you just deleted.
7. <> The angle brackets indicate the Inode number of the file we are looking for. execute logdump-I <393289>
8. after executing the command, a screen is displayed. we need the following line and remember the following values.
9. exit debugfs.
10. execute the following command:
11. the above results indicate that the restoration is successful. let's check whether the/tmp directory exists.
12. in the tmp Directory, we can display the following information,