Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of restoring deleted Files by linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail the method of restoring deleted files by linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Linux restore deleted file method: first jump to the deleted file path; then use the system's own restore tool debugfs to repair, and run relevant instructions to find the deleted file; then execute the command to get information; finally return to the path.

Linux restores deleted files:

1. Run the command box under Linux and jump to the deleted file path.

2. Check the partition of the path through df.

3. Then use the system's own restore tool debugfs to fix it, and run the following instructions (your open is followed by your path name after ls-d)

4. You can find the deleted file

5. Then use logdump-I to get the following information, the information of block and offset must be remembered, and then quit exits debugfs

6. Then execute the following dd if=/dev/vda1 of=/mnt/Summer_Test/China.png bs=1152 count=1 skip=6291611 command, where bs is the value of block and skip is the value of offset

7. Then return to the path and you will find that China.png has been restored!

This is the end of the method for linux to restore deleted files. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report