Hard disk restore of a deleted btrfs partition

TestDisk benutzen um das Dateisystem zu reparieren
Forum rules
Your help is welcome: there are currently few answers or none to most message posted in the German forum!
If you want to post a request for help, please consider using the English forum.
Locked
Message
Author
Percival631
Posts: 1
Joined: 14 Mar 2019, 05:34

Hard disk restore of a deleted btrfs partition

#1 Post 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.
Last edited by Percival631 on 15 Mar 2019, 12:55, edited 1 time in total.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Hard disk restore of a deleted btrfs partition

#2 Post 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.

Locked