{"id":316,"date":"2023-08-03T10:11:10","date_gmt":"2023-08-03T10:11:10","guid":{"rendered":"https:\/\/koner.mywire.org\/?page_id=316"},"modified":"2023-08-09T11:41:32","modified_gmt":"2023-08-09T11:41:32","slug":"how-to-recover-partition-table-in-linux-step-by-step-instructions","status":"publish","type":"page","link":"https:\/\/koner.mywire.org\/index.php\/how-to-recover-partition-table-in-linux-step-by-step-instructions\/","title":{"rendered":"How to recover partition table in Linux"},"content":{"rendered":"\n<p>Recovering a partition table in Linux can be a delicate process, and it&#8217;s essential to proceed with caution to avoid data loss. Here&#8217;s a general guide to recover a partition table using the <strong><code>testdisk<\/code> <\/strong>utility, a popular tool for partition recovery on Linux systems.<\/p>\n\n\n\n<p>In order to start with the recovery of the partition table, we will need to boot into the live CD mode of a Linux distro. It does not really matter which distro you decide to use for this, but we will be covering the instructions for&nbsp;Ubuntu Linux, as we must pick one to cover and can\u2019t possibly cover every distro or Live CD out there.<\/p>\n\n\n\n<p>You can download an Ubuntu ISO from&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/ubuntu.com\/download\" target=\"_blank\">Ubuntu\u2019s download page<\/a>.<a rel=\"noreferrer noopener\" href=\"https:\/\/linuxconfig.org\/live-cd-dvd-linux-download\" target=\"_blank\"><br><\/a>Create a bootable USB drive with your ISO or burn a live CD or DVD.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>With your boot media inserted, turn on the computer and boot into live mode. In the case of Ubuntu, that means clicking on the \u201cTry Ubuntu\u201d option.<\/li>\n\n\n\n<li>Once you are loaded into the live environment, open a terminal and install the&nbsp;<strong><code>testdisk<\/code>&nbsp;<\/strong>package with your distro\u2019s package manager. In the case of Ubuntu, the commands would be: <\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>$ sudo add-apt-repository universe\n$ sudo apt install testdisk<\/strong><\/pre>\n\n\n\n<p>3. Once installation is complete, launch&nbsp;<code>testdisk<\/code>&nbsp;with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>$ sudo testdisk<\/strong>\n\n4. Select the <strong>No Log<\/strong> option and proceed.\n\n<img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"272\" class=\"wp-image-328\" style=\"width: 450px;\" src=\"https:\/\/koner.mywire.org\/wp-content\/uploads\/2023\/08\/testdisk1.jpg\" alt=\"\" srcset=\"https:\/\/koner.mywire.org\/wp-content\/uploads\/2023\/08\/testdisk1.jpg 811w, https:\/\/koner.mywire.org\/wp-content\/uploads\/2023\/08\/testdisk1-300x182.jpg 300w, https:\/\/koner.mywire.org\/wp-content\/uploads\/2023\/08\/testdisk1-768x465.jpg 768w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/>\n\n5. Highlight the disk that has the deleted partition you    need to recover, and select <strong>Proceed<\/strong> when ready.\n\n6. Select the partition type. Most likely this will be <strong>Intel\/PC<\/strong> unless you are using a more specialized system.\n\n7. Proceed with the <strong>Analyse<\/strong> option to search for partition tables.\n\n8. Choose the <strong>Quick search<\/strong> option to locate partition tables.\n\n9. Highlight the found partition, simply called <strong>Linux<\/strong> in our case, and press <strong>Enter<\/strong> to proceed with recovering the partition table.\n\n10. If the partition table looks correct to you, choose the <strong>Write<\/strong> option to recover it.\n\n11. Testdisk will ask once again if you want to confirm these changes. Answer <strong>Y<\/strong> to proceed.\n\n12. When done, <strong>Quit<\/strong> out of the testdisk menu.\n<\/pre>\n\n\n\n<pre id=\"block-f3ceb140-0c6f-4b70-8853-6b10fb485f6a\" class=\"wp-block-preformatted\">Remember, partition recovery is a sensitive operation, and there is no guarantee that all data can be recovered. Always have a backup of your important data to prevent any permanent loss.<\/pre>\n\n\n\n<p>Now you can reboot your system for the changes to take effect. Also be sure to eject your boot media before doing so.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recovering a partition table in Linux can be a delicate process, and it&#8217;s essential to proceed with caution to avoid data loss. Here&#8217;s a general guide to recover a partition table using the testdisk utility, a popular tool for partition recovery on Linux systems. In order to start with the recovery of the partition table, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-316","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/koner.mywire.org\/index.php\/wp-json\/wp\/v2\/pages\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/koner.mywire.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/koner.mywire.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/koner.mywire.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/koner.mywire.org\/index.php\/wp-json\/wp\/v2\/comments?post=316"}],"version-history":[{"count":7,"href":"https:\/\/koner.mywire.org\/index.php\/wp-json\/wp\/v2\/pages\/316\/revisions"}],"predecessor-version":[{"id":329,"href":"https:\/\/koner.mywire.org\/index.php\/wp-json\/wp\/v2\/pages\/316\/revisions\/329"}],"wp:attachment":[{"href":"https:\/\/koner.mywire.org\/index.php\/wp-json\/wp\/v2\/media?parent=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}