Recover deleted partition using testdisk

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















Last night I was not as awake as I thougt i was and I ended up formatting the wrong drive using GParted.....



I thought of testdisk to recover the lost partition but I don't really understand how to use it.



First of all Testdisk detect the partition table of my drive as "none" where as it should be detected as Intel (in my opinion)
Partition table



If I select an Intel partition type and then analyse --> deeper search it showing in the first second of the scan the correct (backup superblock ?) of my "Lacie1To" partition witch used to be the only Ext4 partition occupying all the disk.



enter image description here



But if I clicked on stop it doesn't show me the partition in the list.



So my question, what should I do with this info ?










share|improve this question




























    0















    Last night I was not as awake as I thougt i was and I ended up formatting the wrong drive using GParted.....



    I thought of testdisk to recover the lost partition but I don't really understand how to use it.



    First of all Testdisk detect the partition table of my drive as "none" where as it should be detected as Intel (in my opinion)
    Partition table



    If I select an Intel partition type and then analyse --> deeper search it showing in the first second of the scan the correct (backup superblock ?) of my "Lacie1To" partition witch used to be the only Ext4 partition occupying all the disk.



    enter image description here



    But if I clicked on stop it doesn't show me the partition in the list.



    So my question, what should I do with this info ?










    share|improve this question


























      0












      0








      0








      Last night I was not as awake as I thougt i was and I ended up formatting the wrong drive using GParted.....



      I thought of testdisk to recover the lost partition but I don't really understand how to use it.



      First of all Testdisk detect the partition table of my drive as "none" where as it should be detected as Intel (in my opinion)
      Partition table



      If I select an Intel partition type and then analyse --> deeper search it showing in the first second of the scan the correct (backup superblock ?) of my "Lacie1To" partition witch used to be the only Ext4 partition occupying all the disk.



      enter image description here



      But if I clicked on stop it doesn't show me the partition in the list.



      So my question, what should I do with this info ?










      share|improve this question
















      Last night I was not as awake as I thougt i was and I ended up formatting the wrong drive using GParted.....



      I thought of testdisk to recover the lost partition but I don't really understand how to use it.



      First of all Testdisk detect the partition table of my drive as "none" where as it should be detected as Intel (in my opinion)
      Partition table



      If I select an Intel partition type and then analyse --> deeper search it showing in the first second of the scan the correct (backup superblock ?) of my "Lacie1To" partition witch used to be the only Ext4 partition occupying all the disk.



      enter image description here



      But if I clicked on stop it doesn't show me the partition in the list.



      So my question, what should I do with this info ?







      partition testdisk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 24 at 2:33









      Rui F Ribeiro

      41.6k1483141




      41.6k1483141










      asked Feb 6 '17 at 20:11









      user3127125user3127125

      11




      11




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You have surely deleted the MBR/GPT block of your disk (Block 0 of whole disk). You can try to copy with a hexeditor (wxHexedit) the Superblock from the locations on disk back to the original position



          BUT In your case I would ASAP



          1. Get 2 (!) another - same - sized harddisk

          2. Download a UBCD ISO and burn it to CD/put it onto USB and run it

          3. make a backup of your accidential formatted disk with ddrescue <formatted drive> <new drive #1> (put in the disk names like /dev/sda etc.). Takes upto 24 hours!

          4. Run then qphotorec on to the formatted drive with destination on new drive #2 (make this - but only this - drive usable with windows etc. format)

          5. If you don't understand anything what here written, get asap to your next Linux GURU :)

          Seriously: if you haven't backup/written the GPT/MBR/block/CHS start adresses of your partitions as you installled your disk at first time, it's really hard to create a new MBR/GPT Block (using hexdeditors, gpart etc). In your case the qphotorec (recovers almost all files) is the best and easiest way






          share|improve this answer

























          • I'm interested in using wxHexedit be didn't find any tutorial, do you have any link ? 1) Shiping of HDD2 in progress ! 2) I don't need a live cd or else, there where only data on it and no os so the computer can still boot without any problem. 3) backup on HDD1 in progress ! 4) I've tried with recuva who found the files and restored them but without the name or the path.... 5) That's the problem, i'm supposed to be the Linux Guru ;)

            – user3127125
            Feb 6 '17 at 21:27












          • Try linux "gpart" (NOT gparted!!!). It's rather an older linux shell appication, which scans the whole disk for partitions an prints them (I think, EXT3 etc. it will find, but not new stuff like BTRFS) Current wxHexEdit (Debian) has a big bug (which I - as far I have some time -I'll fix), so try using Okteta (You have to install KDesktop package). Before you try to create a new MBR/GPT, have a look how an GPT/MBR is build up (GPT is easier). In Okteta then try to open the disk, look for the blocks of disk and backup on your OS disk. Then create a new one with the data of gpart (NOT gparted)

            – aprogrammer
            Feb 17 '17 at 19:32












          • If Recuva did recover all files on an extra disk, you are on the sure site. For pictures there are some linux scripts which try to recover the picture name by the content tags (even for mp3). For Microsoft files are there programs too, which renames the files by their content. But before you get in the renaming files hell, backup all files again you've recovered

            – aprogrammer
            Feb 17 '17 at 19:41











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f342978%2frecover-deleted-partition-using-testdisk%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You have surely deleted the MBR/GPT block of your disk (Block 0 of whole disk). You can try to copy with a hexeditor (wxHexedit) the Superblock from the locations on disk back to the original position



          BUT In your case I would ASAP



          1. Get 2 (!) another - same - sized harddisk

          2. Download a UBCD ISO and burn it to CD/put it onto USB and run it

          3. make a backup of your accidential formatted disk with ddrescue <formatted drive> <new drive #1> (put in the disk names like /dev/sda etc.). Takes upto 24 hours!

          4. Run then qphotorec on to the formatted drive with destination on new drive #2 (make this - but only this - drive usable with windows etc. format)

          5. If you don't understand anything what here written, get asap to your next Linux GURU :)

          Seriously: if you haven't backup/written the GPT/MBR/block/CHS start adresses of your partitions as you installled your disk at first time, it's really hard to create a new MBR/GPT Block (using hexdeditors, gpart etc). In your case the qphotorec (recovers almost all files) is the best and easiest way






          share|improve this answer

























          • I'm interested in using wxHexedit be didn't find any tutorial, do you have any link ? 1) Shiping of HDD2 in progress ! 2) I don't need a live cd or else, there where only data on it and no os so the computer can still boot without any problem. 3) backup on HDD1 in progress ! 4) I've tried with recuva who found the files and restored them but without the name or the path.... 5) That's the problem, i'm supposed to be the Linux Guru ;)

            – user3127125
            Feb 6 '17 at 21:27












          • Try linux "gpart" (NOT gparted!!!). It's rather an older linux shell appication, which scans the whole disk for partitions an prints them (I think, EXT3 etc. it will find, but not new stuff like BTRFS) Current wxHexEdit (Debian) has a big bug (which I - as far I have some time -I'll fix), so try using Okteta (You have to install KDesktop package). Before you try to create a new MBR/GPT, have a look how an GPT/MBR is build up (GPT is easier). In Okteta then try to open the disk, look for the blocks of disk and backup on your OS disk. Then create a new one with the data of gpart (NOT gparted)

            – aprogrammer
            Feb 17 '17 at 19:32












          • If Recuva did recover all files on an extra disk, you are on the sure site. For pictures there are some linux scripts which try to recover the picture name by the content tags (even for mp3). For Microsoft files are there programs too, which renames the files by their content. But before you get in the renaming files hell, backup all files again you've recovered

            – aprogrammer
            Feb 17 '17 at 19:41
















          0














          You have surely deleted the MBR/GPT block of your disk (Block 0 of whole disk). You can try to copy with a hexeditor (wxHexedit) the Superblock from the locations on disk back to the original position



          BUT In your case I would ASAP



          1. Get 2 (!) another - same - sized harddisk

          2. Download a UBCD ISO and burn it to CD/put it onto USB and run it

          3. make a backup of your accidential formatted disk with ddrescue <formatted drive> <new drive #1> (put in the disk names like /dev/sda etc.). Takes upto 24 hours!

          4. Run then qphotorec on to the formatted drive with destination on new drive #2 (make this - but only this - drive usable with windows etc. format)

          5. If you don't understand anything what here written, get asap to your next Linux GURU :)

          Seriously: if you haven't backup/written the GPT/MBR/block/CHS start adresses of your partitions as you installled your disk at first time, it's really hard to create a new MBR/GPT Block (using hexdeditors, gpart etc). In your case the qphotorec (recovers almost all files) is the best and easiest way






          share|improve this answer

























          • I'm interested in using wxHexedit be didn't find any tutorial, do you have any link ? 1) Shiping of HDD2 in progress ! 2) I don't need a live cd or else, there where only data on it and no os so the computer can still boot without any problem. 3) backup on HDD1 in progress ! 4) I've tried with recuva who found the files and restored them but without the name or the path.... 5) That's the problem, i'm supposed to be the Linux Guru ;)

            – user3127125
            Feb 6 '17 at 21:27












          • Try linux "gpart" (NOT gparted!!!). It's rather an older linux shell appication, which scans the whole disk for partitions an prints them (I think, EXT3 etc. it will find, but not new stuff like BTRFS) Current wxHexEdit (Debian) has a big bug (which I - as far I have some time -I'll fix), so try using Okteta (You have to install KDesktop package). Before you try to create a new MBR/GPT, have a look how an GPT/MBR is build up (GPT is easier). In Okteta then try to open the disk, look for the blocks of disk and backup on your OS disk. Then create a new one with the data of gpart (NOT gparted)

            – aprogrammer
            Feb 17 '17 at 19:32












          • If Recuva did recover all files on an extra disk, you are on the sure site. For pictures there are some linux scripts which try to recover the picture name by the content tags (even for mp3). For Microsoft files are there programs too, which renames the files by their content. But before you get in the renaming files hell, backup all files again you've recovered

            – aprogrammer
            Feb 17 '17 at 19:41














          0












          0








          0







          You have surely deleted the MBR/GPT block of your disk (Block 0 of whole disk). You can try to copy with a hexeditor (wxHexedit) the Superblock from the locations on disk back to the original position



          BUT In your case I would ASAP



          1. Get 2 (!) another - same - sized harddisk

          2. Download a UBCD ISO and burn it to CD/put it onto USB and run it

          3. make a backup of your accidential formatted disk with ddrescue <formatted drive> <new drive #1> (put in the disk names like /dev/sda etc.). Takes upto 24 hours!

          4. Run then qphotorec on to the formatted drive with destination on new drive #2 (make this - but only this - drive usable with windows etc. format)

          5. If you don't understand anything what here written, get asap to your next Linux GURU :)

          Seriously: if you haven't backup/written the GPT/MBR/block/CHS start adresses of your partitions as you installled your disk at first time, it's really hard to create a new MBR/GPT Block (using hexdeditors, gpart etc). In your case the qphotorec (recovers almost all files) is the best and easiest way






          share|improve this answer















          You have surely deleted the MBR/GPT block of your disk (Block 0 of whole disk). You can try to copy with a hexeditor (wxHexedit) the Superblock from the locations on disk back to the original position



          BUT In your case I would ASAP



          1. Get 2 (!) another - same - sized harddisk

          2. Download a UBCD ISO and burn it to CD/put it onto USB and run it

          3. make a backup of your accidential formatted disk with ddrescue <formatted drive> <new drive #1> (put in the disk names like /dev/sda etc.). Takes upto 24 hours!

          4. Run then qphotorec on to the formatted drive with destination on new drive #2 (make this - but only this - drive usable with windows etc. format)

          5. If you don't understand anything what here written, get asap to your next Linux GURU :)

          Seriously: if you haven't backup/written the GPT/MBR/block/CHS start adresses of your partitions as you installled your disk at first time, it's really hard to create a new MBR/GPT Block (using hexdeditors, gpart etc). In your case the qphotorec (recovers almost all files) is the best and easiest way







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 6 '17 at 21:09

























          answered Feb 6 '17 at 20:56









          aprogrammeraprogrammer

          12




          12












          • I'm interested in using wxHexedit be didn't find any tutorial, do you have any link ? 1) Shiping of HDD2 in progress ! 2) I don't need a live cd or else, there where only data on it and no os so the computer can still boot without any problem. 3) backup on HDD1 in progress ! 4) I've tried with recuva who found the files and restored them but without the name or the path.... 5) That's the problem, i'm supposed to be the Linux Guru ;)

            – user3127125
            Feb 6 '17 at 21:27












          • Try linux "gpart" (NOT gparted!!!). It's rather an older linux shell appication, which scans the whole disk for partitions an prints them (I think, EXT3 etc. it will find, but not new stuff like BTRFS) Current wxHexEdit (Debian) has a big bug (which I - as far I have some time -I'll fix), so try using Okteta (You have to install KDesktop package). Before you try to create a new MBR/GPT, have a look how an GPT/MBR is build up (GPT is easier). In Okteta then try to open the disk, look for the blocks of disk and backup on your OS disk. Then create a new one with the data of gpart (NOT gparted)

            – aprogrammer
            Feb 17 '17 at 19:32












          • If Recuva did recover all files on an extra disk, you are on the sure site. For pictures there are some linux scripts which try to recover the picture name by the content tags (even for mp3). For Microsoft files are there programs too, which renames the files by their content. But before you get in the renaming files hell, backup all files again you've recovered

            – aprogrammer
            Feb 17 '17 at 19:41


















          • I'm interested in using wxHexedit be didn't find any tutorial, do you have any link ? 1) Shiping of HDD2 in progress ! 2) I don't need a live cd or else, there where only data on it and no os so the computer can still boot without any problem. 3) backup on HDD1 in progress ! 4) I've tried with recuva who found the files and restored them but without the name or the path.... 5) That's the problem, i'm supposed to be the Linux Guru ;)

            – user3127125
            Feb 6 '17 at 21:27












          • Try linux "gpart" (NOT gparted!!!). It's rather an older linux shell appication, which scans the whole disk for partitions an prints them (I think, EXT3 etc. it will find, but not new stuff like BTRFS) Current wxHexEdit (Debian) has a big bug (which I - as far I have some time -I'll fix), so try using Okteta (You have to install KDesktop package). Before you try to create a new MBR/GPT, have a look how an GPT/MBR is build up (GPT is easier). In Okteta then try to open the disk, look for the blocks of disk and backup on your OS disk. Then create a new one with the data of gpart (NOT gparted)

            – aprogrammer
            Feb 17 '17 at 19:32












          • If Recuva did recover all files on an extra disk, you are on the sure site. For pictures there are some linux scripts which try to recover the picture name by the content tags (even for mp3). For Microsoft files are there programs too, which renames the files by their content. But before you get in the renaming files hell, backup all files again you've recovered

            – aprogrammer
            Feb 17 '17 at 19:41

















          I'm interested in using wxHexedit be didn't find any tutorial, do you have any link ? 1) Shiping of HDD2 in progress ! 2) I don't need a live cd or else, there where only data on it and no os so the computer can still boot without any problem. 3) backup on HDD1 in progress ! 4) I've tried with recuva who found the files and restored them but without the name or the path.... 5) That's the problem, i'm supposed to be the Linux Guru ;)

          – user3127125
          Feb 6 '17 at 21:27






          I'm interested in using wxHexedit be didn't find any tutorial, do you have any link ? 1) Shiping of HDD2 in progress ! 2) I don't need a live cd or else, there where only data on it and no os so the computer can still boot without any problem. 3) backup on HDD1 in progress ! 4) I've tried with recuva who found the files and restored them but without the name or the path.... 5) That's the problem, i'm supposed to be the Linux Guru ;)

          – user3127125
          Feb 6 '17 at 21:27














          Try linux "gpart" (NOT gparted!!!). It's rather an older linux shell appication, which scans the whole disk for partitions an prints them (I think, EXT3 etc. it will find, but not new stuff like BTRFS) Current wxHexEdit (Debian) has a big bug (which I - as far I have some time -I'll fix), so try using Okteta (You have to install KDesktop package). Before you try to create a new MBR/GPT, have a look how an GPT/MBR is build up (GPT is easier). In Okteta then try to open the disk, look for the blocks of disk and backup on your OS disk. Then create a new one with the data of gpart (NOT gparted)

          – aprogrammer
          Feb 17 '17 at 19:32






          Try linux "gpart" (NOT gparted!!!). It's rather an older linux shell appication, which scans the whole disk for partitions an prints them (I think, EXT3 etc. it will find, but not new stuff like BTRFS) Current wxHexEdit (Debian) has a big bug (which I - as far I have some time -I'll fix), so try using Okteta (You have to install KDesktop package). Before you try to create a new MBR/GPT, have a look how an GPT/MBR is build up (GPT is easier). In Okteta then try to open the disk, look for the blocks of disk and backup on your OS disk. Then create a new one with the data of gpart (NOT gparted)

          – aprogrammer
          Feb 17 '17 at 19:32














          If Recuva did recover all files on an extra disk, you are on the sure site. For pictures there are some linux scripts which try to recover the picture name by the content tags (even for mp3). For Microsoft files are there programs too, which renames the files by their content. But before you get in the renaming files hell, backup all files again you've recovered

          – aprogrammer
          Feb 17 '17 at 19:41






          If Recuva did recover all files on an extra disk, you are on the sure site. For pictures there are some linux scripts which try to recover the picture name by the content tags (even for mp3). For Microsoft files are there programs too, which renames the files by their content. But before you get in the renaming files hell, backup all files again you've recovered

          – aprogrammer
          Feb 17 '17 at 19:41


















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f342978%2frecover-deleted-partition-using-testdisk%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)