1

The first few GBs of my 300 GB BtrFS partition were overwritten by another file system, so I lost that data. Naturally, now the partition cannot be mounted as BtrFS, so none of the contents which I want to recover can be accessed in a normal way.

However, most of the data is still there, intact. I have already attempted to recover files using Photorec, with some success, and I would like to know about alternative data recovery tools for BtrFS, which may give better results.

What tools do you recommend? Thanks

  • I'd try testdisk, and see if you can't pull the entire partition. – Frank Thomas Oct 25 '17 at 3:29
  • @FrankThomas The tool is not developed in professional way - there are many bugs such as security-assessment.com/files/documents/advisory/… + full filesystem support is missing (as can be noted within the 7.0 release page, for how the software wasn't working reliably for previous versions: "exFAT: better support" and "ext4: handle 64 bit blocks or 64 KiB blocksize. Fix detection and file listing"). – Kais Oct 27 '17 at 15:51
  • @FrankThomas Moreover, there is few filesystems being supported (or better half-supported): FAT, NTFS and ext4. However other FS are not supported. not to mention the usability, that is very poor, making the process too complicated by having no gui and initially asking the user to "select the partition table type": it is ridiculous .. so testdisk is obviously out of being reliable. – Kais Oct 27 '17 at 16:24
  • @FrankThomas From my own experience, I tried testdisk for recovering an ext4 partition but it didn't work, while another commercial one made me able to see the whole filesystem structure .. – Kais Oct 27 '17 at 16:24
0

You are probably SOL. You MIGHT be able to do something by trying to find the third superblock, but don't hold your breath .

Have look at https://github.com/kdave/btrfs-wiki/wiki/Restore (maybe btrfs -u 2 restore /dev/sdX /path/to/save/filesto to attempt to restore from the second superblock or follow the A"dvanced usage section.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.