WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

107

dd (disk dump) is a low-level data streaming tool, upon which gddrescue is based.

Yesterday, when working at the computer while tired, I accidentally mistyped the output drive file when I wanted to restore a damaged MicroSD card (/dev/sdo) file system from an image file. This is the first time this mistake happened to me. Maybe it was bound to.

This caused the file system of the flash drive at /dev/sdp to be crucified (overwritten by the image file intenfed for /dev/sdo). I realized the mistake after around 10 seconds, but the first ~400 MB were already overwritten.

Thankfully, parts of the data were backed up. But I now realize how much I took the now lost data for granted.

And thankfully, the USB 3.0 hub was connected to the computer through an USB 2.0 cable! Otherwise, the much higher transfer rates would have demolished much more data!

Some files still exist, but can only be found using forensic software which scans for file headers.

And some fragmented files will need to be puzzled together. But file names, attributes (e.g. dates and times), and directory paths are completely lost.

`dd` (*disk dump*) is a low-level data streaming tool, upon which `gddrescue` is based. Yesterday, when working at the computer while tired, I accidentally mistyped the output drive file when I wanted to restore a damaged MicroSD card (`/dev/sdo`) file system from an image file. This is the first time this mistake happened to me. Maybe it was bound to. This caused the file system of the flash drive at `/dev/sdp` to be crucified (overwritten by the image file intenfed for `/dev/sdo`). I realized the mistake after around 10 seconds, but the first ~400 MB were already overwritten. Thankfully, parts of the data were backed up. But I now realize how much I took the now lost data for granted. And **thankfully**, the USB 3.0 hub was connected to the computer **through an USB 2.0 cable!** Otherwise, the much higher transfer rates would have demolished **much more data!** Some files still exist, but can only be found using forensic software which scans for file headers. And some fragmented files will need to be puzzled together. But file names, attributes (e.g. dates and times), and directory paths are completely lost.

(post is archived)

[–] 0 pt

Something that is lacking about testdisk is that it won't recreate directory structure and filenames, at least in the cases I tried it on. Probably that happens because of the file system, but I believe there's a tool for ext4 that can recreate filenames and directories properly.