{"id":419620,"date":"2021-03-31T21:29:58","date_gmt":"2021-03-31T13:29:58","guid":{"rendered":"http:\/\/4563.org\/?p=419620"},"modified":"2021-03-31T21:29:58","modified_gmt":"2021-03-31T13:29:58","slug":"%e7%b4%a7%e6%80%a5%e6%b1%82%e6%95%91%ef%bc%81-ubuntu-%e4%b8%8b%e8%af%af%e5%88%a0%e4%ba%86-idea-%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7%e7%9a%84%e6%89%80%e6%9c%89%e9%a1%b9%e7%9b%ae%e7%9a%84%e6%a0%b9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=419620","title":{"rendered":"\u7d27\u6025\u6c42\u6551\uff01 ubuntu \u4e0b\u8bef\u5220\u4e86 idea \u5f00\u53d1\u5de5\u5177\u7684\u6240\u6709\u9879\u76ee\u7684\u6839\u76ee\u5f55"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u7d27\u6025\u6c42\u6551\uff01 ubuntu \u4e0b\u8bef\u5220\u4e86 idea \u5f00\u53d1\u5de5\u5177\u7684\u6240\u6709\u9879\u76ee\u7684\u6839\u76ee\u5f55               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zzzmh <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898<br \/> \u56fa\u6001\u786c\u76d8\uff0c\u53cc\u7cfb\u7edf\uff0cext4 \u4e00\u4e2a\u5206\u533a\u7ed9 ubuntu<br \/> \u4eca\u5929\u624b\u6b20\u4e86\uff0c\u76f4\u63a5\u5220\u4e86 idea \u7684\u6240\u6709\u9879\u76ee\u7684\u6839\u76ee\u5f55<br \/> \u9996\u5148\u6392\u9664\u4e86\u901a\u8fc7 idea \u6062\u590d<\/p>\n<p> \u81f3\u4e8e git \u3002\u3002\u3002\u6211\u6700\u8fd1\u4e00\u5468\u521a\u597d\u6ca1\u63d0\u4ea4\uff0c\u4e5f\u4e0d\u8bb0\u5f97\u5f00\u53d1\u4e86\u70b9\u5565\u3002\u3002\u3002<br \/> \u8dd1\u53bb windows \u4e0b\u8bd5\u4e86 diskgenius ,\u6062\u590d\u6570\u636e\uff0c\u626b\u63cf\u5b8c\u4e5f\u53ea\u80fd\u770b\u5230\u9879\u76ee\u6587\u4ef6\u5939\u7684\u6839\u76ee\u5f55\uff0c\u91cc\u9762\u7684\u6587\u4ef6\u5b8c\u5168\u770b\u4e0d\u89c1<\/p>\n<p> \u76ee\u524d\u5bc4\u5e0c\u671b\u4e8e extundelete<br \/> extundelete \u7b2c\u4e00\u6b21\u7528\u6bd4\u8f83\u964c\u751f\u3002\u3002\u3002 <br \/> \u8bd5\u4e86\u4e0b\u8fd9\u4e2a\u547d\u4ee4 <\/p>\n<pre><code>extundelete \/dev\/nvme0n1p6 --restore-all <\/code><\/pre>\n<p> \u8fd4\u56de\u5982\u4e0b <\/p>\n<pre><code>NOTICE: Extended attributes are not restored. WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set. The partition should be unmounted to undelete any files without further data loss. If the partition is not currently mounted, this message indicates  it was improperly unmounted, and you should run fsck before continuing. If you decide to continue, extundelete may overwrite some of the deleted files and make recovering those files impossible.  You should unmount the file system and check it with fsck before using extundelete. Would you like to continue? (y\/n)  y Loading filesystem metadata ... 800 groups loaded. Loading journal descriptors ... \u6bb5\u9519\u8bef (\u6838\u5fc3\u5df2\u8f6c\u50a8)  <\/code><\/pre>\n<p> \u8fd8\u8bd5\u4e86\u8fd9\u4e2a <\/p>\n<pre><code>extundelete \/dev\/nvme0n1p6 --inode 2 <\/code><\/pre>\n<p> \u8fd4\u56de\u5982\u4e0b <\/p>\n<pre><code>NOTICE: Extended attributes are not restored. WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set. The partition should be unmounted to undelete any files without further data loss. If the partition is not currently mounted, this message indicates  it was improperly unmounted, and you should run fsck before continuing. If you decide to continue, extundelete may overwrite some of the deleted files and make recovering those files impossible.  You should unmount the file system and check it with fsck before using extundelete. Would you like to continue? (y\/n)  y Loading filesystem metadata ... 800 groups loaded. Group: 0 Contents of inode 2: 0000 | ed 41 00 00 00 10 00 00 63 80 62 60 ba e9 55 60 | .A......c.b`..U` 0010 | ba e9 55 60 00 00 00 00 00 00 14 00 08 00 00 00 | ..U`............ 0020 | 00 00 08 00 1b 00 00 00 0a f3 01 00 04 00 00 00 | ................ 0030 | 00 00 00 00 00 00 00 00 01 00 00 00 3e 24 00 00 | ............&gt;$.. 0040 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ 0050 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ 0060 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ 0070 | 00 00 00 00 00 00 00 00 00 00 00 00 b4 80 00 00 | ................ 0080 | 20 00 09 af ec 4e 03 39 ec 4e 03 39 84 09 60 79 |  ....N.9.N.9..`y 0090 | d6 42 d0 5f 00 00 00 00 00 00 00 00 00 00 00 00 | .B._............ 00a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ 00b0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ 00c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ 00d0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ 00e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ 00f0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................  Inode is Allocated File mode: 16877 Low 16 bits of Owner Uid: 0 Size in bytes: 4096 Access time: 1617068131 Creation time: 1616243130 Modification time: 1616243130 Deletion Time: 0 Low 16 bits of Group Id: 0 Links count: 20 Blocks count: 8 File flags: 524288 File version (for NFS): 0 File ACL: 0 High 32 bits of Size: 0 Fragment address: 0 Direct blocks: 127754, 4, 0, 0, 1, 9278, 0, 0, 0, 0, 0, 0 Indirect block: 0 Double indirect block: 0 Triple indirect block: 0  File name                                       | Inode number | Deleted status <\/code><\/pre>\n<p>\u6211\u73b0\u5728\u5c31\u60f3\u77e5\u9053\uff0c\u6211\u662f\u4e0d\u662f\u5df2\u7ecf\u51c9\u900f\u4e86\u3002\u3002\u3002\u3002<\/p>\n<p>linux \u4e0b\u662f\u4e0d\u662f\u6ca1\u5e0c\u671b\u6062\u590d\u4e86\uff1f \u518d\u53bb windows \u4e0b\u8bd5\u6570\u636e\u6062\u590d\u8fd8\u6709\u610f\u4e49\u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5605592\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : burby <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u5468\u90fd\u6ca1\u63d0\u4ea4\uff0cemm&#8230;&#8230;.<br \/>\u6240\u6709\u9879\u76ee\u7684\u6839\u76ee\u5f55\uff0c\u610f\u601d\u662f\u6240\u6709\u7684\u5de5\u7a0b\u6587\u4ef6\u90fd\u6ca1\u4e86\u4e48\uff1f<br \/>ext \u6587\u4ef6\u7cfb\u7edf\u60f3\u5728 win \u4e0b\u6062\u590d\u611f\u89c9\u6709\u70b9\u5947\u602a\u3002<br \/>\u6062\u590d\u6280\u672f\u4e0d\u4e86\u89e3\uff0c\u4f46\u662f\u611f\u89c9\u91cd\u5199\u6765\u7684\u6bd4\u8f83\u5feb\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5605593\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Misakas <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u60f3\u8d77\u4e0a\u6b21\u91cd\u88c5\u7cfb\u7edf\uff08 Ubuntu \uff09\u540e\u53d1\u73b0\u8272\u56fe\u88ab\u5220\u6389\u4e86\uff0c\u6025\u5fd9\u7528\u5de5\u5177\u626b\u4e86\u4e00\u4e0b\u6062\u590d\u3002\u4e3b\u53ea\u8981\u5220\u6389\u540e\u6ca1\u5728\u786c\u76d8\u5199\u4ec0\u4e48\u4e1c\u897f\u5e94\u8be5\u8fd8\u80fd\u6062\u590d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5605594\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zzzmh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u5468\u6ca1\u63d0\u4ea4\u4e3b\u8981\u8fd8\u662f\u56e0\u4e3a\u5176\u4ed6\u540e\u7aef\u5c0f\u4f19\u4f34\u79bb\u804c\u4e86\uff0c\u65b0\u4eba\u8fd8\u6ca1\u5165\u804c\uff0c\u6211\u81ea\u5df1\u5199\u81ea\u5df1\u7528\u5c31\u61d2\u5f97\u6bcf\u5929\u63d0\u4ea4\u3002<br \/>\u91cd\u5199\u4e00\u6b21\u6700\u5927\u7684\u96be\u5ea6\u662f\u65b0\u5f00\u7684\u90a3\u4e2a git \u5206\u652f\uff0c\u5b8c\u5168\u8fd8\u6ca1\u63d0\u4ea4\u8fc7\uff0c\u4e5f\u4e0d\u592a\u8bb0\u5f97\u6211\u5230\u5e95\u6539\u4e86\u4e9b\u4ec0\u4e48\u3002<\/p>\n<p>\u8fd9\u6b21\u6062\u590d\u6570\u636e\uff0c\u590d\u76d8\u4e00\u4e0b\uff0c\u6700\u5927\u7684\u95ee\u9898\u662f\uff0c\u6211\u7b2c\u4e00\u65f6\u95f4\u6ca1\u628a\u78c1\u76d8\u6539\u53ea\u8bfb\uff0c\u4e2d\u95f4\u8fd8\u91cd\u542f\u8fc7\uff0c\u5bfc\u81f4 linux \u4e0b\u5f7b\u5e95\u5931\u53bb\u6062\u590d\u5e0c\u671b\u3002<\/p>\n<p>\u4e0d\u8fc7\u6700\u540e\u6211\u7528\u4e86\u4e00\u4e2a\u7b28\u529e\u6cd5\u66f2\u7ebf\u6551\u56fd\uff0c\u6551\u56de\u6765\u4e86 95%,\u865a\u60ca\u4e00\u573a<\/p>\n<p>idea \u6709\u4e2a localhistory\uff0c\u53ef\u4ee5\u8ba9\u6587\u4ef6\u56de\u6eda\u5230\u5386\u53f2\u65f6\u95f4\uff0c\u53ea\u8981\u56de\u6eda\u5230\u4eca\u5929\u65e9\u4e0a\u5220\u6389\u4e4b\u524d\u5c31\u53ef\u4ee5\u4e86\u3002<br \/>\u4f46\u662f\uff0c\u6ca1\u6709\u9879\u76ee\u6839\u76ee\u5f55\u4ee5\u540e\uff0c\u6253\u5f00 idea\uff0c\u9879\u76ee\u663e\u793a\u7070\u8272\uff0c\u6253\u5f00\u4e5f\u4f1a\u63d0\u793a\uff0c\u9879\u76ee\u6587\u4ef6\u5df2\u4e0d\u5b58\u5728\u3002\u8fdb\u4e0d\u53bb\u9879\u76ee\u7684\u754c\u9762\uff0c\u5c31\u9009\u4e0d\u5230 localhistory\uff0c\u672c\u6765\u89c9\u5f97\u8fd9\u6761\u8def\u662f\u6b7b\u5faa\u73af\u3002\u7136\u540e\u4e2d\u5348\u7761\u89c9\u7684\u65f6\u5019\uff0c\u68a6\u91cc\u6709\u4eba\u548c\u6211\u8bf4\uff0c\u65b0\u5efa\u4e00\u4e2a\u540c\u540d\u6587\u4ef6\u5939\u5373\u53ef\u8fdb\u5165\u9879\u76ee\u754c\u9762\u3002\u5373\uff1a\u9879\u76ee\u5f00\u53d1\u7a7a\u95f4\u53eb workspaces,\u4e0b\u9762\u7684\u9879\u76ee\u53eb project_a\uff0c\u73b0\u5728 workspaces \u5220\u6389\u4e86\u3002idea \u80fd\u770b\u5230 project_a\uff0c\u4f46\u662f\u70b9\u4e86\u663e\u793a\u9879\u76ee\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u65e0\u6cd5\u8fdb\u53bb\u6062\u590d\u3002\u90a3\u6211\u5c31\u624b\u52a8\u65b0\u5efa\u6587\u4ef6\u5939 workspaces\uff0c\u4e0b\u9762\u65b0\u5efa\u6587\u4ef6\u5939 project_a\uff0cidea \u5c31\u5141\u8bb8\u8fdb\u5165\u9879\u76ee\u4e86\uff0c\u8fdb\u53bb\u867d\u7136\u662f\u5168\u7a7a\u767d\uff0c\u4f46\u4f7f\u7528 localhistory\uff0c\u6062\u590d\u5230\u65e9\u4e0a 9 \u70b9\uff0c\u6587\u4ef6\u5c31\u56de\u6765\u4e86\u3002\u4e5f\u5b58\u5728 2 \u4e2a\u7f3a\u70b9\uff0c1 \u5982\u679c\u4f60\u521a\u4e22\u5931\uff0c\u65b0\u5efa\u540c\u540d\u6587\u4ef6\u5939\uff0c\u4f1a\u5f7b\u5e95\u5931\u53bb\u4ece\u78c1\u76d8\u6062\u590d\u673a\u4f1a\u30022 \u53ea\u6062\u590d\u4e86\u4ee3\u7801\u548c\u914d\u7f6e\u6587\u4ef6\uff0c\u4ecd\u7136\u4e22\u5931\u4e86\u672c\u5730 git \u76f8\u5173\u6587\u4ef6\uff08\u8fd9\u4e2a\u96be\u4e0d\u5012\u6211\uff0c\u4e0b\u5348\u62c9\u4e00\u4efd\u7ebf\u4e0a\u7684\uff0c\u548c\u6062\u590d\u56de\u6765\u7684 meger \u4e00\u4e0b\u5373\u53ef\u5b8c\u7f8e\u89e3\u51b3\uff09<\/p>\n<p>\u611f\u89c9\u8fd9\u4e2a\u5e16\u5b50\u53c2\u8003\u4ef7\u503c\u4e0d\u5927\uff0c\u5c31\u8ba9\u4ed6\u6c89\u4e86\u5427                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u7d27\u6025\u6c42\u6551\uff01 ubuntu \u4e0b\u8bef\u5220\u4e86&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/419620"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=419620"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/419620\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=419620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=419620"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=419620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}