so I'm studying cybersecurity and I'm currently working with bitlocker security, and on one of my tests, I tried to copy a whole windows nvme disk using a live Ubuntu stick and DD (note that the drive is encrypted with bitlocker). Unfortunately, I swapped the two disks, so I did:
sudo dd if='external_disk' of=/dev/nvme1 conv=noerror, sync
Instead, I should do:
sudo dd if=/dev/nvme1 of=/dev/'external_disk' conv=noerror, sync
So I tried to write the data back using TestDisk, but nothing worked; no data was written. I also tried Photorec, but the files that were recovered were old files from the external disk.
dd
got its "disk destroyer" moniker, once started with the wrong instructions it's game over. – ChanganAuto Apr 03 '22 at 20:48