Page 1 of 1

Wrong disk used in software raid. Can I recover data?

Posted: 10 Oct 2017, 08:23
by erkan
Instead of using my two new drives for creating a software raid 1 (using mdadm), I have used one new and one my existing disk that has some important files on it. I have created the array everything is ok.
Once I tried to copy my data to new raid array, I realized that I added wrong disk to raid 1 array. (I'm am complete idiot, I admit)
Is it possible to recover data from my data disk (that is part of raid 1 mdadm array) using testdisk or photorec? I have tried testdisk wihout success and running photorec at the moment.
My main question is when I create the raid 1 array, it resyncs the drives. Is this process overwrites all the data present on the disk?
Is there any way to restore this data?
Thank you for your help.

Re: Wrong disk used in software raid. Can I recover data?

Posted: 11 Oct 2017, 06:16
by cgrenier
If the Raid 1 re-synchronization is complete, you may have lost all your data, it depends if it has been from the new disk to the old or from the old disk to the new.
Let's wait for PhotoRec results...

Re: Wrong disk used in software raid. Can I recover data?

Posted: 11 Oct 2017, 12:06
by erkan
Unfortunately, PhotoRec couldn't recover any file.