Page 1 of 1

Hard disk restore of a deleted btrfs partition

Posted: 14 Mar 2019, 05:37
by Percival631
I have a situation where i ended up overwriting my main ssd of the workstation. Below is the chrnological order in which the system-partitions/ file-systems were created.

PROBLEM BACKGROUND/HISTORY

GPT partition with 0%-33% , 33% to 66% and 66% to 100% partitions all btrfs type. some important data was stored in this partitions ( from here on refered to as the data
I accidentally overwrote the whole disk with a new partion table and partitions , (2 to 3 times :( ) each partiton of 0 to 3% and 4% to 100% of GPT type and of FAT32 and ext4 file-systems respectively.
ISSUE:

With the above issue at hand i am trying to restore back to GPT - btrfs partitions mentioned in point "1" above

After initial research i am trying to use the testdisk software to restore back the deleted partions.

However upon selecting the particular partion to restore as listed below.

Code: Select all

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/xvdi - 240 GB / 223 GiB - CHS 29185 255 63
     Partition               Start        End    Size in sectors
 D MS Data                     2046  468860925  468858880
 D MS Data                     2048  468860927  468858880
 D MS Data                     2048  468860927  468858880 [NO NAME]
 D MS Data                     2054  468860933  468858880 [NO NAME]
 D MS Data                     4096     618495     614400
 D MS Data                     4102     618501     614400
>D MS Data                   618496     622591       4096 <==trying to restore this
If I press "P" at this point (as per the instructions on the test-disk website), i see the below screen. TestDisk 7.0, Data Recovery Utility, April 2015 Christophe GRENIER http://www.cgsecurity.org

Code: Select all

     MS Data               618496     622591       4096



 Support for this filesystem hasn't been implemented.
Question:

How to restore data from deleted BTRFS file system partitions using testdisk or any other method.

Re: Hard disk restore of a deleted btrfs partition

Posted: 14 Mar 2019, 07:07
by cgrenier
TestDisk can't list files from btfs filesystem but if you think it's a partition to recover, set the partition to P(rimary).
Once it's OK, go on next screen, choose Write, confirm, Quit and restart your computer.