{"id":279809,"date":"2023-08-08T20:08:40","date_gmt":"2023-08-08T12:08:40","guid":{"rendered":"https:\/\/lrxjmw.cn\/lscwjjhrhhf.html"},"modified":"2023-08-08T20:08:40","modified_gmt":"2023-08-08T12:08:40","slug":"lscwjjhrhhf","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lscwjjhrhhf.html","title":{"rendered":"Linux\u5220\u9664\u6587\u4ef6\u5939\u540e\u5982\u4f55\u6062\u590d"},"content":{"rendered":"

\u5728\u6211\u4f7f\u7528Linux<\/a>\u7cfb\u7edf<\/a>\u7684\u8fc7\u7a0b\u4e2d\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u9700\u8981\u5220\u9664\u6587\u4ef6\u5939\u7684\u60c5\u51b5\u3002\u6709\u65f6\u5019\uff0c\u4e0d\u5c0f\u5fc3\u8bef\u5220\u4e86\u4e00\u4e2a\u91cd\u8981\u7684\u6587\u4ef6\u5939\uff0c\u8fd9\u65f6\u5019\u5c31\u9700\u8981\u7528\u5230\u6062\u590d\u6280\u5de7\u4e86\u3002\u4eca\u5929\uff0c\u5c0f\u7f16\u5c31\u6765\u548c\u5927\u5bb6\u5206\u4eab\u4e00\u4e0b\u6211\u4eb2\u8eab\u4f53\u9a8c\u8fc7\u7684Linux\u5220\u9664\u6587\u4ef6\u5939\u6062\u590d\u65b9\u6cd5\u3002<\/p>\n

\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u6765\u6982\u62ec\u4e00\u4e0b\u672c\u6587\u7684\u4e3b\u8981\u5185\u5bb9\u3002\u672c\u6587\u5c06\u4ece\u4ee5\u4e0b\u4e03\u4e2a\u65b9\u9762\u4e3a\u5927\u5bb6\u8be6\u7ec6\u4ecb\u7ecdLinux\u5220\u9664\u6587\u4ef6\u5939\u6062\u590d\u7684\u65b9\u6cd5\uff1a1.\u4f7f\u7528Trash\u547d\u4ee4<\/a>\u8fdb\u884c\u6062\u590d\uff1b2.\u4f7f\u7528extundelete\u5de5\u5177\u8fdb\u884c\u6062\u590d\uff1b3.\u4f7f\u7528debugfs\u5de5\u5177\u8fdb\u884c\u6062\u590d\uff1b4.\u4f7f\u7528TestDisk\u5de5\u5177\u8fdb\u884c\u6062\u590d\uff1b5.\u4f7f\u7528Foremost\u5de5\u5177\u8fdb\u884c\u6062\u590d\uff1b6.\u4f7f\u7528PhotoRec\u5de5\u5177\u8fdb\u884c\u6062\u590d\uff1b7.\u6ce8\u610f\u4e8b\u9879\u53ca\u9884\u9632\u63aa\u65bd\u3002<\/p>\n

1.\u4f7f\u7528Trash\u547d\u4ee4\u8fdb\u884c\u6062\u590d<\/b><\/p>\n

\u5f53\u6211\u4eec\u5728Linux\u7cfb\u7edf\u4e2d\u5220\u9664\u4e00\u4e2a\u6587\u4ef6\u5939\u65f6\uff0c\u5b83\u5b9e\u9645\u4e0a\u4f1a\u88ab\u79fb\u52a8\u5230\u5783\u573e\u6876\uff08Trash\uff09\u4e2d\u3002\u56e0\u6b64\uff0c\u7b2c\u4e00\u79cd\u65b9\u6cd5\u5c31\u662f\u901a\u8fc7\u8fd8\u539f\u5783\u573e\u6876\u4e2d\u7684\u6587\u4ef6\u6765\u5b9e\u73b0\u6062\u590d\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u5e76\u8fd8\u539f\u5783\u573e\u6876\u4e2d\u7684\u6587\u4ef6\uff1a<\/p>\n

\n

\n$ cd ~\/.local\/share\/Trash\/files\/\n$ ls\n$ mv [filename][destination]\n<\/pre>\n<\/p>\n

2.\u4f7f\u7528extundelete\u5de5\u5177\u8fdb\u884c\u6062\u590d<\/b><\/p>\n

\u5982\u679c\u6211\u4eec\u5728Linux\u7cfb\u7edf\u4e2d\u4f7f\u7528\u7684\u662fext2\u3001ext3\u6216ext4\u6587\u4ef6\u7cfb\u7edflinux\u5e38\u7528\u547d\u4ee4\uff0c\u90a3\u4e48\u53ef\u4ee5\u4f7f\u7528extundelete\u5de5\u5177\u6765\u8fdb\u884c\u6587\u4ef6\u5939\u7684\u6062\u590d\u3002\u9996\u5148linux \u5220\u9664\u6587\u4ef6\u5939 \u6062\u590d<\/strong>\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5extundelete\u5de5\u5177\uff1a<\/p>\n

linux\u5220\u9664\u6587\u4ef6_linux\u7cfb\u7edf\u6062\u590d\u5220\u9664\u6587\u4ef6_linux \u5220\u9664\u6587\u4ef6\u5939 \u6062\u590d<\/p>\n

\n

\n$ sudo apt-get install extundelete\n<\/pre>\n<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u6062\u590d\u88ab\u5220\u9664\u7684\u6587\u4ef6\u5939\uff1a<\/p>\n

\n

\n$ extundelete [device]--restore-directory [directory]\n<\/pre>\n<\/p>\n

3.\u4f7f\u7528debugfs\u5de5\u5177\u8fdb\u884c\u6062\u590d<\/b><\/p>\n

debugfs\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u6062\u590d\u88ab\u5220\u9664\u6587\u4ef6\u5939\u7684inode\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u627e\u5230\u6587\u4ef6\u5939\u6240\u5728\u7684\u8bbe\u5907\uff0c\u5e76\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u6302\u8f7d\uff1a<\/p>\n

\n

\n$ sudo debugfs -w[device]\ndebugfs: lsdel\ndebugfs: undelete [inode]\ndebugfs: quit\n<\/pre>\n<\/p>\n

4.\u4f7f\u7528TestDisk\u5de5\u5177\u8fdb\u884c\u6062\u590d<\/b><\/p>\n

TestDisk\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u6570\u636e\u6062\u590d\u5de5\u5177\uff0c\u652f\u6301\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5TestDisk\uff1a<\/p>\n

\n

\n$ sudo apt-get install testdisk\n<\/pre>\n<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6765\u4f7f\u7528TestDisk\u8fdb\u884c\u6587\u4ef6\u5939\u6062\u590d\uff1a<\/p>\n

1.\u8fd0\u884ctestdisk\u547d\u4ee4\uff1a`$ sudo testdisk`<\/p>\n

2.\u9009\u62e9\u78c1\u76d8\u5206\u533a\u5e76\u8fdb\u884c\u5206\u6790\u3002<\/p>\n

3.\u9009\u62e9\u9700\u8981\u6062\u590d\u7684\u5206\u533a\u7c7b\u578b\u3002<\/p>\n

4.\u9009\u62e9\u201cUndelete\u201d\u9009\u9879\u4ee5\u6062\u590d\u88ab\u5220\u9664\u7684\u6587\u4ef6\u5939\u3002<\/p>\n

5.\u4f7f\u7528Foremost\u5de5\u5177\u8fdb\u884c\u6062\u590d<\/b><\/p>\n

Foremost\u662f\u4e00\u6b3e\u7528\u4e8e\u6062\u590d\u88ab\u5220\u9664\u6587\u4ef6\u7684\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u626b\u63cf\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6765\u67e5\u627e\u88ab\u5220\u9664\u6587\u4ef6\u7684\u7279\u5f81\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5Foremost\uff1a<\/p>\n

\n

\n$ sudo apt-get install foremost\n<\/pre>\n<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u4f7f\u7528Foremost\u8fdb\u884c\u6587\u4ef6\u5939\u6062\u590d\uff1a<\/p>\n

\n

\n$ sudo foremost -d[device]-t[filetype]-o[outputdir]\n<\/pre>\n<\/p>\n

6.\u4f7f\u7528PhotoRec\u5de5\u5177\u8fdb\u884c\u6062\u590d<\/b><\/p>\n

PhotoRec\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u6570\u636e\u6062\u590d\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u6062\u590d\u5404\u79cd\u7c7b\u578b\u7684\u6587\u4ef6\uff0c\u5305\u62ec\u88ab\u5220\u9664\u7684\u6587\u4ef6\u5939\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5PhotoRec\uff1a<\/p>\n

linux \u5220\u9664\u6587\u4ef6\u5939 \u6062\u590d_linux\u7cfb\u7edf\u6062\u590d\u5220\u9664\u6587\u4ef6_linux\u5220\u9664\u6587\u4ef6<\/p>\n

\n

\n$ sudo apt-get install testdisk\n<\/pre>\n<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6765\u4f7f\u7528PhotoRec\u8fdb\u884c\u6587\u4ef6\u5939\u6062\u590d\uff1a<\/p>\n

1.\u8fd0\u884cphotorec\u547d\u4ee4\uff1a`$ sudo photorec`<\/p>\n

2.\u9009\u62e9\u78c1\u76d8\u5206\u533a\u5e76\u8fdb\u884c\u5206\u6790\u3002<\/p>\n

3.\u9009\u62e9\u9700\u8981\u6062\u590d\u7684\u5206\u533a\u7c7b\u578b\u3002<\/p>\n

4.\u9009\u62e9\u201cFile Opt\u201d\u9009\u9879\u4ee5\u9009\u62e9\u8981\u6062\u590d\u7684\u6587\u4ef6\u7c7b\u578b\u3002<\/p>\n

5.\u9009\u62e9\u201cSearch\u201d\u9009\u9879\u4ee5\u5f00\u59cb\u626b\u63cf\u5e76\u6062\u590d\u88ab\u5220\u9664\u7684\u6587\u4ef6\u5939\u3002<\/p>\n

7.\u6ce8\u610f\u4e8b\u9879\u53ca\u9884\u9632\u63aa\u65bd<\/b><\/p>\n

\u5728\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u8fdb\u884c\u6587\u4ef6\u5939\u6062\u590d\u4e4b\u524dLINUX\u793e\u533a\uff0c\u6709\u51e0\u4e2a\u6ce8\u610f\u4e8b\u9879\u548c\u9884\u9632\u63aa\u65bd\u9700\u8981\u7262\u8bb0\uff1a<\/p>\n

-\u5728\u6062\u590d\u6587\u4ef6\u5939\u4e4b\u524d\uff0c\u52a1\u5fc5\u505c\u6b62\u5bf9\u5b58\u50a8\u8bbe\u5907\u7684\u5199\u64cd\u4f5c\uff0c\u4ee5\u907f\u514d\u8986\u76d6\u88ab\u5220\u9664\u7684\u6570\u636e\u3002<\/p>\n

-\u5728\u6062\u590d\u6587\u4ef6\u5939\u65f6\uff0c\u6700\u597d\u5c06\u6062\u590d\u7684\u6570\u636e\u4fdd\u5b58\u5230\u53e6\u4e00\u4e2a\u5b58\u50a8\u8bbe\u5907\u4e2d\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u8bbe\u5907\u4e0a\u3002<\/p>\n

-\u5b9a\u671f\u5907\u4efd\u91cd\u8981\u6587\u4ef6\u548c\u6587\u4ef6\u5939linux \u5220\u9664\u6587\u4ef6\u5939 \u6062\u590d<\/strong>\uff0c\u4ee5\u4fbf\u5728\u53d1\u751f\u610f\u5916\u60c5\u51b5\u65f6\u80fd\u591f\u5feb\u901f\u6062\u590d\u3002<\/p>\n

\u901a\u8fc7\u4ee5\u4e0a\u4e03\u4e2a\u65b9\u9762\u7684\u4ecb\u7ecd\uff0c\u76f8\u4fe1\u5927\u5bb6\u5bf9\u4e8eLinux\u5220\u9664\u6587\u4ef6\u5939\u6062\u590d\u65b9\u6cd5\u6709\u4e86\u66f4\u52a0\u8be6\u7ec6\u7684\u4e86\u89e3\u3002\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0c\u4e00\u5b9a\u8981\u8c28\u614e\u64cd\u4f5c\uff0c\u5e76\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u6062\u590d\u65b9\u6cd5\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u5c06\u4ece\u4ee5\u4e0b\u4e03\u4e2a\u65b9\u9762\u4e3a\u5927\u5bb6\u8be6\u7ec6\u4ecb\u7ecdLinux\u5220\u9664\u6587\u4ef6\u5939\u6062\u590d\u7684\u65b9\u6cd5\uff1a1.\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u6062\u590d\u88ab\u5220\u9664\u7684\u6587\u4ef6\u5939\uff1adebugfs\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u6062\u590d\u88ab\u5220\u9664\u6587\u4ef6\u5939\u7684inode\u3002\u9009\u62e9\u201cUndelete\u201d\u9009\u9879\u4ee5\u6062\u590d\u88ab\u5220\u9664\u7684\u6587\u4ef6\u5939\u3002PhotoRec\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u6570\u636e\u6062\u590d\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u6062\u590d\u5404\u79cd\u7c7b\u578b\u7684\u6587\u4ef6\uff0c\u5305\u62ec\u88ab\u5220\u9664\u7684\u6587\u4ef6\u5939\u3002\u9009\u62e9\u201cSearch\u201d\u9009\u9879\u4ee5\u5f00\u59cb\u626b\u63cf\u5e76\u6062\u590d\u88ab\u5220\u9664\u7684\u6587\u4ef6\u5939\u3002<\/p>\n","protected":false},"author":1,"featured_media":279810,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-279809","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/279809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=279809"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/279809\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/279810"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=279809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=279809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=279809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}