Last night I have done quite an idiotic thing. In an attempt to delete USB from my friend i have accidentally started
dd if=/dev/zero of=/dev/MyBootDrive
and killed first couple of gigabytes of data from my disk. That data is absolutely not important, i have killed system that needed to be replaced in the first place but. On that partition there is a significant amount of data that should be saved if anyhow possible.
So is there any tool that could make me feel less idiot I obviously am, and save my data from filesystem corrupted like that. I'm aware of some tools but they usually save deleted data, or when partition is changed.
Thanks
Ok I have managed to rescue everything.
It was not magic, I was just plain lucky. I have realized what I'm doing and stopped command after a bit more than 1 sec. So I have nulled just first 1.4GB of data. That was my boot disk, and naturally my / partition was the only one damaged. So obviously every other partition is left intact. But since my partition table is destroyed everything I was able to see is empty hdd. First thing I tried was to recover partitions with gpart but to no avail.
After that I have found this article. Using test disk i have managed to save my /home partition and all data from it.
Now everything is finished I have to agree with the end of this artice:
Well, that would be all. Forget recovery. It's so 70s. Go for backups!