Wrote an image to the wrong drive with dd
Hi there
I've made a monumental error. I was trying to write a raspberry-pi image from my usb hdd to my micro-SD card and mistakenly wrote the image back to my usb hdd. The HD is a 250Gb and was formatted as FAT32. The rPi image is about 2Gb and basically overwrote my FAT32 partition tables. I know that the 2Gb that were written have been lost, but all my other data should still be on the drive. I just need to be able to get to it. I used fdisk to try to set it back to a single FAT32 partition by deleting all the partitions from the rPi image and creating a FAT32 partition. fdisk accepts this but I cannot mount the drive. I've made an image of the entire drive but it too will not mount. Any help would be appreciated in trying to recover this. How do I create the partition tables whilst preserving the data? Or access the data so that I can get it back from the image? |
Hi there,
Quote:
Quote:
Quote:
Quote:
Best advice I can give you is to try TestDisk, which is included in the repos of many Linux distros. Contrary to the name, its main purpose isn't testing a disk, but rather recovering data you thought was lost. I don't want to foster too much hope, but it's worth a try. Be prepared to face the worst, though. [X] Doc CPU |
|
Quote:
Thanks for the analysis though. |
something that bad, will generally require some commercial recovery software :(
|
All times are GMT -5. The time now is 10:39 PM. |