WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

1.4K

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)

[–] 1 pt

I sympathize and do not envy the work ahead in cleanup and recovery. However, I'm glad you were at least fortuitous that even in your tired state you realized somewhat quickly and also had the slower cable to lessen the damage. Many times I've seen older tech and not upgrading to the latest and fastest turn out to be a boon and the savior of data.

[–] 1 pt

Thanks much for the comment. You new users are a blessing!

Feel free to share any of those stories here.