Do you have your favorite Linux restoring / data craving tools for Linux?
from Psyhackological@lemmy.ml to linux@lemmy.ml on 05 Jun 08:08
https://lemmy.ml/post/16491077

I found these: Scalpel - but no longer maintaned. PhotoRec - but I don’t know how well it works with Btrfs.

Maybe you have something better.

#linux

threaded - newest

boredsquirrel@slrpnk.net on 05 Jun 09:24 next collapse

If you use BTRFS, there are also some people in Fedora Discuss that may know more about that.

Those tools probably all work with BTRFS. PhotoRec is btw related to the bigger Testdisk.

All these tools seem hardly maintained, but also kinda limited in what they need to do do its okay. Not with BTRFS, bcachefs, f2fs etc though as these may have new fancy tricks.


I was looking for an NTFS restore tool, and used photorec, testdisk, recuva (which very likely just uses testdisk or has cloned its code) and not yet scalpel.

I used Clonezilla where these tools are all preinstalled, it loads to RAM and just works really well.

Testdisk gave me tons of corrupted files with missing headers, but likely the correct ones. PhotoRec gave nothing useful, only stuff from the cache that was likely in the “trash” and not actually deleted. It seems it only recovers intact files, which are nearly never the needed ones.

I need a tool to restore the headers of common file types, as Windows stores them seperately afaik.


I guess a dedicated BTRFS tool could help a lot, as there are likely more ways to recover. But testdisk should work fine.

Psyhackological@lemmy.ml on 05 Jun 11:18 collapse

Yeah I agree and understand. I guess btrfs is too young compared to exts file systems.

boredsquirrel@slrpnk.net on 05 Jun 11:23 collapse

It is not young but there are simply little tools.

I should write an “awesome everything” list of BTRFS

  • snapper
  • btrbk
  • btrfs-assistant
Psyhackological@lemmy.ml on 05 Jun 11:56 collapse

Those are for snapshots not like data crawing. More like a backup your data tool than you fucked up but maybe something is written so you can have it back.

boredsquirrel@slrpnk.net on 05 Jun 12:49 collapse

Try r-linux ? It is supposed to be able to recover deleted files on BTRFS

Psyhackological@lemmy.ml on 05 Jun 17:00 collapse

R-Linux seems nice but I don’t see any mention about BTRFS…

Archaeopteryx@kbin.run on 05 Jun 09:45 next collapse

I have used PhotoRec in the past (~10 years or so) when I needed to restore pictures from a SD-Card (FAT). It worked pretty well. If there are more modern solutions I would also like to get to know them.

Psyhackological@lemmy.ml on 05 Jun 11:17 collapse

I tried it yesterday with SystemRescue, but nothing found that I wanted.

Deckweiss@lemmy.world on 05 Jun 10:18 next collapse

BTRFS already has a rescue command

Psyhackological@lemmy.ml on 05 Jun 11:16 collapse

Yeah I btrfs-restore and btrfs-rescue. However do they work on not allocated drive but once was btrfs?

ryannathans@aussie.zone on 05 Jun 12:04 next collapse

Deja dupe with restic backend

Psyhackological@lemmy.ml on 05 Jun 16:56 collapse

Yeah but backup is the most optimistic scenario. I’m looking for something that really bad happened and maybe the data wasn’t overwritten so I can find it and copy.

Raffster@lemmy.world on 05 Jun 15:37 collapse

Testdisk saved my behind recently…

billgamesh@lemmy.ml on 05 Jun 15:47 next collapse

also great for old windows disk recover. Testdisk is awesome

Psyhackological@lemmy.ml on 05 Jun 17:01 collapse

Yeah I tried it with Windows too.

Psyhackological@lemmy.ml on 05 Jun 17:00 collapse

with ext4 or btrfs?

Raffster@lemmy.world on 06 Jun 03:35 collapse

ext4