{"id":171,"date":"2022-07-01T00:18:34","date_gmt":"2022-07-01T04:18:34","guid":{"rendered":"https:\/\/synetech.ddns.net\/blogs\/?p=171"},"modified":"2025-02-21T11:20:22","modified_gmt":"2025-02-21T16:20:22","slug":"does-anybody-know-how-to-repair-a-broken-ext4-partition","status":"publish","type":"post","link":"https:\/\/synetech.ddns.net\/blogs\/2022\/07\/01\/does-anybody-know-how-to-repair-a-broken-ext4-partition\/","title":{"rendered":"Does anybody know how to repair a broken ext4 partition?"},"content":{"rendered":"<p>The server has been down for over a year now. What happened was that on May 25, 2021, the Orange Pi&#8217;s power-connector had a cold-joint, so the power was flaky and kept causing it to power off and back on. This caused Armbian to reboot several times in a row. This wasn&#8217;t new and it always came back up before, but this time, it wouldn&#8217;t boot anymore. This time, it said it couldn&#8217;t find a valid filesystem. After a lot of consternation and testing, I determined that the ext4 partition had become corrupted. I don&#8217;t know wth happened to the journaling function of ext4 that&#8217;s supposed to prevent this. \ud83e\udd28<\/p>\n<p>Anyway, after making a backup and wasting a lot of time trying to analyze and trying to do data-recovery, I fixed the partition table and superblock, and can see some of the items in the root, but there&#8217;s a lot of broken directories. Apparently a lot of inodes are somehow broken.<\/p>\n<p>Doing raw searches seems to find most of the directories and of course, most of the files are there, I just need a way to rebuild the directory structure and\/or inodes. That is, I need either a way to fix the corruption, or a data-recovery program that can search for directories and rebuild the tree (with user-input if needed).<\/p>\n<p>I&#8217;m currently using a backup that was made two years before the crash, so it&#8217;s pretty devastating that two years of work (the most productive two years \ud83e\udd26) are lost. \ud83d\ude15<\/p>\n<p>Any ideas? Can anybody help? <em>Is anybody out there?<\/em> (Comments can be posted without an account.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The server has been down for over a year now. What happened was that on May 25, 2021, the Orange Pi&#8217;s power-connector had a cold-joint, so the power was flaky and kept causing it to power off and back on. This caused Armbian to reboot several times in a row. This wasn&#8217;t new and it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/synetech.ddns.net\/blogs\/wp-json\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/synetech.ddns.net\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/synetech.ddns.net\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":0,"href":"https:\/\/synetech.ddns.net\/blogs\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"wp:attachment":[{"href":"https:\/\/synetech.ddns.net\/blogs\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}