Linux mistakenly deleted File recovery

Source: Internet
Author: User

The document is too much for force! Mistakenly deleted a few important documents, shaking and then secretly recovered, saved me!!!

Http://jingyan.baidu.com/article/2f9b480d6c2bcd41cb6cc223.html

Note several places:

1) The last CD to the wrong delete directory operation, otherwise there may be logdump when told you do not exist

2) Df-t can view the file system, find your familiar to try it is not.

[Email protected] tmp]#CD.. /data/admin/weblog_wireless/
[Email protected] weblog_wireless]#Debugfs
Debugfs 1.41.12 (17-may-2010)
DebugfsOpen/dev/vdb
Debugfsls-d/admin/weblog_wireless
25165988 (12). 25165825 (12).. 25296905 () Ready
25427970 (old 25296902) pre
25184874 (4024) WEBLOG_WIRELESS_20160505_3.TXT.BK
<25184874> (Weblog_wireless_20160427_part1.txt)
<25190394> (3936) weblog_wireless_20160505_3.txt
<25190392>(3896) Weblog_wireless_20160505_2.txt
<25187335>(3856) Weblog_wireless_20160504_2.txt
Debugfs:logdump-i Weblog_wireless_20160505_2.txt
Weblog_wireless_20160505_2.txt:File not found by ext2_lookup
Debugfslogdump-i <25190392>
Inode 25190392 is at group 3074, block100664607,Offset 2944
Journal starts at block 30019, transaction 28238
Found sequence 26118 (not 29531) at Block 9458:end of Journal.
Debugfsquit
[Email protected] weblog_wireless]#DD if=/dev/vdb of=/tmp/weblog_wireless_20160505_2.txt.bk bs=4096 count=1 skip=100664607
1+0 Records in
1+0 Records out
4096 bytes (4.1 kB) copied, 0.000172198 s, 23.8 mb/s
[Email protected] weblog_wireless]#DD if=/dev/vdb of=/tmp/weblog_wireless_20160504_2.txt.bk bs=4096 count=1 skip=100664607
1+0 Records in
1+0 Records out
4096 bytes (4.1 kB) copied, 0.000162519 s, 25.2 MB/s
[Email protected] weblog_wireless]#cd/tmp/
[email protected] tmp]# LL

Linux mistakenly deleted File recovery

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.