I have a server with two SSDs of 250GB each.sda
contained all my stuff while sdb
was empty. I was trying to copy drive sda
to drive sdb
using the following command:
dd if=/dev/sda of=/dev/sdb conv=noerror,sync
I ran the command over ssh. However before the process finished, my pc was closed, the ssh connection closed as well and so was the dd command. I thought it's not a big deal since I was copying FROM sda
to sdb
. But now I can't boot into my server, sda
appears to have been damaged, the boot partition is missing, I can t mount the partition left on sda
, sda1
. On sdb
there s nothing as well. Also sda1
appears to have overwritten the original boot
& sda1
partition that held my filesystem.
Looking with TestDisk on the sda1
partition I could only see a lost+found
empty directory on the partition.
Using photorec I could recover files, mostly photos so I know for sure that the my files are still there.I just don't have a partition/working filesystem.
How could I recover the old partitions and filsystem from sda
?