Thursday, February 2, 2017

filesystem - How do I recover a BTRFS partition formatted by mkfs.btrfs?


I've accidentally formatted one of my partitions with btrfs 0.19 filesystem, on 11.04, kernel 2.6.38-8-generic.


The command issued was:


mkfs.btrfs -L EADS-old /dev/sdd2.

After this I didn't write anything on this disk, it was only mounted few times. And the disk is obviously clean at a first glance.


How do I recover the data from it? It has quite a lot valuable data and I don't afford to backup the whole 1T of data.


I've tried testdisk program but I was unable to find any partitions nor usable data.



Try PhotoRec but seen the date of your question you probably removed more/all data in the mean while. PhotoRec does not explicity support BTRFS, but it works filesystem agnostic.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...