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.

  • just_another_person@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    Depends on when you deleted it and how much activity time on that drive has passed. If it’s just an ext4 drive and you haven’t had a large number of changes to that partition since it’s been deleted, some different recovery tools may find it.

    Photorec is pretty capable though, so if it’s not finding it, that’s probably the end of that.