I accidentally deleted a zstd compressed image of a drive that I backed up. That drive has been put to use elsewhere, so is little chance I can recover the original partitions from it.

I immediately unmounted the backup drive I had the image stored on and it has not been written to since. It contains an LVM physical partition with a single LUKS encrypted ext4 volume.

I’ve tried using photorec on the ext4 volume, but it seems to be recognizing files that were inside the compressed image, and not the image itself. Text files that are “recovered” contain many invalid characters, and other filetypes are unusable.

While I could cut my losses now and move on without that backup image, I would prefer if I could recover it and the data inside. I’ve looked elsewhere across the internet, and haven’t found any useful information regarding whether this is possible or not.

  • Romkslrqusz@lemmy.zip
    link
    fedilink
    arrow-up
    11
    ·
    4 days ago

    I don’t know that PhotoRec was the ideal place to start for this case, as it is file signature based and will scrape for an insane number of results.

    I recommend that you give DMDE a shot, run a full scan of your disk and then have a look through the FS Reconstruction with deleted files included.

    • Yttra@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      4 days ago

      I second this!

      I just discovered DMDE last week while trying to recover some save files from a corrupted exfat micro SD. File signature tools sure found all my screenshots and audio files I didn’t care about, but only DMDE caught what I was looking for.